simplecov-summary 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/simplecov-summary.rb +7 -3
- data/lib/simplecov-summary/version.rb +1 -1
- metadata +3 -5
- data/lib/minitest/simplecov_summary_plugin.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 91617c115da079b32727feff06e3f3b0226f0a9418e4b6c01d8a7e78427b4566
|
4
|
+
data.tar.gz: 0bf9d118b24c6bf26daf28a0d71d2369c386f7031875c2b2cb47a155bcc93a2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76bd89b72b429f4ced30f3a1ad90a5c8c83836775f7316ad40b6a626e3f9e3b152c22a27a937a3457ad365d4a0f47d639143458cce02c19f0a0cb0055b9cd600
|
7
|
+
data.tar.gz: 57cf7f3c8ef6fb44b4e717dc3d85149e5f0b23965a28b2f7177e5897bf72f63e74bcaf26d46379067b10ca7de3b8ee82ae0cce89dfc667800fc2f9d5808cf64a
|
data/lib/simplecov-summary.rb
CHANGED
@@ -3,8 +3,12 @@ require 'simplecov'
|
|
3
3
|
require 'colorize'
|
4
4
|
|
5
5
|
class SimpleCov::Formatter::SummaryFormatter
|
6
|
+
def initialize(output = nil)
|
7
|
+
@output = output || STDOUT
|
8
|
+
end
|
9
|
+
|
6
10
|
def format(result)
|
7
|
-
puts "SimpleCov stats:"
|
11
|
+
@output.puts "SimpleCov stats:"
|
8
12
|
|
9
13
|
name_length = (result.groups.keys + ["Total"]).map{|x| x.length}.max
|
10
14
|
|
@@ -20,9 +24,9 @@ class SimpleCov::Formatter::SummaryFormatter
|
|
20
24
|
:red
|
21
25
|
end
|
22
26
|
|
23
|
-
puts " #{name.rjust(name_length)}: #{percentage}%".colorize(color)
|
27
|
+
@output.puts " #{name.rjust(name_length)}: #{percentage}%".colorize(color)
|
24
28
|
end
|
25
29
|
|
26
|
-
puts " #{'Total'.rjust(name_length)}: #{result.covered_percent.round(2)}%"
|
30
|
+
@output.puts " #{'Total'.rjust(name_length)}: #{result.covered_percent.round(2)}%"
|
27
31
|
end
|
28
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov-summary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Staal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|
@@ -51,7 +51,6 @@ files:
|
|
51
51
|
- LICENSE.txt
|
52
52
|
- README.md
|
53
53
|
- Rakefile
|
54
|
-
- lib/minitest/simplecov_summary_plugin.rb
|
55
54
|
- lib/simplecov-summary.rb
|
56
55
|
- lib/simplecov-summary/version.rb
|
57
56
|
- simplecov-summary.gemspec
|
@@ -73,8 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
72
|
- !ruby/object:Gem::Version
|
74
73
|
version: '0'
|
75
74
|
requirements: []
|
76
|
-
|
77
|
-
rubygems_version: 2.5.1
|
75
|
+
rubygems_version: 3.0.3
|
78
76
|
signing_key:
|
79
77
|
specification_version: 4
|
80
78
|
summary: SimpleCov formatter that prints nice colored summary for your coverage straight
|