From 118c923705eeb658248e466ecc82c1b40e7ab251 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Sun, 3 May 2020 09:59:18 -0700 Subject: [PATCH] Fix CI builds for EOL Ruby versions (#2058) --- Gemfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index a95a3504..8665e843 100644 --- a/Gemfile +++ b/Gemfile @@ -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"