easycov 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/easycov.gemspec +3 -3
- data/lib/easycov/rake.rb +0 -6
- data/lib/easycov.rb +15 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea3f0b5360ba2fc80c76b9fa9ab38951a345a67f
|
4
|
+
data.tar.gz: 101756a24e72f1f36fba94fbca4a473668b9b111
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a872412f2288f2fa70bfae762820134cd26174499b1edf2aa4fb7b74ef47412842f02aaeb0f17691ddbc7ab6f9b355ce16d4ddb74ba4c551a6fcfcd175d8ae65
|
7
|
+
data.tar.gz: e9598689e7e66fd25ccaadf8c9939cafa0adece50c088b68dfb216c085d23c3f32d7ba8aaa32f5e56e47d983c1257e7751d169ada27541f33ef498c87fb4d803
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
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.3.
|
5
|
+
# stub: easycov 0.3.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "easycov"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.1"
|
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-07"
|
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 = [
|
data/lib/easycov/rake.rb
CHANGED
@@ -4,12 +4,6 @@ require "simplecov-console"
|
|
4
4
|
|
5
5
|
desc "Display code coverage report"
|
6
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
7
|
SimpleCov.merge_timeout(86400) # make sure we load all available data
|
14
8
|
SimpleCov::Formatter::Console.new.format(SimpleCov.result)
|
15
9
|
|
data/lib/easycov.rb
CHANGED
@@ -67,6 +67,19 @@ module EasyCov
|
|
67
67
|
@path = File.expand_path(path)
|
68
68
|
end
|
69
69
|
|
70
|
+
# Detect the coverage path
|
71
|
+
#
|
72
|
+
# Uses the first of Dir.pwd/.coverage or Dir.pwd/coverage
|
73
|
+
def detect_path!
|
74
|
+
%w{.coverage coverage}.each { |c|
|
75
|
+
cov_dir = File.join(Dir.pwd, c)
|
76
|
+
if File.directory?(cov_dir) then
|
77
|
+
EasyCov.path = cov_dir
|
78
|
+
return
|
79
|
+
end
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
70
83
|
def install_exit_hook
|
71
84
|
return if ENV["DISABLE_EASYCOV"] == "1"
|
72
85
|
Kernel.at_exit do
|
@@ -192,3 +205,5 @@ module SimpleCov
|
|
192
205
|
end
|
193
206
|
end
|
194
207
|
end
|
208
|
+
|
209
|
+
EasyCov.detect_path!
|
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.3.
|
4
|
+
version: 0.3.1
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|