simplecov 0.18.1 → 0.18.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: 6139c9ec905e1f20dec5bdfd8fef48fe8b9091ce24ae1b55e89b850093cfcf69
4
- data.tar.gz: 3e15d4dbbc0f68b9453241603c0a1beade1b29ca2fbf64190f742f69db307b13
3
+ metadata.gz: 390d8182b24adbf82eaa93b222027107b09efc8f490ab2ea7db5dce03eeaf9b8
4
+ data.tar.gz: 7fad5ea78a2dc6a9a0e84caac8432db30cd475fcf6b08fe135aeee099bee46a7
5
5
  SHA512:
6
- metadata.gz: 3af5aa2cad84980d28f95c606d0e7cc8282d5c81689bdaa637cb29a971ffe2842b7cd91ba2d602a6214f7c917851886ead8a62b50a8e071a12edbddbb7355a45
7
- data.tar.gz: a3afd317b84ae5b11b907384c3ee17436e3a033c956c7ebdc000db0fca852442e4e658b72dc09c07f3c510f659297ab386f07af4fbee1c43b8a81794da595f6a
6
+ metadata.gz: e5e84c5ca4337bba395afb5ccb44923eaee46294c6116eb8ec15890b1f13500f5a56b117999e5aaacb89fcea1fa012133306d8943530c6e3b96976682511ac77
7
+ data.tar.gz: 4af3b7f1df63df9103989cb951efdca6cecf35c99c02176ad0b3b29aa42828b98e031ef683864bc3e00cf6f699da285b4c8eb6f39a68149832abdcd98943506a
@@ -1,3 +1,11 @@
1
+ 0.18.2 (2020-02-12)
2
+ ===================
3
+
4
+ Small release just to allow you to use the new simplecov-html.
5
+
6
+ ## Enhancements
7
+ * Relax simplecov-html requirement so that you're able to use [0.12.0](https://github.com/colszowka/simplecov-html/blob/master/CHANGELOG.md#0120-2020-02-12)
8
+
1
9
  0.18.1 (2020-01-31)
2
10
  ===================
3
11
 
@@ -25,6 +33,7 @@ You can run with branch coverage by putting `enable_coverage :branch` into your
25
33
 
26
34
  ## Noteworthy
27
35
  * `FileList` stopped inheriting from Array, it includes Enumerable so if you didn't use Array specific methods on it in formatters you should be fine
36
+ * We needed to change an internal file format, which we use for merging across processes, to accommodate branch coverage. Sadly CodeClimate chose to use this file to report test coverage. Until a resolution is found the code climate test reporter won't work with SimpleCov for 0.18+, see [this issue on the test reporter](https://github.com/codeclimate/test-reporter/issues/413).
28
37
 
29
38
  0.18.0.beta3 (2020-01-20)
30
39
  ========================
@@ -9,8 +9,8 @@ module SimpleCov
9
9
  #
10
10
  # Combine two coverage based on the given combiner_module.
11
11
  #
12
- # Combiners should always be called throught his interface,
13
- # as it takes care of short circuting of one of the coverages is nil.
12
+ # Combiners should always be called through this interface,
13
+ # as it takes care of short-circuiting of one of the coverages is nil.
14
14
  #
15
15
  # @return [Hash]
16
16
  def combine(combiner_module, coverage_a, coverage_b)
@@ -10,9 +10,9 @@ module SimpleCov
10
10
  module_function
11
11
 
12
12
  #
13
- # Return merged branches or the existed branche if other is missing.
13
+ # Return merged branches or the existed brach if other is missing.
14
14
  #
15
- # Branches inside files are always same if they exists, the difference only in coverage count.
15
+ # Branches inside files are always same if they exist, the difference only in coverage count.
16
16
  # Branch coverage report for any conditional case is built from hash, it's key is a condition and
17
17
  # it's body is a hash << keys from condition and value is coverage rate >>.
18
18
  # ex: branches =>{ [:if, 3, 8, 6, 8, 36] => {[:then, 4, 8, 6, 8, 12] => 1, [:else, 5, 8, 6, 8, 36]=>2}, other conditions...}
@@ -19,7 +19,7 @@ module SimpleCov
19
19
  [
20
20
  covered + file_coverage_statistics.covered,
21
21
  missed + file_coverage_statistics.missed,
22
- # gotta remultiply with loc because files have different strenght and loc
22
+ # gotta remultiply with loc because files have different strength and loc
23
23
  # giving them a different "weight" in total
24
24
  total_strength + (file_coverage_statistics.strength * file_coverage_statistics.total)
25
25
  ]
@@ -35,14 +35,14 @@ module SimpleCov
35
35
  @covered = covered
36
36
  @missed = missed
37
37
  @total = covered + missed
38
- @percent = compute_percent(covered, total)
39
- @strength = compute_strength(total_strength, @total)
38
+ @percent = compute_percent(covered, missed, total)
39
+ @strength = compute_strength(total_strength, total)
40
40
  end
41
41
 
42
42
  private
43
43
 
44
- def compute_percent(covered, total)
45
- return 100.0 if total.zero?
44
+ def compute_percent(covered, missed, total)
45
+ return 100.0 if missed.zero?
46
46
 
47
47
  covered * 100.0 / total
48
48
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleCov
4
- VERSION = "0.18.1"
4
+ VERSION = "0.18.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-31 00:00:00.000000000 Z
11
+ date: 2020-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docile
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.11.0
33
+ version: '0.11'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.11.0
40
+ version: '0.11'
41
41
  description: Code coverage for Ruby with a powerful configuration library and automatic
42
42
  merging of coverage across test suites
43
43
  email:
@@ -96,9 +96,9 @@ licenses:
96
96
  metadata:
97
97
  bug_tracker_uri: https://github.com/colszowka/simplecov/issues
98
98
  changelog_uri: https://github.com/colszowka/simplecov/blob/master/CHANGELOG.md
99
- documentation_uri: https://www.rubydoc.info/gems/simplecov/0.18.1
99
+ documentation_uri: https://www.rubydoc.info/gems/simplecov/0.18.2
100
100
  mailing_list_uri: https://groups.google.com/forum/#!forum/simplecov
101
- source_code_uri: https://github.com/colszowka/simplecov/tree/v0.18.1
101
+ source_code_uri: https://github.com/colszowka/simplecov/tree/v0.18.2
102
102
  post_install_message:
103
103
  rdoc_options: []
104
104
  require_paths: