Skip to content

Commit

Permalink
(PA-5016) Bump CFPropertyList to 3.0.6 for Ruby 3.2
Browse files Browse the repository at this point in the history
CFPropertyList versions < 3.0.6 have a File.exists? call but File.exists? was
deprecated and removed in Ruby 3.2. Currently, this blocks adding macOS 11 & 12
to puppet-agent#main, which uses Ruby 3.2, as a TEST_TARGET. This commit bumps
CFPropertyList to 3.0.6 whenever the Ruby version is >= 3.2.
  • Loading branch information
cthorn42 authored and AriaXLi committed Mar 2, 2023
1 parent cb66812 commit 0977603
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions configs/components/rubygem-CFPropertyList.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
component 'rubygem-CFPropertyList' do |pkg, settings, platform|
pkg.version '2.3.6'
pkg.md5sum 'ae4086185992f293ffab1641b83286a5'
if settings[:ruby_version].to_f >= 3.2
pkg.version '3.0.6'
pkg.md5sum 'a10c1a40d093160f7264c0985b89881d'
else
pkg.version '2.3.6'
pkg.md5sum 'ae4086185992f293ffab1641b83286a5'
end

instance_eval File.read('configs/components/_base-rubygem.rb')
pkg.environment "GEM_HOME", (settings[:puppet_gem_vendor_dir] || settings[:gem_home])
Expand Down

0 comments on commit 0977603

Please sign in to comment.