covered 0.28.0 → 0.28.1

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: 289a32298170797803df03aec0f13ab6452bcc2787d38e85860ead1bca0b17b0
4
- data.tar.gz: 6f682d81566f970a93a4aed6b00e1db77603fcf2a982245e75c60e7c30f15652
3
+ metadata.gz: '050825f1f7f7966b0592e4fa5864ccd53dfbb0027795e422e47deb32d7300be5'
4
+ data.tar.gz: 27984bc6a74fb8cd375e2277ea59592a544f6d3617034cc0626dee085fec4ac0
5
5
  SHA512:
6
- metadata.gz: 4495fe21349a2cd25fbfc81e7de1b0d2c00465635f543b991cb8f740e8dad98653dd7a59552e065fb51a5224e39ce12601199ca912fde16033eb43b109f1197d
7
- data.tar.gz: e43586380b8587f803c1175f3a919eafd55a860dd61092057ecbf729cce902671e7046fe81fb0baacbd699f4968bdb571b3fe8a10017f80b6341365291584003
6
+ metadata.gz: 12300d334169f20ed66a8f6429e6294b7fcd75306fc4c589b3ebf71c2fed2a6feb29a41f502729a15a77bceefc3213ba9c65033d4cd14a7859b49318e58aaeb7
7
+ data.tar.gz: e822368a201045b58b653a87d37951a8e2ca773da45f16537fea1fbafe70a968047acf28d4b369111a68384afda93514c796648173ada8c61053fb65b4f6bc84
checksums.yaml.gz.sig CHANGED
Binary file
@@ -41,8 +41,11 @@ module Covered
41
41
  def call(wrapper, output = $stdout, **options)
42
42
  terminal = self.terminal(output)
43
43
  complete_files = []
44
+ partial_files_count = 0
44
45
 
45
46
  statistics = self.each(wrapper) do |coverage|
47
+ partial_files_count += 1
48
+
46
49
  path = wrapper.relative_path(coverage.path)
47
50
  terminal.puts ""
48
51
  terminal.puts path, style: :path
@@ -66,8 +69,8 @@ module Covered
66
69
  terminal.puts
67
70
  statistics.print(output)
68
71
 
69
- # Show information about files with 100% coverage
70
- if complete_files.any?
72
+ # Only show information about files with 100% coverage if there were files with partial coverage shown above
73
+ if complete_files.any? && partial_files_count > 0
71
74
  terminal.puts ""
72
75
  if complete_files.size == 1
73
76
  terminal.puts "1 file has 100% coverage and is not shown above:"
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
6
  module Covered
7
- VERSION = "0.28.0"
7
+ VERSION = "0.28.1"
8
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: covered
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.28.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file