Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 9ee1b82

Browse files
committed
Configure diff-lcs version by Ruby version
1 parent 0816dff commit 9ee1b82

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Gemfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ else
2121
gem 'rake', '>= 12.3.3'
2222
end
2323

24-
gem 'diff-lcs', ENV.fetch('DIFF_LCS_VERSION', '~> 1.4')
24+
if RUBY_VERSION.to_f < 2
25+
default_diff_lcs_version = '~> 1.3.0'
26+
else
27+
default_diff_lcs_version = '~> 1.4'
28+
end
29+
gem 'diff-lcs', ENV.fetch('DIFF_LCS_VERSION', default_diff_lcs_version)
2530

2631
if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
2732
gem "childprocess", "< 1.0.0"

0 commit comments

Comments
 (0)