-
Notifications
You must be signed in to change notification settings - Fork 496
(FACT-3147) Updates minimum Ruby version to 2.5 #2536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(FACT-3147) Updates minimum Ruby version to 2.5 #2536
Conversation
|
I've also updated the branch protection rules to use the Ruby 2.5 version of unit tests instead of Ruby 2.3. |
1e72f68 to
dfa41b9
Compare
This commit replaces all instances in which Ruby 2.3 or 2.4 are referenced with Ruby 2.5 and sets Ruby 2.5 as the minimum Ruby version in the Gemspec and other relevant locations.
Due to increasing the minimum Ruby version to Ruby 2.5, this commit sets the next Facter release version to the next minor/Y version, 4.3.0.
b488a45 to
e832c61
Compare
|
|
||
| it 'loads date' do | ||
| pending 'There is a bug in newer versions of Psych and Timecop' if RUBY_VERSION =~ /^3\.2/ | ||
| pending 'There is a bug in newer versions of Psych and Timecop' if RUBY_VERSION.match?(/3.2/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| pending 'There is a bug in newer versions of Psych and Timecop' if RUBY_VERSION.match?(/3.2/) | |
| pending 'There is a bug in newer versions of Psych and Timecop' if RUBY_VERSION.to_f == 3.2 && Gem::Version.new(Timecop::VERSION) < Gem::Version.new("0.9.6") |
9e8b96c to
56ac1a2
Compare
An issue with earlier versions of timecop caused the 'when yaml contains Date formatted fields' test to fail with the version of Psych included with Ruby 3.2.0. With the release of timecop 0.9.6, this issue has been resolved and we can remove the test from its conditial pending state when that version of timecop is present.
56ac1a2 to
8e9a670
Compare
|
Not sure what's up with the acceptance test? Maybe we're expecting 20.04 but |
Yeah, looks like you're right: actions/runner-images#6399 I'll put up another commit that just hard codes 20.04 for now |
d591a91 to
8e9a670
Compare
The ubuntu-latest GitHub Actions runner currently translates to Ubuntu 20.04, but will migrate to 22.04 next year: actions/runner-images#6399 Because platform translation is necessary in the presuit.rb file, this commit changes all instances of "ubuntu-latest" in our GitHub Actions configuration to "ubuntu-20.04".
1e078bd to
37d0f59
Compare
|
I updated the branch protection rules to reflect the change in the Ubuntu runner. |
This PR both updates the minimum Ruby version for Facter to Ruby 2.5 (removing all instances of Ruby 2.3 and 2.4 in the codebase) and increments the next Facter version to 4.3.0.