From 8d6b69109d4ce5d7afa75850501a3d8c5916eb2f Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 26 Dec 2023 16:55:15 +0000 Subject: [PATCH] Merge pull request #3058 from rspec/fix-diff-lcs-build Run older diff-lcs on older version of activesupport --- Gemfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index 521807c5d1..857bc53a1f 100644 --- a/Gemfile +++ b/Gemfile @@ -96,6 +96,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 gem 'contracts', '< 0.16' if RUBY_VERSION < '1.9.0'