simplecov-rcov-setup 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +0 -1
- data/.rubocop.yml +54 -0
- data/.travis.yml +10 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +49 -0
- data/README.md +12 -1
- data/lib/simplecov-rcov-setup.rb +22 -15
- data/lib/simplecov-rcov-setup/version.rb +3 -1
- data/simplecov-rcov-setup.gemspec +6 -4
- metadata +23 -8
- data/Rakefile +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 67725d25182e7e129db53b3ffc0a168c2be678f48a4eae7818adaf78569e0ea8
|
4
|
+
data.tar.gz: '0521686866f2c2042dbc6670d5429c4c77e8a64f9c6c290560391ee3845a9f5a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4911e8ccd202ad535da61384bad8d363aeab74d89dd0f83258e6cd9ff60eb2f922f89727221ca799f1f8d9f430b7731e2f7ee03ea1d4ac5e79b8550b38523f69
|
7
|
+
data.tar.gz: 669c2cbaa2bb54c0ce01166be77fe61459580df985d88bc1e9621edf6270f1d96380e07db2e6151dccf3cff3f08831e5267d9a2a8d6eb484f29b115cf786fccc
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: ~
|
3
|
+
|
4
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
5
|
+
Enabled: true
|
6
|
+
Layout/SpaceAroundMethodCallOperator:
|
7
|
+
Enabled: true
|
8
|
+
Lint/DeprecatedOpenSSLConstant:
|
9
|
+
Enabled: true
|
10
|
+
Lint/DuplicateElsifCondition:
|
11
|
+
Enabled: true
|
12
|
+
Lint/MixedRegexpCaptureTypes:
|
13
|
+
Enabled: true
|
14
|
+
Lint/RaiseException:
|
15
|
+
Enabled: true
|
16
|
+
Lint/StructNewOverride:
|
17
|
+
Enabled: true
|
18
|
+
Naming/FileName:
|
19
|
+
Exclude:
|
20
|
+
- 'lib/simplecov-rcov-setup.rb'
|
21
|
+
Style/AccessorGrouping:
|
22
|
+
Enabled: true
|
23
|
+
Style/ArrayCoercion:
|
24
|
+
Enabled: true
|
25
|
+
Style/BisectedAttrAccessor:
|
26
|
+
Enabled: true
|
27
|
+
Style/CaseLikeIf:
|
28
|
+
Enabled: true
|
29
|
+
Style/Documentation:
|
30
|
+
Enabled: false
|
31
|
+
Style/ExponentialNotation:
|
32
|
+
Enabled: true
|
33
|
+
Style/HashAsLastArrayItem:
|
34
|
+
Enabled: true
|
35
|
+
Style/HashEachMethods:
|
36
|
+
Enabled: true
|
37
|
+
Style/HashLikeCase:
|
38
|
+
Enabled: true
|
39
|
+
Style/HashTransformKeys:
|
40
|
+
Enabled: true
|
41
|
+
Style/HashTransformValues:
|
42
|
+
Enabled: true
|
43
|
+
Style/RedundantAssignment:
|
44
|
+
Enabled: true
|
45
|
+
Style/RedundantFetchBlock:
|
46
|
+
Enabled: true
|
47
|
+
Style/RedundantFileExtensionInRequire:
|
48
|
+
Enabled: true
|
49
|
+
Style/RedundantRegexpCharacterClass:
|
50
|
+
Enabled: true
|
51
|
+
Style/RedundantRegexpEscape:
|
52
|
+
Enabled: true
|
53
|
+
Style/SlicingWithRange:
|
54
|
+
Enabled: true
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
simplecov-rcov-setup (0.0.7)
|
5
|
+
simplecov-rcov (~> 0.2.3)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.1)
|
11
|
+
docile (1.3.2)
|
12
|
+
gem-release (2.1.1)
|
13
|
+
parallel (1.19.2)
|
14
|
+
parser (2.7.1.4)
|
15
|
+
ast (~> 2.4.1)
|
16
|
+
rainbow (3.0.0)
|
17
|
+
regexp_parser (1.7.1)
|
18
|
+
rexml (3.2.4)
|
19
|
+
rubocop (0.88.0)
|
20
|
+
parallel (~> 1.10)
|
21
|
+
parser (>= 2.7.1.1)
|
22
|
+
rainbow (>= 2.2.2, < 4.0)
|
23
|
+
regexp_parser (>= 1.7)
|
24
|
+
rexml
|
25
|
+
rubocop-ast (>= 0.1.0, < 1.0)
|
26
|
+
ruby-progressbar (~> 1.7)
|
27
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
28
|
+
rubocop-ast (0.1.0)
|
29
|
+
parser (>= 2.7.0.1)
|
30
|
+
ruby-progressbar (1.10.1)
|
31
|
+
simplecov (0.18.5)
|
32
|
+
docile (~> 1.1)
|
33
|
+
simplecov-html (~> 0.11)
|
34
|
+
simplecov-html (0.12.2)
|
35
|
+
simplecov-rcov (0.2.3)
|
36
|
+
simplecov (>= 0.4.1)
|
37
|
+
unicode-display_width (1.7.0)
|
38
|
+
|
39
|
+
PLATFORMS
|
40
|
+
ruby
|
41
|
+
|
42
|
+
DEPENDENCIES
|
43
|
+
bundler (~> 1.7)
|
44
|
+
gem-release (~> 2.1)
|
45
|
+
rubocop (~> 0.88.0)
|
46
|
+
simplecov-rcov-setup!
|
47
|
+
|
48
|
+
BUNDLED WITH
|
49
|
+
1.17.2
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Simplecov::Formatter::RcovFormatter::Setup
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/raszi/simplecov-rcov-setup.svg?branch=master)](https://travis-ci.org/raszi/simplecov-rcov-setup)
|
4
|
+
|
3
5
|
Helps you to set up the RcovFormatter easily
|
4
6
|
|
5
7
|
## Installation
|
@@ -37,7 +39,7 @@ environment variable then use the `#conditionally` method instead:
|
|
37
39
|
|
38
40
|
```ruby
|
39
41
|
require 'simplecov-rcov-setup'
|
40
|
-
SimpleCov::Formatter::RcovFormatter::Setup.
|
42
|
+
SimpleCov::Formatter::RcovFormatter::Setup.conditionally
|
41
43
|
```
|
42
44
|
|
43
45
|
You can also configure it before starting:
|
@@ -47,6 +49,15 @@ SimpleCov::Formatter::RcovFormatter::Setup.profile = 'rails'
|
|
47
49
|
SimpleCov::Formatter::RcovFormatter::Setup.formatters = SimpleCov::Formatter::RcovFormatter
|
48
50
|
```
|
49
51
|
|
52
|
+
even more complex setup is possible:
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
SimpleCov::Formatter::RcovFormatter::Setup.profile = 'rails'
|
56
|
+
SimpleCov::Formatter::RcovFormatter::Setup.unconditionally do
|
57
|
+
add_group 'Decorators', 'app/decorators'
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
50
61
|
## Contributing
|
51
62
|
|
52
63
|
1. Fork it ( https://github.com/raszi/simplecov-rcov-setup/fork )
|
data/lib/simplecov-rcov-setup.rb
CHANGED
@@ -1,25 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'simplecov'
|
2
4
|
require 'simplecov-rcov'
|
3
5
|
require 'simplecov-rcov-setup/version'
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
module SimpleCov
|
8
|
+
module Formatter
|
9
|
+
class RcovFormatter
|
10
|
+
class Setup
|
11
|
+
@formatters = [SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::RcovFormatter]
|
12
|
+
@profile = nil
|
13
|
+
@filtered = %w[.bundle bundle vendor/bundler spec]
|
10
14
|
|
11
|
-
|
12
|
-
|
15
|
+
class << self
|
16
|
+
attr_writer :formatters, :filtered, :profile
|
13
17
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
def unconditionally(&block)
|
19
|
+
SimpleCov.formatters = @formatters
|
20
|
+
SimpleCov.start(@profile) do
|
21
|
+
@filtered.each { |filter| add_filter("/#{filter}") }
|
22
|
+
instance_eval(&block) if block
|
23
|
+
end
|
24
|
+
end
|
20
25
|
|
21
|
-
|
22
|
-
|
26
|
+
def conditionally(&block)
|
27
|
+
unconditionally(&block) if ENV['COVERAGE'] == 'on'
|
28
|
+
end
|
29
|
+
end
|
23
30
|
end
|
24
31
|
end
|
25
32
|
end
|
@@ -1,5 +1,6 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'simplecov-rcov-setup/version'
|
5
6
|
|
@@ -16,10 +17,11 @@ Gem::Specification.new do |spec|
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0")
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
20
|
+
spec.require_paths = ['lib']
|
20
21
|
|
21
22
|
spec.add_dependency 'simplecov-rcov', '~> 0.2.3'
|
22
23
|
|
23
24
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
24
|
-
spec.add_development_dependency '
|
25
|
+
spec.add_development_dependency 'gem-release', '~> 2.1'
|
26
|
+
spec.add_development_dependency 'rubocop', '~> 0.88.0'
|
25
27
|
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.7
|
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:
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov-rcov
|
@@ -39,19 +39,33 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.7'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: gem-release
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.88.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.88.0
|
55
69
|
description: Helps to setup SimpleCov Rcov formatter
|
56
70
|
email:
|
57
71
|
- github@spam.raszi.hu
|
@@ -60,10 +74,12 @@ extensions: []
|
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
62
76
|
- ".gitignore"
|
77
|
+
- ".rubocop.yml"
|
78
|
+
- ".travis.yml"
|
63
79
|
- Gemfile
|
80
|
+
- Gemfile.lock
|
64
81
|
- LICENSE.txt
|
65
82
|
- README.md
|
66
|
-
- Rakefile
|
67
83
|
- lib/simplecov-rcov-setup.rb
|
68
84
|
- lib/simplecov-rcov-setup/version.rb
|
69
85
|
- simplecov-rcov-setup.gemspec
|
@@ -86,8 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
102
|
- !ruby/object:Gem::Version
|
87
103
|
version: '0'
|
88
104
|
requirements: []
|
89
|
-
|
90
|
-
rubygems_version: 2.4.4
|
105
|
+
rubygems_version: 3.0.3
|
91
106
|
signing_key:
|
92
107
|
specification_version: 4
|
93
108
|
summary: SimpleCov Rcov Formatter setup
|
data/Rakefile
DELETED