Skip to content

Commit

Permalink
(maint) Fix Gem::Platform.match() deprecation warning by switching to…
Browse files Browse the repository at this point in the history
… Gem::Platform.match_spec?
  • Loading branch information
jhbuchanan45 committed Oct 23, 2024
1 parent 2d2d7a1 commit 84de4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdk/util/puppet_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def rubygems_puppet_versions
@rubygems_puppet_versions ||= begin
fetcher = Gem::SpecFetcher.fetcher
puppet_tuples = fetcher.detect(:released) do |spec_tuple|
spec_tuple.name == 'puppet' && Gem::Platform.match(spec_tuple.platform)
spec_tuple.name == 'puppet' && Gem::Platform.match_spec?(spec_tuple)

Check warning on line 185 in lib/pdk/util/puppet_version.rb

View check run for this annotation

Codecov / codecov/patch

lib/pdk/util/puppet_version.rb#L185

Added line #L185 was not covered by tests
end
puppet_versions = puppet_tuples.map { |name, _| name.version }.uniq
puppet_versions.sort.reverse
Expand Down

0 comments on commit 84de4ec

Please sign in to comment.