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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 416266e041802fd34c70615778b2fedd0cafd61827b700039c939d13d89f0835
4
- data.tar.gz: 5ed28062acc5b3465fadcdebcdb9ca28d9f17535267a31ce7dfcc312e1527f48
3
+ metadata.gz: afc0e78d256ce0dd4b33c55efb46a4463f31b72a6dcaefea8dba983ba366f7ba
4
+ data.tar.gz: d0c17198c79fe4e85ec21497355e618048637595b00fbecf180ab61815e75c65
5
5
  SHA512:
6
- metadata.gz: 21d347fa63288c3870213684b636b344bdab7960ab0888e0c1f4e2a7dfbc1eb62da7fc296dcb7ac11d21e04f52a44429523e9a15141cc9d5fad7319f680cbe22
7
- data.tar.gz: 5823f330d811c157acf64387ee9cf34e727307f370946f16e28a7b6495eb6bb864ef0703999462a158d69fc9e8c1b32f71a41340724e5989a0fed62396742316
6
+ metadata.gz: b6cd1717e5c3a639b6f4392e4067625d700aa9732c56898f3be5d9bf9c633715455efaecaf421e53e6c4c734756992ac623ba341a2b78fdc30d0ec56ed27e76f
7
+ data.tar.gz: c031ee7dfe0317d5e6536fb4cf393a8bf3dca3c691bb4ab3240678a253a6f514bccf544a0767291959d671581329399f6e1993ead0660fa5875980e6c0862114
@@ -1,3 +1,9 @@
1
+ 0.21.1 (2021-01-04)
2
+ ==========
3
+
4
+ ## Bugfixes
5
+ * `minimum_coverage_by_file` works again as expected (errored out before 😱)
6
+
1
7
  0.21.0 (2021-01-03)
2
8
  ==========
3
9
 
@@ -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[criterion].map do |actual_percent|
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(actual_percent)
47
+ actual: SimpleCov.round_coverage(actual_coverage.percent)
48
48
  }
49
49
  end
50
50
  end
@@ -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[:line]
110
- together[:branch] << file.coverage_statistics[:branch] if SimpleCov.branch_coverage?
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleCov
4
- VERSION = "0.21.0"
4
+ VERSION = "0.21.1"
5
5
  end
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.0
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-03 00:00:00.000000000 Z
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.0
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.0
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: