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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c46aeab324d94d0586af2006dc21019e14d12e94
4
- data.tar.gz: f48e65d71b74477f611377d765f67ba6846acc9b
2
+ SHA256:
3
+ metadata.gz: 91617c115da079b32727feff06e3f3b0226f0a9418e4b6c01d8a7e78427b4566
4
+ data.tar.gz: 0bf9d118b24c6bf26daf28a0d71d2369c386f7031875c2b2cb47a155bcc93a2b
5
5
  SHA512:
6
- metadata.gz: 725b9a3c4c9f4fbb96571a755e75e16e92247574049ffb480af3d9df3a471b97851983e198062aec15bd83d68a9ab73f11cd2cfbe1a7a7653720a91a4124ec57
7
- data.tar.gz: 892cf4eedfa13a88bf9895e828f24a844f22b9380a7b4e61534dd672eb608834d3a50d06460d9a47b17270438c67935f9776f01f8d4f096be511bf3dbc476d5e
6
+ metadata.gz: 76bd89b72b429f4ced30f3a1ad90a5c8c83836775f7316ad40b6a626e3f9e3b152c22a27a937a3457ad365d4a0f47d639143458cce02c19f0a0cb0055b9cd600
7
+ data.tar.gz: 57cf7f3c8ef6fb44b4e717dc3d85149e5f0b23965a28b2f7177e5897bf72f63e74bcaf26d46379067b10ca7de3b8ee82ae0cce89dfc667800fc2f9d5808cf64a
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Simplecov
2
2
  module Summary
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  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.5
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: 2016-07-19 00:00:00.000000000 Z
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
- rubyforge_project:
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
@@ -1,11 +0,0 @@
1
- module Minitest
2
- def self.plugin_simplecov_summary_init(options)
3
- require 'simplecov-summary'
4
-
5
- at_exit do
6
- if SimpleCov.running
7
- SimpleCov::Formatter::SummaryFormatter.new.format(SimpleCov.result)
8
- end
9
- end
10
- end
11
- end