Skip to content

Commit bef81d5

Browse files
authored
Merge pull request #358 from bastelfreak/openssl2
Update openssl gem only on MacOS
2 parents e1a0902 + ed4ba94 commit bef81d5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Gemfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ end
1919
gem "openfact", *location_for(ENV['OPENFACT_LOCATION'] || ["~> 5.0"])
2020
gem "semantic_puppet", *location_for(ENV['SEMANTIC_PUPPET_LOCATION'] || ["~> 1.0"])
2121
gem "puppet-resource_api", *location_for(ENV['RESOURCE_API_LOCATION'] || ["~> 2.0"])
22-
# Need to update the openssl gem on MacOS to avoid SSL errors. Doesn't hurt to have the newest
23-
# for all platforms.
22+
# Need to update the openssl gem on MacOS to avoid SSL errors.
2423
# https://www.rubyonmac.dev/certificate-verify-failed-unable-to-get-certificate-crl-openssl-ssl-sslerror
25-
# openssl 4 raises some errors that need to be investigated
26-
gem 'openssl', '~> 3' unless `uname -o`.chomp == 'Cygwin'
24+
gem 'openssl', '~> 3' if RUBY_PLATFORM =~ /darwin/
2725

2826
group(:features) do
2927
gem 'diff-lcs', '~> 1.3', require: false

0 commit comments

Comments
 (0)