Skip to content

Commit

Permalink
Restrict the term-ansicolor version on Ruby < 2.5.
Browse files Browse the repository at this point in the history
Resolves syntax and missing method errors running tests.
  • Loading branch information
philr committed Oct 16, 2024
1 parent 10675d9 commit 66ac311
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ group :test do
gem 'coveralls', git: 'https://github.com/philr/coveralls-ruby.git', require: false if RUBY_VERSION < '2.3'
gem 'coveralls_reborn', '~> 0.13', require: false if RUBY_VERSION >= '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.5'
gem 'term-ansicolor', '< 1.9'
end

# The source version of ffi 1.15.5 is declared as compatible with Ruby >= 2.3.
# The binary version of 1.15.5 is declared as compatible with Ruby >= 2.4, so
# doesn't get used. The using the source version results in a segmentation
Expand Down

0 comments on commit 66ac311

Please sign in to comment.