simplecov-console 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/lib/simplecov-console.rb +13 -4
- data/simplecov-console.gemspec +5 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661e5e9e3a45659eeb0beec94dec0d085b7a09d5
|
4
|
+
data.tar.gz: 31d34cd1d397e3834c7a574fd5b83102345a9c31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13652f2b15e7bf8876e2351c132409e11127abd5561e49df314d26ce36ca0bda45815428d52a6919127834fab060d9da321c121be3dbe80a046aa99a31a5ae74
|
7
|
+
data.tar.gz: 8eeaddb17962edfb7ff5a47593a14faf304b00fe52025925897f171faa4d4ca5367c2b287eeb2f7160b3ba42d325f2f4896ff33c6b82f9062fc07fd6ccb3055a
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/simplecov-console.rb
CHANGED
@@ -20,7 +20,7 @@ class SimpleCov::Formatter::Console
|
|
20
20
|
end
|
21
21
|
|
22
22
|
puts
|
23
|
-
puts "COVERAGE: #{colorize(pct(result))} -- #{result.covered_lines}/#{result.total_lines} lines"
|
23
|
+
puts "COVERAGE: #{colorize(pct(result))} -- #{result.covered_lines}/#{result.total_lines} lines in #{result.files.size} files"
|
24
24
|
puts
|
25
25
|
|
26
26
|
if root.nil? then
|
@@ -29,7 +29,15 @@ class SimpleCov::Formatter::Console
|
|
29
29
|
|
30
30
|
files = result.files.sort{ |a,b| a.covered_percent <=> b.covered_percent }
|
31
31
|
|
32
|
-
|
32
|
+
covered_files = 0
|
33
|
+
files.select!{ |file|
|
34
|
+
if file.covered_percent == 100 then
|
35
|
+
covered_files += 1
|
36
|
+
false
|
37
|
+
else
|
38
|
+
true
|
39
|
+
end
|
40
|
+
}
|
33
41
|
|
34
42
|
if files.nil? or files.empty? then
|
35
43
|
return
|
@@ -46,8 +54,9 @@ class SimpleCov::Formatter::Console
|
|
46
54
|
s.pop
|
47
55
|
puts s.join("\n").gsub(/\d+\.\d+%/) { |m| colorize(m) }
|
48
56
|
|
49
|
-
|
50
|
-
|
57
|
+
if covered_files > 0 then
|
58
|
+
puts "#{covered_files} file(s) with 100% coverage not shown"
|
59
|
+
end
|
51
60
|
|
52
61
|
end
|
53
62
|
|
data/simplecov-console.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: simplecov-console 0.1.
|
5
|
+
# stub: simplecov-console 0.1.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "simplecov-console"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Chetan Sarva"]
|
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.add_development_dependency(%q<minitest>, [">= 0"])
|
46
46
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
47
47
|
s.add_development_dependency(%q<bundler>, ["~> 1.2"])
|
48
|
-
s.add_development_dependency(%q<jeweler>, ["
|
48
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
49
49
|
else
|
50
50
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
51
51
|
s.add_dependency(%q<hirb>, [">= 0"])
|
@@ -53,7 +53,7 @@ Gem::Specification.new do |s|
|
|
53
53
|
s.add_dependency(%q<minitest>, [">= 0"])
|
54
54
|
s.add_dependency(%q<yard>, [">= 0"])
|
55
55
|
s.add_dependency(%q<bundler>, ["~> 1.2"])
|
56
|
-
s.add_dependency(%q<jeweler>, ["
|
56
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
57
57
|
end
|
58
58
|
else
|
59
59
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
|
|
62
62
|
s.add_dependency(%q<minitest>, [">= 0"])
|
63
63
|
s.add_dependency(%q<yard>, [">= 0"])
|
64
64
|
s.add_dependency(%q<bundler>, ["~> 1.2"])
|
65
|
-
s.add_dependency(%q<jeweler>, ["
|
65
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov-console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chetan Sarva
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: jeweler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '0'
|
111
111
|
description: Simple console output formatter for SimpleCov
|
112
112
|
email: chetan@pixelcop.net
|
113
113
|
executables: []
|