From 7389032b357a1e6376af27a32e8826204a86b850 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 26 Dec 2023 16:41:05 +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 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'