lemurheavy / coveralls-public

The public issue tracker for coveralls.io
http://coveralls.io
124 stars 7 forks source link

Update ruby Set Up page (Missing method SimpleCov::SourceFile # coverage) #1499

Closed mochetts closed 2 years ago

mochetts commented 4 years ago

Description

When following the set up guide for ruby, the developer is instructed to add the coveralls gem:

image

However, this gem has a conflict within its dependencies. It's including the latest version of simplecov which doesn't have the method coverage for SimpleCov::SourceFile.

This leads to this error when running a travis build:

image

Complete log here

Solution

Either lock simplecov gem to version 0.17.0 (which has the missing method) or update the set up guide so that it uses this gem:

gem 'coveralls_reborn', '~> 0.18.0', require: false
afinetooth commented 4 years ago

Thanks @mochetts. We're aware this integration is behind on maintenance.

The team behind that integration has been working on a universal coverage reporter that can be used in lieu of or as a component of any integration.

For Ruby projects that can't lock Simplecov to 0.17.0 in their own Gemfile, we do typically recommend switching to coveralls-ruby-reborn, which has been well-maintained.

Point taken that we should consider swapping the gem reference in the repo start page for Ruby projects. Since we have a large installed base of Ruby users it would be ideal to merge the two projects.

Thanks again for the feedback.

mochetts commented 4 years ago

@afinetooth thanks for the quick reply. I updated the title of this issue so that anyone experiencing the same can quickly find the solution.

afinetooth commented 4 years ago

Appreciate that, @mochetts. Thanks.

stale[bot] commented 2 years ago

This issue has been automatically marked for closure because it has not had recent activity. It will be closed if no further activity occurs. If your issue is still active please add a comment and we’ll review as soon as we can. Thank you for your contributions.