undercover 0.8.0 → 0.8.2
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/.github/workflows/ruby.yml +3 -3
- data/CHANGELOG.md +14 -1
- data/lib/undercover/filter_set.rb +1 -0
- data/lib/undercover/result.rb +5 -4
- data/lib/undercover/simplecov_formatter.rb +1 -0
- data/lib/undercover/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bfcb8604d5d6f2d750c8ef734b36a1d0d84beceb31c999e00b06b653063655b1
|
|
4
|
+
data.tar.gz: 7dd446be898392baa898f4ff3329584d11410795334800f923175c8997cfb6f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: facb61acb2821bd2ac578b35c70e0cc2139f35ff71f196703590821e1430270681d8bcc7b2b596efa7a3ff94862453056664c354afd9c399298120aca22eaa6f
|
|
7
|
+
data.tar.gz: 3e30b3515493666b14c5006b084bd023a686b81df6c510adc2bdfb8da496efa086c9560f455443e70bfd32537105b9fd13c3d3a32b4845a67a3614dd9178de89
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -7,7 +7,7 @@ jobs:
|
|
|
7
7
|
matrix:
|
|
8
8
|
ruby: ['3.4', '3.0']
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
10
|
+
- uses: actions/checkout@v5
|
|
11
11
|
with:
|
|
12
12
|
fetch-depth: 0 # fetch all since test fixtures depend on history
|
|
13
13
|
- name: Set up Ruby ${{ matrix.ruby }}
|
|
@@ -23,7 +23,7 @@ jobs:
|
|
|
23
23
|
run: |
|
|
24
24
|
git fetch --update-head-ok origin master:master
|
|
25
25
|
undercover --simplecov coverage/undercover_coverage.json --compare master
|
|
26
|
-
- uses: actions/upload-artifact@
|
|
26
|
+
- uses: actions/upload-artifact@v5
|
|
27
27
|
with:
|
|
28
28
|
name: undercover-${{ matrix.ruby }}-coverage
|
|
29
29
|
path: coverage/undercover_coverage.json
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
runs-on: ubuntu-latest
|
|
32
32
|
needs: build
|
|
33
33
|
steps:
|
|
34
|
-
- uses: actions/download-artifact@
|
|
34
|
+
- uses: actions/download-artifact@v6
|
|
35
35
|
with:
|
|
36
36
|
name: undercover-3.4-coverage
|
|
37
37
|
- name: Upload coverage
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
# [0.8.2] - 2025-11-15
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- Fix NoMethodError in pretty_print for ignored multi-line branch results (https://github.com/grodowski/undercover/pull/243)
|
|
13
|
+
|
|
14
|
+
# [0.8.1] - 2025-09-27
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Fix missing require in the simplecov formatter causing potential load errors if SimpleCov wasn't required first
|
|
18
|
+
- Fix SimpleCov filters ([#239](https://github.com/grodowski/undercover/pull/239) by [@loadkpi](https://github.com/loadkpi))
|
|
19
|
+
|
|
9
20
|
# [0.8.0] - 2025-08-28
|
|
10
21
|
|
|
11
22
|
### Added
|
|
@@ -194,7 +205,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
194
205
|
### Added
|
|
195
206
|
- First release of `undercover` 🎉
|
|
196
207
|
|
|
197
|
-
[Unreleased]: https://github.com/grodowski/undercover/compare/v0.8.
|
|
208
|
+
[Unreleased]: https://github.com/grodowski/undercover/compare/v0.8.2...HEAD
|
|
209
|
+
[0.8.2]: https://github.com/grodowski/undercover/compare/v0.8.1...v0.8.2
|
|
210
|
+
[0.8.1]: https://github.com/grodowski/undercover/compare/v0.8.0...v0.8.1
|
|
198
211
|
[0.8.0]: https://github.com/grodowski/undercover/compare/v0.7.4...v0.8.0
|
|
199
212
|
[0.7.4]: https://github.com/grodowski/undercover/compare/v0.7.3...v0.7.4
|
|
200
213
|
[0.7.3]: https://github.com/grodowski/undercover/compare/v0.7.2...v0.7.3
|
data/lib/undercover/result.rb
CHANGED
|
@@ -134,10 +134,12 @@ module Undercover
|
|
|
134
134
|
|
|
135
135
|
private
|
|
136
136
|
|
|
137
|
-
# rubocop:disable Metrics/AbcSize
|
|
138
|
-
def count_covered_branches(line_number)
|
|
137
|
+
def count_covered_branches(line_number) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
|
139
138
|
branches = coverage.select { |cov| cov.size == 4 && cov[0] == line_number }
|
|
140
|
-
count_covered = branches.count
|
|
139
|
+
count_covered = branches.count do |cov|
|
|
140
|
+
branch_cov = cov[3]
|
|
141
|
+
branch_cov == 'ignored' || (branch_cov.respond_to?(:positive?) && branch_cov.positive?)
|
|
142
|
+
end
|
|
141
143
|
|
|
142
144
|
return '' if branches.empty?
|
|
143
145
|
|
|
@@ -148,6 +150,5 @@ module Undercover
|
|
|
148
150
|
Rainbow(" branches: #{count_covered}/#{branches.size}").italic.darkgray.dark
|
|
149
151
|
end
|
|
150
152
|
end
|
|
151
|
-
# rubocop:enable Metrics/AbcSize
|
|
152
153
|
end
|
|
153
154
|
end
|
data/lib/undercover/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: undercover
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Grodowski
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-11-15 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: base64
|