Skip to content

Commit

Permalink
Restrict the term-ansicolor version further on Ruby < 2.0.
Browse files Browse the repository at this point in the history
Resolves another syntax error.
  • Loading branch information
philr committed Oct 15, 2024
1 parent 7d085d8 commit 4bde0f5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ group :test do
gem 'json', '< 2.5.0'
end

# term-ansicolor is a dependency of coveralls. Version 1.10.3 is declared as
# compatible with any Ruby version, but fails with a syntax error on Ruby <
# 2.3.
# term-ansicolor is a dependency of coveralls. All versions are falsely
# declared as compatible with any Ruby version.
#
# Limit to an earlier compatible version.
if RUBY_VERSION < '2.3'
# Limit to an earlier compatible versions.
if RUBY_VERSION < '2.0'
gem 'term-ansicolor', '< 1.9.0'
elsif RUBY_VERSION < '2.3'
gem 'term-ansicolor', '< 1.10.3'
end
end
Expand Down

0 comments on commit 4bde0f5

Please sign in to comment.