simplecov-rcov-setup 0.0.3 → 0.0.4

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: fc68f046fc3d2d3b3032d15896a90811442d5d5c
4
- data.tar.gz: ca77657d202e9c571efe4f4ca0288caa194ce488
3
+ metadata.gz: def20f8ec5108d4f82a1b1312bdab2c3adbeaa73
4
+ data.tar.gz: d0d92982f754c15197d350564ec584f210614ab4
5
5
  SHA512:
6
- metadata.gz: ddc102676b3e923a603aab8a732586f5231a5cfbf3119afdacd0c34328702aff012f15e5638283765966321b7e081cb04dcc2d7ebd12b02a654cf14108906c1b
7
- data.tar.gz: 06c6c779e7b9a6810bc370c6877ecd677f71078500f452cd676a39591cb03daedffbbd9b6b7ea3f866492f62fed370dbaa39f170fecce757f8ec05b03a7ec781
6
+ metadata.gz: d710c4dfdfc3bbad02a0bf019e1bbd6ad86af75d45d94018d4426c56a93c26675ed4c8b9ac29f08b37291b180ef69201e54b03970ed5bdb23cfe7373d64e02eb
7
+ data.tar.gz: 41de5f2165ed3a55346e110c52db1a96069bcdfc627548aaa270c78ee7664f5b18e4bd06e86b1d6ed3e5a080a886146a836e069bb66f906625998692fd9e73c9
data/README.md CHANGED
@@ -47,6 +47,15 @@ SimpleCov::Formatter::RcovFormatter::Setup.profile = 'rails'
47
47
  SimpleCov::Formatter::RcovFormatter::Setup.formatters = SimpleCov::Formatter::RcovFormatter
48
48
  ```
49
49
 
50
+ even more complex setup is possible:
51
+
52
+ ```ruby
53
+ SimpleCov::Formatter::RcovFormatter::Setup.profile = 'rails'
54
+ SimpleCov::Formatter::RcovFormatter::Setup.unconditionally do
55
+ add_group 'Decorators', 'app/decorators'
56
+ end
57
+ ```
58
+
50
59
  ## Contributing
51
60
 
52
61
  1. Fork it ( https://github.com/raszi/simplecov-rcov-setup/fork )
@@ -15,7 +15,7 @@ class SimpleCov::Formatter::RcovFormatter
15
15
  SimpleCov.formatters = @formatters
16
16
  SimpleCov.start(@profile) do
17
17
  @filtered.each { |filter| add_filter("/#{filter}") }
18
- block.call if block
18
+ instance_eval(block) if block
19
19
  end
20
20
  end
21
21
 
@@ -2,7 +2,7 @@ module SimpleCov
2
2
  module Formatter
3
3
  class RcovFormatter
4
4
  class Setup
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.4'
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.3
4
+ version: 0.0.4
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-21 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov-rcov
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.4.4
90
+ rubygems_version: 2.4.3
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: SimpleCov Rcov Formatter setup