1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Fix CI builds for EOL Ruby versions (#2058)

This commit is contained in:
Matt Brictson 2020-05-03 09:59:18 -07:00 committed by GitHub
parent 3fbbbd8f5b
commit 118c923705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,11 +26,16 @@ if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "public_suffix", "< 3.0.0" gem "public_suffix", "< 3.0.0"
end end
# Latest versions of i18n don't support Ruby < 2.1 # Latest versions of i18n don't support Ruby < 2.4
if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION)) if Gem::Requirement.new("< 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "i18n", "< 1.3.0" gem "i18n", "< 1.3.0"
end end
# Latest versions of rake don't support Ruby < 2.2
if Gem::Requirement.new("< 2.2").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "rake", "< 13.0.0"
end
# We only run danger once on a new-ish ruby; no need to install it otherwise # We only run danger once on a new-ish ruby; no need to install it otherwise
if Gem::Requirement.new("> 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION)) if Gem::Requirement.new("> 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "danger" gem "danger"