coveralls_reborn 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/README.md +11 -11
- data/lib/coveralls/api.rb +2 -2
- data/lib/coveralls/command.rb +2 -2
- data/lib/coveralls/simplecov.rb +2 -2
- data/lib/coveralls/version.rb +1 -1
- data/lib/coveralls.rb +5 -5
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2224b9be14eb033f754844489d5766a3eb82665d19fd419452e884407299ddfd
|
4
|
+
data.tar.gz: b24400478b5a2b006f5b5f10141059b7a31cab8d1980563b7ea57b002e527076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5a880d882a2510aefc3cd0f9b12089dafef1bf7b0192f23ea306aab6b38f4fb52c4ef4d4cf5cd391be48ebd83c207b24f5ba2e419d30028e6f9693bb1990bb9
|
7
|
+
data.tar.gz: a9392a1858c7930e9f8bfe7df89a0188931f0ce3bd5645b6d50b474db77401bcad9ad6a3f5019a62c82dd78e64cc0d625b1cd3aaa092d8e51b8757c6e4c6995e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.29.0 / 2025-06-15
|
4
|
+
|
5
|
+
* [ENHANCEMENT] Prefer `require_relative` for internal requires [#51](https://github.com/tagliala/coveralls-ruby-reborn/pull/51)
|
6
|
+
* [ENHANCEMENT] Remove `truthy` dependency as obsolete and unsupported [#50](https://github.com/tagliala/coveralls-ruby-reborn/pull/50)
|
7
|
+
* [ENHANCEMENT] Test against Ruby 3.4
|
8
|
+
|
3
9
|
## 0.28.0 / 2023-07-22
|
4
10
|
|
5
11
|
* [ENHANCEMENT] Reduce gem size
|
@@ -94,7 +100,7 @@
|
|
94
100
|
## 0.13.3 / 2019-10-13
|
95
101
|
|
96
102
|
* [FIX] Do not rescue from LoadError with required gems
|
97
|
-
* [FIX] Fix multipart content-type
|
103
|
+
* [FIX] Fix multipart content-type delimiter [lemurheavy/coveralls-ruby#154](https://github.com/lemurheavy/coveralls-ruby/pull/154)
|
98
104
|
* [ENHANCEMENT] Test against latest JRuby version
|
99
105
|
* [ENHANCEMENT] Update dependencies
|
100
106
|
|
data/README.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
# [Coveralls Reborn](https://coveralls.io) for Ruby
|
1
|
+
# [Coveralls Reborn](https://coveralls.io) for Ruby
|
2
|
+
|
3
|
+
[](https://badge.fury.io/rb/coveralls_reborn)
|
4
|
+
[](https://github.com/tagliala/coveralls-ruby-reborn/actions/workflows/ruby.yml)
|
5
|
+
[](https://github.com/tagliala/coveralls-ruby-reborn/actions/workflows/rubocop.yml)
|
6
|
+
[](https://coveralls.io/github/tagliala/coveralls-ruby-reborn?branch=main)
|
2
7
|
|
3
8
|
[Coveralls.io](https://coveralls.io) was designed with Ruby projects in mind, so we've made it as
|
4
9
|
easy as possible to get started using [Coveralls](https://coveralls.io) with Ruby and Rails project.
|
@@ -16,8 +21,6 @@ An up-to-date fork of [lemurheavy/coveralls-ruby](https://github.com/lemurheavy/
|
|
16
21
|
[coveralls-ruby-reborn](https://github.com/tagliala/coveralls-ruby-reborn) gem. This includes
|
17
22
|
all your favorites, like [RSpec](https://rspec.info/), Cucumber, and Test::Unit.
|
18
23
|
|
19
|
-
*Please note that [SimpleCov](https://github.com/colszowka/simplecov) only supports Ruby 1.9 and later.*
|
20
|
-
|
21
24
|
### INSTALLING THE GEM
|
22
25
|
|
23
26
|
You shouldn't need more than a quick change to get your project on Coveralls. Just include
|
@@ -30,9 +33,6 @@ Gemfile like so:
|
|
30
33
|
gem 'coveralls_reborn', require: false
|
31
34
|
```
|
32
35
|
|
33
|
-
While [SimpleCov](https://github.com/colszowka/simplecov) only supports Ruby 1.9+, using the
|
34
|
-
Coveralls gem will not fail builds on earlier Rubies or other flavors of Ruby.
|
35
|
-
|
36
36
|
### CONFIGURATION
|
37
37
|
|
38
38
|
[coveralls-ruby-reborn](https://github.com/tagliala/coveralls-ruby-reborn) uses an optional
|
@@ -70,14 +70,14 @@ For a Ruby app:
|
|
70
70
|
# ./test/test_helper.rb
|
71
71
|
# ..etc..
|
72
72
|
|
73
|
-
require '
|
73
|
+
require 'coveralls'
|
74
74
|
Coveralls.wear!
|
75
75
|
```
|
76
76
|
|
77
77
|
For a Rails app:
|
78
78
|
|
79
79
|
```ruby
|
80
|
-
require '
|
80
|
+
require 'coveralls'
|
81
81
|
Coveralls.wear!('rails')
|
82
82
|
```
|
83
83
|
|
@@ -99,7 +99,7 @@ directly:
|
|
99
99
|
|
100
100
|
```ruby
|
101
101
|
require 'simplecov'
|
102
|
-
require '
|
102
|
+
require 'coveralls'
|
103
103
|
|
104
104
|
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
105
105
|
SimpleCov.start do
|
@@ -111,7 +111,7 @@ Or alongside another formatter, like so:
|
|
111
111
|
|
112
112
|
```ruby
|
113
113
|
require 'simplecov'
|
114
|
-
require '
|
114
|
+
require 'coveralls'
|
115
115
|
|
116
116
|
SimpleCov.formatters = [
|
117
117
|
SimpleCov::Formatter::HTMLFormatter,
|
@@ -130,7 +130,7 @@ formatter, simply omit the Coveralls formatter, then add the rake task `coverall
|
|
130
130
|
`Rakefile` as a dependency to your testing task, like so:
|
131
131
|
|
132
132
|
```ruby
|
133
|
-
require '
|
133
|
+
require 'coveralls/rake/task'
|
134
134
|
Coveralls::RakeTask.new
|
135
135
|
task :test_with_coveralls => [:spec, :features, 'coveralls:push']
|
136
136
|
```
|
data/lib/coveralls/api.rb
CHANGED
@@ -41,9 +41,9 @@ module Coveralls
|
|
41
41
|
|
42
42
|
case response
|
43
43
|
when Net::HTTPServiceUnavailable
|
44
|
-
Coveralls::Output.puts('[Coveralls] API timeout
|
44
|
+
Coveralls::Output.puts('[Coveralls] API timeout occurred, but data should still be processed', color: 'red')
|
45
45
|
when Net::HTTPInternalServerError
|
46
|
-
Coveralls::Output.puts("[Coveralls] API internal error
|
46
|
+
Coveralls::Output.puts("[Coveralls] API internal error occurred, we're on it!", color: 'red')
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
data/lib/coveralls/command.rb
CHANGED
@@ -6,7 +6,7 @@ module Coveralls
|
|
6
6
|
class CommandLine < Thor
|
7
7
|
desc 'push', 'Runs your test suite and pushes the coverage results to Coveralls.'
|
8
8
|
def push
|
9
|
-
return unless
|
9
|
+
return unless can_run_locally?
|
10
10
|
|
11
11
|
ENV['COVERALLS_RUN_LOCALLY'] = 'true'
|
12
12
|
cmds = ['bundle exec rake']
|
@@ -68,7 +68,7 @@ module Coveralls
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
def
|
71
|
+
def can_run_locally?
|
72
72
|
if config[:repo_token].nil?
|
73
73
|
Coveralls::Output.puts 'Coveralls cannot run locally because no repo_secret_token is set in .coveralls.yml', color: 'red'
|
74
74
|
Coveralls::Output.puts 'Please try again when you get your act together.', color: 'red'
|
data/lib/coveralls/simplecov.rb
CHANGED
@@ -5,7 +5,7 @@ require 'pathname'
|
|
5
5
|
module Coveralls
|
6
6
|
module SimpleCov
|
7
7
|
class Formatter
|
8
|
-
def display_result(result)
|
8
|
+
def display_result(result) # rubocop:disable Naming/PredicateMethod
|
9
9
|
# Log which files would be submitted.
|
10
10
|
if result.files.empty?
|
11
11
|
Coveralls::Output.puts '[Coveralls] There are no covered files.', color: 'yellow'
|
@@ -91,7 +91,7 @@ module Coveralls
|
|
91
91
|
display_error e
|
92
92
|
end
|
93
93
|
|
94
|
-
def display_error(error)
|
94
|
+
def display_error(error) # rubocop:disable Naming/PredicateMethod
|
95
95
|
Coveralls::Output.puts 'Coveralls encountered an exception:', color: 'red'
|
96
96
|
Coveralls::Output.puts error.class.to_s, color: 'red'
|
97
97
|
Coveralls::Output.puts error.message, color: 'red'
|
data/lib/coveralls/version.rb
CHANGED
data/lib/coveralls.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
require_relative 'coveralls/version'
|
4
|
+
require_relative 'coveralls/configuration'
|
5
|
+
require_relative 'coveralls/api'
|
6
|
+
require_relative 'coveralls/output'
|
7
|
+
require_relative 'coveralls/simplecov'
|
8
8
|
|
9
9
|
module Coveralls
|
10
10
|
class << self
|
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls_reborn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Merwin
|
8
8
|
- Wil Gieseler
|
9
9
|
- Geremia Taglialatela
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: simplecov
|
@@ -98,7 +97,6 @@ metadata:
|
|
98
97
|
bug_tracker_uri: https://github.com/tagliala/coveralls-ruby-reborn/issues
|
99
98
|
changelog_uri: https://github.com/tagliala/coveralls-ruby-reborn/blob/main/CHANGELOG.md
|
100
99
|
source_code_uri: https://github.com/tagliala/coveralls-ruby-reborn
|
101
|
-
post_install_message:
|
102
100
|
rdoc_options: []
|
103
101
|
require_paths:
|
104
102
|
- lib
|
@@ -113,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
111
|
- !ruby/object:Gem::Version
|
114
112
|
version: '0'
|
115
113
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
117
|
-
signing_key:
|
114
|
+
rubygems_version: 3.6.9
|
118
115
|
specification_version: 4
|
119
116
|
summary: A Ruby implementation of the Coveralls API.
|
120
117
|
test_files: []
|