single_cov 0.5.9 → 0.6.0

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: e96c8916da3f3dedb48a6252c5c274c8dad823b5
4
- data.tar.gz: fdd3bdb4da5689f89fe79e62a7699dbe90d346d3
3
+ metadata.gz: 5c154e6f0ef3f070a3d568e085cdbfb53fbc53ae
4
+ data.tar.gz: 7dfa22d8ed91e04376c0619d2c0590ce41a6d2e5
5
5
  SHA512:
6
- metadata.gz: 6c8c2c0d6a5feddc486ac116a2446b3195c38bed9ab84ea4e9b29ed44c78af7670c302ee0e3babbe1313ad9ac5c5b7b5014972ad4031a91b77964d0608b67c43
7
- data.tar.gz: c89067f1741844afad876a2ffe3c8d534ee33af08fb059cf6a0558162e534bea9582737aed43c9c6ab0c2f87e43c9dfa2b69da58d12d86c729c930dad15f0aa7
6
+ metadata.gz: c0dd5f7bdcfb17f873f83595ef3498a8ed82d1def442539a67dec64730f557efc3e6e06f0929a3722964bd948bafbf8d3a536975377934578ac04b0320a25558
7
+ data.tar.gz: 866856ab4b86d5b3dac964500873410d05275cc46960952a7a42f14f7d8f0823111c96a95fd0fb36f5bd9b5897e8ab5d62f205706396ee2dfe6c47c83cde7d07
@@ -1,3 +1,3 @@
1
1
  module SingleCov
2
- VERSION = "0.5.9"
2
+ VERSION = "0.6.0"
3
3
  end
data/lib/single_cov.rb CHANGED
@@ -78,10 +78,15 @@ module SingleCov
78
78
  start_coverage_recording
79
79
 
80
80
  override_at_exit do |status, _exception|
81
- exit 1 if status == 0 && !SingleCov.all_covered?(coverage_results)
81
+ exit 1 if !@disabled && status == 0 && !SingleCov.all_covered?(coverage_results)
82
82
  end
83
83
  end
84
84
 
85
+ # use this in forks when using rspec to silence duplicated output
86
+ def disable
87
+ @disabled = true
88
+ end
89
+
85
90
  private
86
91
 
87
92
  def default_tests
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.5.9
4
+ version: 0.6.0
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-12-21 00:00:00.000000000 Z
11
+ date: 2017-02-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: michael@grosser.it