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

Commit e61c2e1

Browse files
committed
Allow checking both versions of diff-lcs
1 parent 357cc8b commit e61c2e1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ matrix:
3838
include:
3939
- rvm: jruby-1.7
4040
env: JRUBY_OPTS='--dev --1.8'
41+
- rvm: 2.7.1
42+
env: DIFF_LCS_VERSION="~> 1.3.0"
4143
allow_failures:
4244
- rvm: jruby-head
4345
- rvm: ruby-head

Gemfile

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

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)
30+
2431
if RUBY_VERSION < '2.2.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
2532
gem "childprocess", "< 1.0.0"
2633
elsif RUBY_VERSION < '2.3.0'

0 commit comments

Comments
 (0)