Skip to content

Commit

Permalink
Merge pull request rspec#1443 from rspec/fix-diff-lcs-build
Browse files Browse the repository at this point in the history
Run older diff-lcs on older version of activesupport
  • Loading branch information
JonRowe authored Dec 26, 2023
2 parents 712942f + d0636f4 commit 0f43390
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,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

eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom')

0 comments on commit 0f43390

Please sign in to comment.