simplecov-rcov-setup 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/simplecov-rcov-setup.rb +5 -4
- data/lib/simplecov-rcov-setup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc68f046fc3d2d3b3032d15896a90811442d5d5c
|
4
|
+
data.tar.gz: ca77657d202e9c571efe4f4ca0288caa194ce488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc102676b3e923a603aab8a732586f5231a5cfbf3119afdacd0c34328702aff012f15e5638283765966321b7e081cb04dcc2d7ebd12b02a654cf14108906c1b
|
7
|
+
data.tar.gz: 06c6c779e7b9a6810bc370c6877ecd677f71078500f452cd676a39591cb03daedffbbd9b6b7ea3f866492f62fed370dbaa39f170fecce757f8ec05b03a7ec781
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ environment variable then use the `#conditionally` method instead:
|
|
37
37
|
|
38
38
|
```ruby
|
39
39
|
require 'simplecov-rcov-setup'
|
40
|
-
SimpleCov::Formatter::RcovFormatter::Setup.
|
40
|
+
SimpleCov::Formatter::RcovFormatter::Setup.conditionally
|
41
41
|
```
|
42
42
|
|
43
43
|
You can also configure it before starting:
|
data/lib/simplecov-rcov-setup.rb
CHANGED
@@ -11,15 +11,16 @@ class SimpleCov::Formatter::RcovFormatter
|
|
11
11
|
class << self
|
12
12
|
attr_writer :formatters, :filtered, :profile
|
13
13
|
|
14
|
-
def unconditionally
|
14
|
+
def unconditionally(&block)
|
15
15
|
SimpleCov.formatters = @formatters
|
16
16
|
SimpleCov.start(@profile) do
|
17
|
-
@filtered.each { |filter| add_filter("
|
17
|
+
@filtered.each { |filter| add_filter("/#{filter}") }
|
18
|
+
block.call if block
|
18
19
|
end
|
19
20
|
end
|
20
21
|
|
21
|
-
def conditionally
|
22
|
-
unconditionally if ENV['COVERAGE'] == 'on'
|
22
|
+
def conditionally(&block)
|
23
|
+
unconditionally(&block) if ENV['COVERAGE'] == 'on'
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov-rcov-setup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KARASZI István
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov-rcov
|