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

Commit

Permalink
Allow checking both versions of diff-lcs
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jun 28, 2020
1 parent f610d5e commit 9d502ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ matrix:
include:
- rvm: jruby-1.7
env: JRUBY_OPTS='--dev --1.8'
- rvm: 2.7.1
env: DIFF_LCS_VERSION="~> 1.3.0"
allow_failures:
- rvm: jruby-head
- rvm: ruby-head
Expand Down
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ else
gem 'rake', '> 12.3.2'
end

if RUBY_VERSION.to_f < 2
default_diff_lcs_version = '~> 1.3.0'
else
default_diff_lcs_version = '~> 1.4'
end
gem 'diff-lcs', ENV.fetch('DIFF_LCS_VERSION', default_diff_lcs_version)

gem 'coderay' # for syntax highlighting
gem 'yard', '~> 0.9.24', :require => false

Expand Down

0 comments on commit 9d502ec

Please sign in to comment.