From 0f039b8396dd33483ab1b8fa234f48973bcec199 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 26 Dec 2023 16:35:10 +0000 Subject: [PATCH] Run older diff-lcs on older version of activesupport --- Gemfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index 838ba4d43..2412ed245 100644 --- a/Gemfile +++ b/Gemfile @@ -91,6 +91,9 @@ end if RUBY_VERSION < '2.0.0' gem 'cucumber', "<= 1.3.22" +elsif !ENV['DIFF_LCS_VERSION'].to_s.empty? && ENV['DIFF_LCS_VERSION'].scan(/\d\.\d/).first.to_f < 1.5 + # Older version of diff-lcs cause a downstream error with cucumber and modern rails + gem "activesupport", "< 7" end platforms :jruby do