simplecov-summary 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  ![](http://f.cl.ly/items/102M0n1q3P3E3h3Y3z3m/Снимок%20экрана%202012-12-29%20в%204.29.15.png)
6
6
 
7
+ [![endorse](http://api.coderwall.com/inossidabile/endorsecount.png)](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
- ## Contributing
57
+ ## License
58
+
59
+ It is free software, and may be redistributed under the terms of MIT license.
60
+
61
+
62
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/inossidabile/simplecov-summary/trend.png)](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
@@ -0,0 +1,11 @@
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
@@ -1,10 +1,9 @@
1
1
  require 'simplecov-summary/version'
2
2
  require 'simplecov'
3
- require 'colored'
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}%".send(color)
23
+ puts " #{name.rjust(name_length)}: #{percentage}%".colorize(color)
25
24
  end
26
25
 
27
- print " #{'Total'.rjust(name_length)}: #{result.covered_percent.round(2)}%"
26
+ puts " #{'Total'.rjust(name_length)}: #{result.covered_percent.round(2)}%"
28
27
  end
29
- end
28
+ end
@@ -1,5 +1,5 @@
1
1
  module Simplecov
2
2
  module Summary
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -18,5 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_dependency 'simplecov'
21
- gem.add_dependency 'colored'
21
+ gem.add_dependency 'colorize'
22
22
  end
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.4
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: 2013-02-20 00:00:00.000000000 Z
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: colored
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: 1.8.23
77
+ rubygems_version: 2.5.1
83
78
  signing_key:
84
- specification_version: 3
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: