single_cov 0.3.0 → 0.3.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
  SHA1:
3
- metadata.gz: a1eed48907c72cdc169cf0a1102214a19aba7d04
4
- data.tar.gz: a03c0a381e3c943ae9f4d8b0ddeaa6e70323a422
3
+ metadata.gz: e87f2583894d4978df0608eb989093aec5758999
4
+ data.tar.gz: 1a7658ef4d5d5894f34184d5a161eb1e29dee116
5
5
  SHA512:
6
- metadata.gz: 7e0f571ad1defd8f2fa00f5aaf6e152b9e84caf0b89ccec6bd8b9c38b5459387fef00a9945760613b9cac779bfa23dafd66387c74a8454535cdd12209e0528b2
7
- data.tar.gz: 417af607d91795747bcee02325a1ae2f97786197a66cb44bb452958e433d226a4729de71f1f06dd1e15176632562f4b10deb800c0a1b115af1fe1173deadc97e
6
+ metadata.gz: 47b9f404689d38d8fd55d3f72ec1f42d33199b94988d1c4a61fed4cc1627d0d1681bfa67ff3af4291b727f582a8b4bdddb18b4f63137da5dd0758d8d12750a35
7
+ data.tar.gz: 56e6707208c86cf014b76f73248354cc1061b19e6cb488cb209fdc6d292f2a13589387f3796e17e738cf766cb79312240c28cb2601514dc870a8cec1548186f5
@@ -1,3 +1,3 @@
1
1
  module SingleCov
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/lib/single_cov.rb CHANGED
@@ -94,8 +94,8 @@ module SingleCov
94
94
 
95
95
  # do not ask for coverage when SimpleCov already does or it conflicts
96
96
  def coverage_results
97
- if defined?(SimpleCov)
98
- SimpleCov.instance_variable_get(:@result).original_result
97
+ if defined?(SimpleCov) && (result = SimpleCov.instance_variable_get(:@result))
98
+ result.original_result
99
99
  else
100
100
  Coverage.result
101
101
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: single_cov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-29 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: michael@grosser.it