codeclimate_circle_ci_coverage 0.0.5 → 0.0.6
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,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTA0MzhhYmJkZmM2NjIxMGJmYTYxZTY2MDBmMDRkNmQ4ZGZjYzI1Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWY5NDMwYzA0MjljNDdjNjIxOGQyY2IyN2Y1MDY3NGU0MGE0Yjg2OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Zjk0MTQzYjQ4ODE0ZTQ3MDZmYTI2NWQ3Mzk5MDBjN2M5ZmIwODVhNGQzZGQ0
|
10
|
+
MjQ3ZGU1ZjcwZTVmZGU4NTNkMWU1YzU0N2RkZTVmNGYxOTllNjM4OGFiZmQ3
|
11
|
+
ZmU2OWMwOGU3MjQ5YTAyZGZiN2Q2MzlkZmIzYWUzY2M5ZGIyOTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmY3MjhjMjkxOGQ5NmQ1Mzg0MTUzYmYzZGU0MTM0ZTg1ZTM0NmE1NTgyOTBm
|
14
|
+
NTZiOTFhZTdkODBhZWNhY2QzMTE1NTM5NTc3YmY4Yjc0NDFhZTNkMzA4YmNj
|
15
|
+
OGExOTcyNDBmNWNkMTBjNDBiYzk2Zjc3YWQ5NGU3MmZhNTRiMzc=
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require "simplecov"
|
2
|
+
# Without this change, merging results erroneously marks blank comment lines as
|
3
|
+
# uncovered.
|
4
|
+
# https://github.com/colszowka/simplecov/pull/441
|
5
|
+
module SimpleCov
|
6
|
+
module ArrayMergeHelper
|
7
|
+
# Merges an array of coverage results with self
|
8
|
+
def merge_resultset(array)
|
9
|
+
new_array = dup
|
10
|
+
array.each_with_index do |element, i|
|
11
|
+
pair = [element, new_array[i]]
|
12
|
+
new_array[i] = if pair.any?(&:nil?) && pair.map(&:to_i).all?(&:zero?)
|
13
|
+
nil
|
14
|
+
else
|
15
|
+
element.to_i + new_array[i].to_i
|
16
|
+
end
|
17
|
+
end
|
18
|
+
new_array
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate_circle_ci_coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Dunlop
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- bin/report_coverage
|
78
78
|
- lib/codeclimate_circle_ci_coverage.rb
|
79
79
|
- lib/codeclimate_circle_ci_coverage/coverage_reporter.rb
|
80
|
+
- lib/codeclimate_circle_ci_coverage/patch_simplecov.rb
|
80
81
|
- spec/coverage_reporter_spec.rb
|
81
82
|
- spec/spec_helper.rb
|
82
83
|
homepage: http://rubygems.org/gems/codeclimate_circle_ci_coverage
|