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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a14f330ce6f69ca842939d52c63732e62fab6d7e
4
- data.tar.gz: 251d1f265f513997946d096a6593b3c58e1c5993
3
+ metadata.gz: fc68f046fc3d2d3b3032d15896a90811442d5d5c
4
+ data.tar.gz: ca77657d202e9c571efe4f4ca0288caa194ce488
5
5
  SHA512:
6
- metadata.gz: aeb2156ad52dc0b52e95a11f3632c51b5022e6618cec7d643f1a5676219a69ad25a334e4cc99ee21c6308dfe75112287cdd0e28d7eb041c585d91b306a63f585
7
- data.tar.gz: bb6e65e0a967222a36c6e47b6d8efd583dfc786c3bac9c33db0bb68a02f530378f008272fd2a3d9e4a40fea0887a689256f329fd8b8d5199be3d35f18167f096
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.unconditionally
40
+ SimpleCov::Formatter::RcovFormatter::Setup.conditionally
41
41
  ```
42
42
 
43
43
  You can also configure it before starting:
@@ -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("/$#{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
@@ -2,7 +2,7 @@ module SimpleCov
2
2
  module Formatter
3
3
  class RcovFormatter
4
4
  class Setup
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  end
7
7
  end
8
8
  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.2
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-08 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov-rcov