Skip to content

Commit 5c33195

Browse files
authored
Merge pull request #1408 from puppetlabs/maint_fix_platform_match_deprecation_warning
(maint) Fix Gem::Platform.match() deprecation warning
2 parents 2331637 + ff2ce5a commit 5c33195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pdk/util/puppet_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def rubygems_puppet_versions
182182
@rubygems_puppet_versions ||= begin
183183
fetcher = Gem::SpecFetcher.fetcher
184184
puppet_tuples = fetcher.detect(:released) do |spec_tuple|
185-
spec_tuple.name == 'puppet' && Gem::Platform.match(spec_tuple.platform)
185+
spec_tuple.name == 'puppet' && Gem::Platform.match_spec?(spec_tuple)
186186
end
187187
puppet_versions = puppet_tuples.map { |name, _| name.version }.uniq
188188
puppet_versions.sort.reverse

0 commit comments

Comments
 (0)