easycov 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +8 -0
- data/VERSION +1 -1
- data/easycov.gemspec +11 -4
- data/lib/easycov/rake.rb +24 -0
- metadata +31 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cce5b2af073f8de42195286d4756ab41248ba857
|
4
|
+
data.tar.gz: 9c68efa14d27cc08dfeaed9633bc87e50f99062e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04d75867bd9d49b05cb39c1128ab77d5fbd9d4d2d43f5f5ceb4872a6dda2a83cb4ad4ec52026da41f31b795cc5b8074baf66a4d28cf969be33928e178b1d85e4
|
7
|
+
data.tar.gz: be37d6d4373bbc62f513eab5f7872027215c93f434d71701c7df62fa3361fd4fd68a031403ae3ad82a580ee271914d083d1b22cb3c867d10305b09f8b8b121e7
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -18,6 +18,7 @@ GEM
|
|
18
18
|
specs:
|
19
19
|
addressable (2.3.5)
|
20
20
|
builder (3.2.2)
|
21
|
+
colorize (0.6.0)
|
21
22
|
faraday (0.8.8)
|
22
23
|
multipart-post (~> 1.2.0)
|
23
24
|
git (1.2.6)
|
@@ -30,6 +31,7 @@ GEM
|
|
30
31
|
oauth2
|
31
32
|
hashie (2.0.5)
|
32
33
|
highline (1.6.19)
|
34
|
+
hirb (0.7.1)
|
33
35
|
httpauth (0.2.0)
|
34
36
|
json (1.8.0)
|
35
37
|
jwt (0.1.8)
|
@@ -53,6 +55,10 @@ GEM
|
|
53
55
|
simplecov (0.7.1)
|
54
56
|
multi_json (~> 1.0)
|
55
57
|
simplecov-html (~> 0.7.1)
|
58
|
+
simplecov-console (0.1.2)
|
59
|
+
colorize
|
60
|
+
hirb
|
61
|
+
simplecov
|
56
62
|
simplecov-html (0.7.1)
|
57
63
|
yard (0.8.7.1)
|
58
64
|
|
@@ -65,4 +71,6 @@ DEPENDENCIES
|
|
65
71
|
minitest (~> 4.0)
|
66
72
|
multi_json
|
67
73
|
simplecov
|
74
|
+
simplecov-console
|
75
|
+
simplecov-html
|
68
76
|
yard (~> 0.8)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/easycov.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
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: easycov 0.
|
5
|
+
# stub: easycov 0.3.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "easycov"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.0"
|
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"]
|
13
|
-
s.date = "2013-10-
|
13
|
+
s.date = "2013-10-04"
|
14
14
|
s.description = "An easy to use, simplecov-compatibile code coverage library for Ruby"
|
15
15
|
s.email = "chetan@pixelcop.net"
|
16
16
|
s.files = [
|
@@ -20,7 +20,8 @@ Gem::Specification.new do |s|
|
|
20
20
|
"VERSION",
|
21
21
|
"easycov.gemspec",
|
22
22
|
"lib/easycov.rb",
|
23
|
-
"lib/easycov/filters.rb"
|
23
|
+
"lib/easycov/filters.rb",
|
24
|
+
"lib/easycov/rake.rb"
|
24
25
|
]
|
25
26
|
s.homepage = "http://github.com/chetan/easycov"
|
26
27
|
s.licenses = ["MIT"]
|
@@ -33,6 +34,8 @@ Gem::Specification.new do |s|
|
|
33
34
|
|
34
35
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
35
36
|
s.add_runtime_dependency(%q<simplecov>, [">= 0"])
|
37
|
+
s.add_runtime_dependency(%q<simplecov-html>, [">= 0"])
|
38
|
+
s.add_runtime_dependency(%q<simplecov-console>, [">= 0"])
|
36
39
|
s.add_runtime_dependency(%q<multi_json>, [">= 0"])
|
37
40
|
s.add_development_dependency(%q<yard>, ["~> 0.8"])
|
38
41
|
s.add_development_dependency(%q<bundler>, ["~> 1.1"])
|
@@ -40,6 +43,8 @@ Gem::Specification.new do |s|
|
|
40
43
|
s.add_development_dependency(%q<minitest>, ["~> 4.0"])
|
41
44
|
else
|
42
45
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
46
|
+
s.add_dependency(%q<simplecov-html>, [">= 0"])
|
47
|
+
s.add_dependency(%q<simplecov-console>, [">= 0"])
|
43
48
|
s.add_dependency(%q<multi_json>, [">= 0"])
|
44
49
|
s.add_dependency(%q<yard>, ["~> 0.8"])
|
45
50
|
s.add_dependency(%q<bundler>, ["~> 1.1"])
|
@@ -48,6 +53,8 @@ Gem::Specification.new do |s|
|
|
48
53
|
end
|
49
54
|
else
|
50
55
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
56
|
+
s.add_dependency(%q<simplecov-html>, [">= 0"])
|
57
|
+
s.add_dependency(%q<simplecov-console>, [">= 0"])
|
51
58
|
s.add_dependency(%q<multi_json>, [">= 0"])
|
52
59
|
s.add_dependency(%q<yard>, ["~> 0.8"])
|
53
60
|
s.add_dependency(%q<bundler>, ["~> 1.1"])
|
data/lib/easycov/rake.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
|
2
|
+
require "easycov"
|
3
|
+
require "simplecov-console"
|
4
|
+
|
5
|
+
desc "Display code coverage report"
|
6
|
+
task :coverage do
|
7
|
+
%w{.coverage coverage}.each { |c|
|
8
|
+
cov_dir = File.join(Dir.pwd, c)
|
9
|
+
if File.directory?(cov_dir) then
|
10
|
+
EasyCov.path = cov_dir
|
11
|
+
end
|
12
|
+
}
|
13
|
+
SimpleCov.merge_timeout(86400) # make sure we load all available data
|
14
|
+
SimpleCov::Formatter::Console.new.format(SimpleCov.result)
|
15
|
+
|
16
|
+
# run html formatter
|
17
|
+
puts
|
18
|
+
SimpleCov::ResultMerger.merged_result.format!
|
19
|
+
|
20
|
+
puts
|
21
|
+
puts "URL: file://#{SimpleCov.coverage_path}/index.html"
|
22
|
+
puts
|
23
|
+
|
24
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easycov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chetan Sarva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|
@@ -24,6 +24,34 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: simplecov-html
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: simplecov-console
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: multi_json
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,6 +135,7 @@ files:
|
|
107
135
|
- easycov.gemspec
|
108
136
|
- lib/easycov.rb
|
109
137
|
- lib/easycov/filters.rb
|
138
|
+
- lib/easycov/rake.rb
|
110
139
|
homepage: http://github.com/chetan/easycov
|
111
140
|
licenses:
|
112
141
|
- MIT
|