codeclimate_circle_ci_coverage 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGJmMzM3ZWQxMjIzZTQ3NDQ5ZDEwMGRmMGI1ZjAzYjlmZDY4YTlhZQ==
4
+ OTA0MzhhYmJkZmM2NjIxMGJmYTYxZTY2MDBmMDRkNmQ4ZGZjYzI1Mw==
5
5
  data.tar.gz: !binary |-
6
- MjA5NmMyNjA4ZjVhMTVjZGNjZmZkMzQ3OGI0NTg0ZjNmNDFhZmUyMw==
6
+ OWY5NDMwYzA0MjljNDdjNjIxOGQyY2IyN2Y1MDY3NGU0MGE0Yjg2OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTAwNzJiYTQxYWVmMzAxYjcxMTU1ODc0Y2RlYWY5NzUxYjM0YjAxNTU0OTU0
10
- YmFmYjRkNDg1OTExOTdlNDkxMGY4MGZkZGFhNDRiYTgyNjA4M2U0NzYzZTc1
11
- YWFmMDI2NTJkOWZhYzE3NWNlNGZjOThjZWZhNGJjNTMwM2JiMjM=
9
+ Zjk0MTQzYjQ4ODE0ZTQ3MDZmYTI2NWQ3Mzk5MDBjN2M5ZmIwODVhNGQzZGQ0
10
+ MjQ3ZGU1ZjcwZTVmZGU4NTNkMWU1YzU0N2RkZTVmNGYxOTllNjM4OGFiZmQ3
11
+ ZmU2OWMwOGU3MjQ5YTAyZGZiN2Q2MzlkZmIzYWUzY2M5ZGIyOTY=
12
12
  data.tar.gz: !binary |-
13
- NGJhMTlhMWUxNDgyMzYwMDU4MDJmNDJmZWRjMzkyNTJjYzBkZWE1ZDE4NjI4
14
- YWU2YzUyMTFmYjRmMDM2N2NkN2I0NGQzYjRkNTFiM2QwYWVkMGQxYmU0YzE1
15
- Y2M1YWIzMDc1YWE2MDhhMTUxNmIyMmY5ODc5OTQyMDNmYjZkOTU=
13
+ YmY3MjhjMjkxOGQ5NmQ1Mzg0MTUzYmYzZGU0MTM0ZTg1ZTM0NmE1NTgyOTBm
14
+ NTZiOTFhZTdkODBhZWNhY2QzMTE1NTM5NTc3YmY4Yjc0NDFhZTNkMzA4YmNj
15
+ OGExOTcyNDBmNWNkMTBjNDBiYzk2Zjc3YWQ5NGU3MmZhNTRiMzc=
@@ -1 +1,2 @@
1
+ require "codeclimate_circle_ci_coverage/patch_simplecov"
1
2
  require "codeclimate_circle_ci_coverage/coverage_reporter"
@@ -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.5
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