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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/covered/partial_summary.rb +5 -2
- data/lib/covered/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '050825f1f7f7966b0592e4fa5864ccd53dfbb0027795e422e47deb32d7300be5'
|
4
|
+
data.tar.gz: 27984bc6a74fb8cd375e2277ea59592a544f6d3617034cc0626dee085fec4ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
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:"
|
data/lib/covered/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|