coveralls_reborn 0.25.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +2 -2
- data/.github/workflows/ruby.yml +4 -2
- data/.rubocop.yml +0 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile +6 -6
- data/README.md +1 -1
- data/coveralls-ruby.gemspec +6 -6
- data/lib/coveralls/simplecov.rb +1 -1
- data/lib/coveralls/version.rb +1 -1
- data/spec/coveralls/coveralls_spec.rb +31 -14
- metadata +18 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c29df2ebe19f2ececc465311202c6602ec9fc3ae2fde370658e44059235b0fcf
|
4
|
+
data.tar.gz: 29598f4aa42ac2932ec1e4f9cb73ee09459d37bfc8be9189af23552dd8ffc02b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02d239951dd37be2025cdbbefc29166583ed0949949783586fb53b29f1eebfd214ab89a262b7f96998b121b09191ccae12eb86d968d95250ff94362bb83ac2fa
|
7
|
+
data.tar.gz: b877d4f39cdd580dae6f9114e906837dffe72c749ffa90fbb10ef7a48f077b2478b2049b8960f94a5b7d09994d5b53be8396dcaf17f2eb55638442927e865a18
|
data/.github/workflows/ruby.yml
CHANGED
@@ -12,7 +12,7 @@ jobs:
|
|
12
12
|
runs-on: ubuntu-latest
|
13
13
|
strategy:
|
14
14
|
matrix:
|
15
|
-
ruby-version: ['2.
|
15
|
+
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2']
|
16
16
|
experimental: [false]
|
17
17
|
|
18
18
|
include:
|
@@ -20,11 +20,13 @@ jobs:
|
|
20
20
|
experimental: true
|
21
21
|
- ruby-version: 'jruby-9.3'
|
22
22
|
experimental: true
|
23
|
+
- ruby-version: 'jruby-9.4'
|
24
|
+
experimental: true
|
23
25
|
|
24
26
|
continue-on-error: ${{ matrix.experimental }}
|
25
27
|
|
26
28
|
steps:
|
27
|
-
- uses: actions/checkout@
|
29
|
+
- uses: actions/checkout@v3
|
28
30
|
- name: Set up Ruby
|
29
31
|
uses: ruby/setup-ruby@v1
|
30
32
|
with:
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.26.0 / 2022-12-25
|
4
|
+
|
5
|
+
* [FEATURE] Drop Ruby 2.5 support
|
6
|
+
* [FEATURE] Add SimpleCov 0.22.0 compatibility
|
7
|
+
* [ENHANCEMENT] Test against Ruby 3.2 and JRuby 3.4
|
8
|
+
|
3
9
|
## 0.25.0 / 2022-08-05
|
4
10
|
|
5
11
|
* [ENHANCEMENT] Bump `jruby-openssl` requirement to `0.14.0` [#39](https://github.com/tagliala/coveralls-ruby-reborn/pull/39)
|
data/Gemfile
CHANGED
@@ -10,11 +10,11 @@ platforms :jruby do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
gem 'rake', '~> 13.0'
|
13
|
-
gem 'rspec', '~> 3.
|
14
|
-
gem 'rubocop', '~> 1.
|
15
|
-
gem 'rubocop-performance', '~> 1.
|
13
|
+
gem 'rspec', '~> 3.12'
|
14
|
+
gem 'rubocop', '~> 1.41'
|
15
|
+
gem 'rubocop-performance', '~> 1.15'
|
16
16
|
gem 'rubocop-rake', '~> 0.6.0'
|
17
|
-
gem 'rubocop-rspec', '~> 2.
|
17
|
+
gem 'rubocop-rspec', '~> 2.16'
|
18
18
|
gem 'truthy', '~> 1.0'
|
19
|
-
gem 'vcr', '~> 6.
|
20
|
-
gem 'webmock', '~> 3.
|
19
|
+
gem 'vcr', '~> 6.1'
|
20
|
+
gem 'webmock', '~> 3.18'
|
data/README.md
CHANGED
data/coveralls-ruby.gemspec
CHANGED
@@ -24,13 +24,13 @@ Gem::Specification.new do |gem|
|
|
24
24
|
gem.metadata['changelog_uri'] = 'https://github.com/tagliala/coveralls-ruby-reborn/blob/main/CHANGELOG.md'
|
25
25
|
gem.metadata['source_code_uri'] = 'https://github.com/tagliala/coveralls-ruby-reborn'
|
26
26
|
|
27
|
-
gem.required_ruby_version = '>= 2.
|
27
|
+
gem.required_ruby_version = '>= 2.6'
|
28
28
|
|
29
|
-
gem.add_dependency 'simplecov', '
|
30
|
-
gem.add_dependency 'term-ansicolor', '~> 1.
|
31
|
-
gem.add_dependency 'thor', '
|
32
|
-
gem.add_dependency 'tins', '~> 1.
|
29
|
+
gem.add_dependency 'simplecov', '~> 0.22.0'
|
30
|
+
gem.add_dependency 'term-ansicolor', '~> 1.7'
|
31
|
+
gem.add_dependency 'thor', '~> 1.2'
|
32
|
+
gem.add_dependency 'tins', '~> 1.32'
|
33
33
|
|
34
|
-
gem.add_development_dependency 'bundler', '
|
34
|
+
gem.add_development_dependency 'bundler', '~> 2.0'
|
35
35
|
gem.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
|
36
36
|
end
|
data/lib/coveralls/simplecov.rb
CHANGED
@@ -65,7 +65,7 @@ module Coveralls
|
|
65
65
|
line_number = branch_data.split(', ')[2].to_i
|
66
66
|
data.each_value do |hits|
|
67
67
|
branch_number += 1
|
68
|
-
branches_properties.
|
68
|
+
branches_properties.push(line_number, 0, branch_number, hits)
|
69
69
|
end
|
70
70
|
end
|
71
71
|
branches_properties
|
data/lib/coveralls/version.rb
CHANGED
@@ -32,9 +32,10 @@ describe Coveralls do
|
|
32
32
|
it 'outputs to stdout when running locally' do
|
33
33
|
described_class.testing = false
|
34
34
|
described_class.run_locally = true
|
35
|
-
|
36
|
-
|
37
|
-
|
35
|
+
|
36
|
+
expect do
|
37
|
+
silence { described_class.should_run? }
|
38
|
+
end.not_to raise_error
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|
@@ -46,7 +47,7 @@ describe Coveralls do
|
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
49
|
-
expect(
|
50
|
+
expect(SimpleCov).to have_received(:start)
|
50
51
|
end
|
51
52
|
|
52
53
|
it 'uses string' do
|
@@ -54,7 +55,7 @@ describe Coveralls do
|
|
54
55
|
described_class.wear! 'test_frameworks'
|
55
56
|
end
|
56
57
|
|
57
|
-
expect(
|
58
|
+
expect(SimpleCov).to have_received(:start).with 'test_frameworks'
|
58
59
|
end
|
59
60
|
|
60
61
|
it 'uses default' do
|
@@ -62,8 +63,8 @@ describe Coveralls do
|
|
62
63
|
described_class.wear!
|
63
64
|
end
|
64
65
|
|
65
|
-
expect(
|
66
|
-
expect(
|
66
|
+
expect(SimpleCov).to have_received(:start).with no_args
|
67
|
+
expect(SimpleCov.filters.map(&:filter_argument)).to include 'vendor'
|
67
68
|
end
|
68
69
|
end
|
69
70
|
|
@@ -75,7 +76,7 @@ describe Coveralls do
|
|
75
76
|
end
|
76
77
|
end
|
77
78
|
|
78
|
-
expect(
|
79
|
+
expect(SimpleCov.formatter).to be Coveralls::NilFormatter
|
79
80
|
end
|
80
81
|
end
|
81
82
|
|
@@ -99,12 +100,28 @@ describe Coveralls do
|
|
99
100
|
|
100
101
|
describe '#setup!' do
|
101
102
|
it 'sets SimpleCov adapter' do
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
103
|
+
previous_adapter = described_class.adapter
|
104
|
+
described_class.adapter = nil
|
105
|
+
|
106
|
+
expect do
|
107
|
+
silence { described_class.setup! }
|
108
|
+
end.to change(described_class, :adapter).from(nil).to(:simplecov)
|
109
|
+
ensure
|
110
|
+
described_class.adapter = previous_adapter
|
111
|
+
end
|
112
|
+
|
113
|
+
context 'when SimpleCov is not defined' do
|
114
|
+
# rubocop:disable RSpec/LeakyConstantDeclaration
|
115
|
+
it 'tries to load it' do
|
116
|
+
SimpleCovTmp = SimpleCov
|
117
|
+
Object.send :remove_const, :SimpleCov
|
118
|
+
expect do
|
119
|
+
silence { described_class.setup! }
|
120
|
+
end.not_to raise_error
|
121
|
+
ensure
|
122
|
+
SimpleCov = SimpleCovTmp
|
123
|
+
end
|
124
|
+
# rubocop:enable RSpec/LeakyConstantDeclaration
|
108
125
|
end
|
109
126
|
end
|
110
127
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls_reborn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Merwin
|
@@ -10,26 +10,20 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-12-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: simplecov
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.18.1
|
22
|
-
- - "<"
|
19
|
+
- - "~>"
|
23
20
|
- !ruby/object:Gem::Version
|
24
21
|
version: 0.22.0
|
25
22
|
type: :runtime
|
26
23
|
prerelease: false
|
27
24
|
version_requirements: !ruby/object:Gem::Requirement
|
28
25
|
requirements:
|
29
|
-
- - "
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: 0.18.1
|
32
|
-
- - "<"
|
26
|
+
- - "~>"
|
33
27
|
- !ruby/object:Gem::Version
|
34
28
|
version: 0.22.0
|
35
29
|
- !ruby/object:Gem::Dependency
|
@@ -38,68 +32,56 @@ dependencies:
|
|
38
32
|
requirements:
|
39
33
|
- - "~>"
|
40
34
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
35
|
+
version: '1.7'
|
42
36
|
type: :runtime
|
43
37
|
prerelease: false
|
44
38
|
version_requirements: !ruby/object:Gem::Requirement
|
45
39
|
requirements:
|
46
40
|
- - "~>"
|
47
41
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1.
|
42
|
+
version: '1.7'
|
49
43
|
- !ruby/object:Gem::Dependency
|
50
44
|
name: thor
|
51
45
|
requirement: !ruby/object:Gem::Requirement
|
52
46
|
requirements:
|
53
|
-
- - "
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: 0.20.3
|
56
|
-
- - "<"
|
47
|
+
- - "~>"
|
57
48
|
- !ruby/object:Gem::Version
|
58
|
-
version: '2
|
49
|
+
version: '1.2'
|
59
50
|
type: :runtime
|
60
51
|
prerelease: false
|
61
52
|
version_requirements: !ruby/object:Gem::Requirement
|
62
53
|
requirements:
|
63
|
-
- - "
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: 0.20.3
|
66
|
-
- - "<"
|
54
|
+
- - "~>"
|
67
55
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2
|
56
|
+
version: '1.2'
|
69
57
|
- !ruby/object:Gem::Dependency
|
70
58
|
name: tins
|
71
59
|
requirement: !ruby/object:Gem::Requirement
|
72
60
|
requirements:
|
73
61
|
- - "~>"
|
74
62
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
63
|
+
version: '1.32'
|
76
64
|
type: :runtime
|
77
65
|
prerelease: false
|
78
66
|
version_requirements: !ruby/object:Gem::Requirement
|
79
67
|
requirements:
|
80
68
|
- - "~>"
|
81
69
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
70
|
+
version: '1.32'
|
83
71
|
- !ruby/object:Gem::Dependency
|
84
72
|
name: bundler
|
85
73
|
requirement: !ruby/object:Gem::Requirement
|
86
74
|
requirements:
|
87
|
-
- - "
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.16'
|
90
|
-
- - "<"
|
75
|
+
- - "~>"
|
91
76
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
77
|
+
version: '2.0'
|
93
78
|
type: :development
|
94
79
|
prerelease: false
|
95
80
|
version_requirements: !ruby/object:Gem::Requirement
|
96
81
|
requirements:
|
97
|
-
- - "
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '1.16'
|
100
|
-
- - "<"
|
82
|
+
- - "~>"
|
101
83
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
84
|
+
version: '2.0'
|
103
85
|
- !ruby/object:Gem::Dependency
|
104
86
|
name: simplecov-lcov
|
105
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,14 +156,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
156
|
requirements:
|
175
157
|
- - ">="
|
176
158
|
- !ruby/object:Gem::Version
|
177
|
-
version: '2.
|
159
|
+
version: '2.6'
|
178
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
161
|
requirements:
|
180
162
|
- - ">="
|
181
163
|
- !ruby/object:Gem::Version
|
182
164
|
version: '0'
|
183
165
|
requirements: []
|
184
|
-
rubygems_version: 3.
|
166
|
+
rubygems_version: 3.2.33
|
185
167
|
signing_key:
|
186
168
|
specification_version: 4
|
187
169
|
summary: A Ruby implementation of the Coveralls API.
|