coveralls_reborn 0.29.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af57d67bac74aacce9e127190daf2d6fa0c2837a0ffeba1cdfe6e11264e59e56
4
- data.tar.gz: 5b482181dda7d9cb688bfdfa31ad309678431cd180c6eaaafe36de2d772667c3
3
+ metadata.gz: 51dc1f464e45aac1f4c2a8ff0a1f96e460fafe9b093e47610010b6f0a2ca2340
4
+ data.tar.gz: b594ae88197bd7ecf0dce3048b094f582665a10b4c57f3cdd9fd1ace17c17008
5
5
  SHA512:
6
- metadata.gz: 3990b83ade5bea12d3915f612503f49fa7fa02aa902637821b443577e0b1406ce177061f1c3523c80a1867f11f223f89066aba8b0e55ac2cf506f622adc8de0c
7
- data.tar.gz: 61ccad3795e921a1e47337f1727ac7759ca1240ecf9f31fec3985a9629daa1e23d9aec00ce2df92f64d2f0e2c5891bd6a76dd74fec41c513e9c4ea3021680480
6
+ metadata.gz: 91c57f96efe23b43d3d588d9279eab901080cc38cfcd74b8a2544e3bede898e900a845667f52cdf6cf8eecec591f643c8716d1cbb37e4bd724b346b52130f251
7
+ data.tar.gz: 7121837c0978302b6599c3b8f63b1dea20fd1ee1b6a54e7c89ee0f7df0c28e1577e04d960a42a715f060e24eaffeba0a1ecc26f2fb7d03488bdf9f855d29a9bd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0 / 2026-07-18
4
+
5
+ * [BREAKING CHANGE] SimpleCov 1.0 compatibility [#64](https://github.com/tagliala/coveralls-ruby-reborn/pull/64)
6
+
3
7
  ## 0.29.1 / 2026-06-19
4
8
 
5
9
  * [ENHANCEMENT] Minor internal updates [#61](https://github.com/tagliala/coveralls-ruby-reborn/pull/61)
data/README.md CHANGED
@@ -17,7 +17,7 @@ An up-to-date fork of [lemurheavy/coveralls-ruby](https://github.com/lemurheavy/
17
17
  - Building on a supported CI service (see
18
18
  [supported CI services](https://docs.coveralls.io/ci-services) here)
19
19
  - Any Ruby project or test framework supported by
20
- [SimpleCov](https://github.com/colszowka/simplecov) is supported by the
20
+ [SimpleCov](https://github.com/simplecov-ruby/simplecov) is supported by the
21
21
  [coveralls-ruby-reborn](https://github.com/tagliala/coveralls-ruby-reborn) gem. This includes
22
22
  all your favorites, like [RSpec](https://rspec.info/), Cucumber, and Test::Unit.
23
23
 
@@ -86,7 +86,7 @@ should be at the **very top** of your `spec_helper.rb`, `test_helper.rb`, or `en
86
86
 
87
87
  And holy moly, you're done!
88
88
 
89
- Next time your project is built on CI, [SimpleCov](https://github.com/colszowka/simplecov) will dial
89
+ Next time your project is built on CI, [SimpleCov](https://github.com/simplecov-ruby/simplecov) will dial
90
90
  up [Coveralls.io](https://coveralls.io) and send the hot details on your code coverage.
91
91
 
92
92
  ### SIMPLECOV CUSTOMIZATION
@@ -94,7 +94,7 @@ up [Coveralls.io](https://coveralls.io) and send the hot details on your code co
94
94
  *"But wait!"* you're saying, *"I already use SimpleCov, and I have some custom settings! Are you
95
95
  really just overriding everything I've already set up?"*
96
96
 
97
- Good news, just use this gem's [SimpleCov](https://github.com/colszowka/simplecov) formatter
97
+ Good news, just use this gem's [SimpleCov](https://github.com/simplecov-ruby/simplecov) formatter
98
98
  directly:
99
99
 
100
100
  ```ruby
@@ -103,7 +103,7 @@ require 'coveralls'
103
103
 
104
104
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
105
105
  SimpleCov.start do
106
- add_filter 'app/secrets'
106
+ skip 'app/secrets'
107
107
  end
108
108
  ```
109
109
 
@@ -125,7 +125,7 @@ SimpleCov.start
125
125
  If you're using more than one test suite and want the coverage results to be merged, use
126
126
  `Coveralls.wear_merged!` instead of `Coveralls.wear!`.
127
127
 
128
- Or, if you're using Coveralls alongside another [SimpleCov](https://github.com/colszowka/simplecov)
128
+ Or, if you're using Coveralls alongside another [SimpleCov](https://github.com/simplecov-ruby/simplecov)
129
129
  formatter, simply omit the Coveralls formatter, then add the rake task `coveralls:push` to your
130
130
  `Rakefile` as a dependency to your testing task, like so:
131
131
 
@@ -136,7 +136,7 @@ task :test_with_coveralls => [:spec, :features, 'coveralls:push']
136
136
  ```
137
137
 
138
138
  This will prevent Coveralls from sending coverage data after each individual suite, instead waiting
139
- until [SimpleCov](https://github.com/colszowka/simplecov) has merged the results, which are then
139
+ until [SimpleCov](https://github.com/simplecov-ruby/simplecov) has merged the results, which are then
140
140
  posted to [Coveralls.io](https://coveralls.io).
141
141
 
142
142
  Unless you've added `coveralls:push` to your default rake task, your build command will need to be
@@ -146,7 +146,7 @@ updated on your CI to reflect this, for example:
146
146
  bundle exec rake :test_with_coveralls
147
147
  ```
148
148
 
149
- *Read more about [SimpleCov's result merging](https://github.com/colszowka/simplecov#merging-results).*
149
+ *Read more about [SimpleCov's result merging](https://github.com/simplecov-ruby/simplecov#merging-results).*
150
150
 
151
151
  ### MANUAL BUILDS VIA CLI
152
152
 
@@ -165,30 +165,17 @@ specified in `.coveralls.yml`.
165
165
 
166
166
  Psst... you don't need this gem on GitHub Actions.
167
167
 
168
- For a Rails application, just add
169
-
170
- ```rb
171
- gem 'simplecov-lcov', '~> 0.9.0'
172
- ```
173
-
174
- to your `Gemfile` and
168
+ Add
175
169
 
176
170
  ```rb
177
171
  require 'simplecov'
178
172
 
179
173
  SimpleCov.start 'rails' do
180
- if ENV['CI']
181
- require 'simplecov-lcov'
182
-
183
- SimpleCov::Formatter::LcovFormatter.config do |c|
184
- c.report_with_single_file = true
185
- c.single_report_path = 'coverage/lcov.info'
186
- end
174
+ if ENV['GITHUB_ACTIONS']
175
+ source_in_json false
187
176
 
188
- formatter SimpleCov::Formatter::LcovFormatter
177
+ formatter SimpleCov::Formatter::JSONFormatter
189
178
  end
190
-
191
- add_filter %w[version.rb initializer.rb]
192
179
  end
193
180
  ```
194
181
 
data/lib/coveralls/api.rb CHANGED
@@ -12,10 +12,10 @@ module Coveralls
12
12
  else
13
13
  API_HOST = ENV['COVERALLS_DEVELOPMENT'] ? 'localhost:3000' : 'coveralls.io'
14
14
  API_PROTOCOL = ENV['COVERALLS_DEVELOPMENT'] ? 'http' : 'https'
15
- API_DOMAIN = "#{API_PROTOCOL}://#{API_HOST}"
15
+ API_DOMAIN = "#{API_PROTOCOL}://#{API_HOST}".freeze
16
16
  end
17
17
 
18
- API_BASE = "#{API_DOMAIN}/api/v1"
18
+ API_BASE = "#{API_DOMAIN}/api/v1".freeze
19
19
 
20
20
  class << self
21
21
  def post_json(endpoint, hash)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.29.1'
4
+ VERSION = '1.0.0'
5
5
  end
data/lib/coveralls.rb CHANGED
@@ -17,16 +17,16 @@ module Coveralls
17
17
 
18
18
  module_function
19
19
 
20
- def wear!(simplecov_setting = nil, &block)
20
+ def wear!(simplecov_setting = nil, &)
21
21
  setup!
22
- start! simplecov_setting, &block
22
+ start!(simplecov_setting, &)
23
23
  end
24
24
 
25
- def wear_merged!(simplecov_setting = nil, &block)
25
+ def wear_merged!(simplecov_setting = nil, &)
26
26
  require 'simplecov'
27
27
  @adapter = :simplecov
28
28
  ::SimpleCov.formatter = NilFormatter
29
- start! simplecov_setting, &block
29
+ start!(simplecov_setting, &)
30
30
  end
31
31
 
32
32
  def push!
@@ -62,7 +62,7 @@ module Coveralls
62
62
  def start!(simplecov_setting = 'test_frameworks', &block)
63
63
  return unless @adapter == :simplecov
64
64
 
65
- ::SimpleCov.add_filter 'vendor'
65
+ ::SimpleCov.skip 'vendor'
66
66
 
67
67
  if simplecov_setting
68
68
  Coveralls::Output.puts("[Coveralls] Using SimpleCov's '#{simplecov_setting}' settings.", color: 'green')
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.29.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
@@ -15,58 +15,58 @@ dependencies:
15
15
  name: simplecov
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 0.22.0
20
+ version: '1.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 0.22.0
27
+ version: '1.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: term-ansicolor
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '1.7'
34
+ version: '1.11'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '1.7'
41
+ version: '1.11'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: thor
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '1.2'
48
+ version: '1.5'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '1.2'
55
+ version: '1.5'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: tins
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '1.32'
62
+ version: '1.54'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '1.32'
69
+ version: '1.54'
70
70
  description: A Ruby implementation of the Coveralls API.
71
71
  email:
72
72
  - nick@lemurheavy.com
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: '2.6'
107
+ version: '3.2'
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="