easycov 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cce5b2af073f8de42195286d4756ab41248ba857
4
- data.tar.gz: 9c68efa14d27cc08dfeaed9633bc87e50f99062e
3
+ metadata.gz: ea3f0b5360ba2fc80c76b9fa9ab38951a345a67f
4
+ data.tar.gz: 101756a24e72f1f36fba94fbca4a473668b9b111
5
5
  SHA512:
6
- metadata.gz: 04d75867bd9d49b05cb39c1128ab77d5fbd9d4d2d43f5f5ceb4872a6dda2a83cb4ad4ec52026da41f31b795cc5b8074baf66a4d28cf969be33928e178b1d85e4
7
- data.tar.gz: be37d6d4373bbc62f513eab5f7872027215c93f434d71701c7df62fa3361fd4fd68a031403ae3ad82a580ee271914d083d1b22cb3c867d10305b09f8b8b121e7
6
+ metadata.gz: a872412f2288f2fa70bfae762820134cd26174499b1edf2aa4fb7b74ef47412842f02aaeb0f17691ddbc7ab6f9b355ce16d4ddb74ba4c551a6fcfcd175d8ae65
7
+ data.tar.gz: e9598689e7e66fd25ccaadf8c9939cafa0adece50c088b68dfb216c085d23c3f32d7ba8aaa32f5e56e47d983c1257e7751d169ada27541f33ef498c87fb4d803
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
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.0 ruby lib
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.0"
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-04"
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2013-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov