Skip to content

Commit

Permalink
Merge pull request #1408 from puppetlabs/maint_fix_platform_match_dep…
Browse files Browse the repository at this point in the history
…recation_warning

(maint) Fix Gem::Platform.match() deprecation warning
  • Loading branch information
david22swan authored Oct 29, 2024
2 parents 2331637 + ff2ce5a commit 5c33195
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)
end
puppet_versions = puppet_tuples.map { |name, _| name.version }.uniq
puppet_versions.sort.reverse
Expand Down

0 comments on commit 5c33195

Please sign in to comment.