simplecov-summary 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +9 -9
- data/lib/minitest/simplecov_summary_plugin.rb +11 -0
- data/lib/simplecov-summary.rb +4 -5
- data/lib/simplecov-summary/version.rb +1 -1
- data/simplecov-summary.gemspec +1 -1
- metadata +14 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c46aeab324d94d0586af2006dc21019e14d12e94
|
4
|
+
data.tar.gz: f48e65d71b74477f611377d765f67ba6846acc9b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 725b9a3c4c9f4fbb96571a755e75e16e92247574049ffb480af3d9df3a471b97851983e198062aec15bd83d68a9ab73f11cd2cfbe1a7a7653720a91a4124ec57
|
7
|
+
data.tar.gz: 892cf4eedfa13a88bf9895e828f24a844f22b9380a7b4e61534dd672eb608834d3a50d06460d9a47b17270438c67935f9776f01f8d4f096be511bf3dbc476d5e
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@ SimpleCov formatter that prints nice colored summary for your coverage straight
|
|
4
4
|
|
5
5
|

|
6
6
|
|
7
|
+
[](http://coderwall.com/inossidabile)
|
8
|
+
|
7
9
|
## Installation
|
8
10
|
|
9
11
|
Add this line to your application's Gemfile:
|
@@ -36,11 +38,9 @@ Below you can find the example for a typical Rails RSpec configuration. The foll
|
|
36
38
|
add_group 'Decorators', 'app/decorators'
|
37
39
|
add_group 'Helpers', 'app/helpers'
|
38
40
|
add_group 'Libraries', 'lib'
|
39
|
-
|
40
|
-
at_exit do
|
41
|
-
end
|
42
41
|
end
|
43
42
|
|
43
|
+
# Put this in for RSpec, Minitest will plug in automatically
|
44
44
|
RSpec.configure do |config|
|
45
45
|
config.after(:suite) do
|
46
46
|
if SimpleCov.running
|
@@ -54,10 +54,10 @@ Below you can find the example for a typical Rails RSpec configuration. The foll
|
|
54
54
|
end
|
55
55
|
```
|
56
56
|
|
57
|
-
##
|
57
|
+
## License
|
58
|
+
|
59
|
+
It is free software, and may be redistributed under the terms of MIT license.
|
60
|
+
|
61
|
+
|
62
|
+
[](https://bitdeli.com/free "Bitdeli Badge")
|
58
63
|
|
59
|
-
1. Fork it
|
60
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
61
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
62
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
63
|
-
5. Create new Pull Request
|
data/lib/simplecov-summary.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'simplecov-summary/version'
|
2
2
|
require 'simplecov'
|
3
|
-
require '
|
3
|
+
require 'colorize'
|
4
4
|
|
5
5
|
class SimpleCov::Formatter::SummaryFormatter
|
6
6
|
def format(result)
|
7
|
-
puts "\n\n"
|
8
7
|
puts "SimpleCov stats:"
|
9
8
|
|
10
9
|
name_length = (result.groups.keys + ["Total"]).map{|x| x.length}.max
|
@@ -21,9 +20,9 @@ class SimpleCov::Formatter::SummaryFormatter
|
|
21
20
|
:red
|
22
21
|
end
|
23
22
|
|
24
|
-
puts " #{name.rjust(name_length)}: #{percentage}%".
|
23
|
+
puts " #{name.rjust(name_length)}: #{percentage}%".colorize(color)
|
25
24
|
end
|
26
25
|
|
27
|
-
|
26
|
+
puts " #{'Total'.rjust(name_length)}: #{result.covered_percent.round(2)}%"
|
28
27
|
end
|
29
|
-
end
|
28
|
+
end
|
data/simplecov-summary.gemspec
CHANGED
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov-summary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Boris Staal
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: simplecov
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: colorize
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: SimpleCov formatter that prints nice colored summary for your coverage
|
@@ -51,38 +46,37 @@ executables: []
|
|
51
46
|
extensions: []
|
52
47
|
extra_rdoc_files: []
|
53
48
|
files:
|
54
|
-
- .gitignore
|
49
|
+
- ".gitignore"
|
55
50
|
- Gemfile
|
56
51
|
- LICENSE.txt
|
57
52
|
- README.md
|
58
53
|
- Rakefile
|
54
|
+
- lib/minitest/simplecov_summary_plugin.rb
|
59
55
|
- lib/simplecov-summary.rb
|
60
56
|
- lib/simplecov-summary/version.rb
|
61
57
|
- simplecov-summary.gemspec
|
62
58
|
homepage: https://github.com/inossidabile/simplecov-summary
|
63
59
|
licenses: []
|
60
|
+
metadata: {}
|
64
61
|
post_install_message:
|
65
62
|
rdoc_options: []
|
66
63
|
require_paths:
|
67
64
|
- lib
|
68
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
66
|
requirements:
|
71
|
-
- -
|
67
|
+
- - ">="
|
72
68
|
- !ruby/object:Gem::Version
|
73
69
|
version: '0'
|
74
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
71
|
requirements:
|
77
|
-
- -
|
72
|
+
- - ">="
|
78
73
|
- !ruby/object:Gem::Version
|
79
74
|
version: '0'
|
80
75
|
requirements: []
|
81
76
|
rubyforge_project:
|
82
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.5.1
|
83
78
|
signing_key:
|
84
|
-
specification_version:
|
79
|
+
specification_version: 4
|
85
80
|
summary: SimpleCov formatter that prints nice colored summary for your coverage straight
|
86
81
|
into your console.
|
87
82
|
test_files: []
|
88
|
-
has_rdoc:
|