Skip to content

Commit

Permalink
Fix CI builds for EOL Ruby versions (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed May 3, 2020
1 parent 3fbbbd8 commit 118c923
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "public_suffix", "< 3.0.0"
end

# Latest versions of i18n don't support Ruby < 2.1
if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION))
# Latest versions of i18n don't support Ruby < 2.4
if Gem::Requirement.new("< 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "i18n", "< 1.3.0"
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
if Gem::Requirement.new("> 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "danger"
Expand Down

0 comments on commit 118c923

Please sign in to comment.