simplecov 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb +3 -3
- data/lib/simplecov/file_list.rb +2 -2
- data/lib/simplecov/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afc0e78d256ce0dd4b33c55efb46a4463f31b72a6dcaefea8dba983ba366f7ba
|
4
|
+
data.tar.gz: d0c17198c79fe4e85ec21497355e618048637595b00fbecf180ab61815e75c65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6cd1717e5c3a639b6f4392e4067625d700aa9732c56898f3be5d9bf9c633715455efaecaf421e53e6c4c734756992ac623ba341a2b78fdc30d0ec56ed27e76f
|
7
|
+
data.tar.gz: c031ee7dfe0317d5e6536fb4cf393a8bf3dca3c691bb4ab3240678a253a6f514bccf544a0767291959d671581329399f6e1993ead0660fa5875980e6c0862114
|
data/CHANGELOG.md
CHANGED
@@ -15,7 +15,7 @@ module SimpleCov
|
|
15
15
|
def report
|
16
16
|
minimum_violations.each do |violation|
|
17
17
|
$stderr.printf(
|
18
|
-
"%<criterion>s coverage (%<covered>.2f%%) is below the expected minimum coverage (%<minimum_coverage>.2f%%).\n",
|
18
|
+
"%<criterion>s coverage by file (%<covered>.2f%%) is below the expected minimum coverage (%<minimum_coverage>.2f%%).\n",
|
19
19
|
covered: SimpleCov.round_coverage(violation.fetch(:actual)),
|
20
20
|
minimum_coverage: violation.fetch(:minimum_expected),
|
21
21
|
criterion: violation.fetch(:criterion).capitalize
|
@@ -40,11 +40,11 @@ module SimpleCov
|
|
40
40
|
|
41
41
|
def compute_minimum_coverage_data
|
42
42
|
minimum_coverage_by_file.flat_map do |criterion, expected_percent|
|
43
|
-
result.coverage_statistics_by_file
|
43
|
+
result.coverage_statistics_by_file.fetch(criterion).map do |actual_coverage|
|
44
44
|
{
|
45
45
|
criterion: criterion,
|
46
46
|
minimum_expected: expected_percent,
|
47
|
-
actual: SimpleCov.round_coverage(
|
47
|
+
actual: SimpleCov.round_coverage(actual_coverage.percent)
|
48
48
|
}
|
49
49
|
end
|
50
50
|
end
|
data/lib/simplecov/file_list.rb
CHANGED
@@ -106,8 +106,8 @@ module SimpleCov
|
|
106
106
|
|
107
107
|
def compute_coverage_statistics_by_file
|
108
108
|
@files.each_with_object(line: [], branch: []) do |file, together|
|
109
|
-
together[:line] << file.coverage_statistics
|
110
|
-
together[:branch] << file.coverage_statistics
|
109
|
+
together[:line] << file.coverage_statistics.fetch(:line)
|
110
|
+
together[:branch] << file.coverage_statistics.fetch(:branch) if SimpleCov.branch_coverage?
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
data/lib/simplecov/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.
|
4
|
+
version: 0.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Olszowka
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-01-
|
12
|
+
date: 2021-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: docile
|
@@ -116,9 +116,9 @@ licenses:
|
|
116
116
|
metadata:
|
117
117
|
bug_tracker_uri: https://github.com/simplecov-ruby/simplecov/issues
|
118
118
|
changelog_uri: https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md
|
119
|
-
documentation_uri: https://www.rubydoc.info/gems/simplecov/0.21.
|
119
|
+
documentation_uri: https://www.rubydoc.info/gems/simplecov/0.21.1
|
120
120
|
mailing_list_uri: https://groups.google.com/forum/#!forum/simplecov
|
121
|
-
source_code_uri: https://github.com/simplecov-ruby/simplecov/tree/v0.21.
|
121
|
+
source_code_uri: https://github.com/simplecov-ruby/simplecov/tree/v0.21.1
|
122
122
|
post_install_message:
|
123
123
|
rdoc_options: []
|
124
124
|
require_paths:
|