undercover 0.8.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 522b27800c01ddd2ed70108b080f709d4c4ec12d338c4c8ba204b54cb4c464bc
4
- data.tar.gz: 8208f484eb86247a02b0c58d5007ce6a80e29ce125a2a39516e5ee4b8acdd43b
3
+ metadata.gz: bfcb8604d5d6f2d750c8ef734b36a1d0d84beceb31c999e00b06b653063655b1
4
+ data.tar.gz: 7dd446be898392baa898f4ff3329584d11410795334800f923175c8997cfb6f1
5
5
  SHA512:
6
- metadata.gz: a65331bb82a3a31845fea782519a4254449264b914c26d8c54277a00a9ae4653bb183aa5bdc1f66982e991ccadea1b8a066553d616bbcc2c033bcc2c0550f0c0
7
- data.tar.gz: d60a04cbd89cda50b486f850e68a0843aae0db0da5acc93acab565ba93e9eaf7090c14898140b0c120cd25ddd0164a3fbcd544f794859e3c466eccaa62a3afb7
6
+ metadata.gz: facb61acb2821bd2ac578b35c70e0cc2139f35ff71f196703590821e1430270681d8bcc7b2b596efa7a3ff94862453056664c354afd9c399298120aca22eaa6f
7
+ data.tar.gz: 3e30b3515493666b14c5006b084bd023a686b81df6c510adc2bdfb8da496efa086c9560f455443e70bfd32537105b9fd13c3d3a32b4845a67a3614dd9178de89
@@ -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@v4
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@v5
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,11 @@ 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
+
9
14
  # [0.8.1] - 2025-09-27
10
15
 
11
16
  ### Fixed
@@ -200,7 +205,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
200
205
  ### Added
201
206
  - First release of `undercover` 🎉
202
207
 
203
- [Unreleased]: https://github.com/grodowski/undercover/compare/v0.8.0...HEAD
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
204
211
  [0.8.0]: https://github.com/grodowski/undercover/compare/v0.7.4...v0.8.0
205
212
  [0.7.4]: https://github.com/grodowski/undercover/compare/v0.7.3...v0.7.4
206
213
  [0.7.3]: https://github.com/grodowski/undercover/compare/v0.7.2...v0.7.3
@@ -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 { |cov| cov[3].positive? }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Undercover
4
- VERSION = '0.8.1'
4
+ VERSION = '0.8.2'
5
5
  end
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.1
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-09-27 00:00:00.000000000 Z
10
+ date: 2025-11-15 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: base64