rcov_rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tasks/coverage.rake +10 -1
- metadata +10 -13
data/lib/tasks/coverage.rake
CHANGED
@@ -42,7 +42,16 @@ begin
|
|
42
42
|
|
43
43
|
task_dependencies = []
|
44
44
|
|
45
|
-
|
45
|
+
# in Rails 2, ActiveRecord is not loaded at this point
|
46
|
+
# but also, rake db:test:prepare is globally defined, and deals with ActiveRecord's status itself
|
47
|
+
# so its safe to add it as a dependency even if ActiveRecord is not defined.
|
48
|
+
#
|
49
|
+
# in Rails 3, I believe we can't include the db:test:prepare if ActiveRecord is not in the stack
|
50
|
+
# (the db:test:prepare task is only defined in the rake tasks which live inside activerecord, and are loaded by its railtie)
|
51
|
+
|
52
|
+
in_rails2 = defined?(Rails) && Rails::VERSION::MAJOR == 2
|
53
|
+
|
54
|
+
if in_rails2 || defined?(ActiveRecord)
|
46
55
|
task_dependencies << "db:test:prepare"
|
47
56
|
end
|
48
57
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcov_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthew Rudy Jacobs
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2011-06-01 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rcov
|
@@ -38,8 +37,8 @@ executables: []
|
|
38
37
|
|
39
38
|
extensions: []
|
40
39
|
|
41
|
-
extra_rdoc_files:
|
42
|
-
|
40
|
+
extra_rdoc_files: []
|
41
|
+
|
43
42
|
files:
|
44
43
|
- MIT-LICENSE
|
45
44
|
- README
|
@@ -47,14 +46,12 @@ files:
|
|
47
46
|
- lib/rcov_rails/rcovtask.rb
|
48
47
|
- lib/rcov_rails.rb
|
49
48
|
- lib/tasks/coverage.rake
|
50
|
-
has_rdoc: true
|
51
49
|
homepage: http://github.com/matthewrudy/rcov_rails
|
52
50
|
licenses: []
|
53
51
|
|
54
52
|
post_install_message:
|
55
|
-
rdoc_options:
|
56
|
-
|
57
|
-
- README
|
53
|
+
rdoc_options: []
|
54
|
+
|
58
55
|
require_paths:
|
59
56
|
- lib
|
60
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -78,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
75
|
requirements: []
|
79
76
|
|
80
77
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.
|
78
|
+
rubygems_version: 1.7.2
|
82
79
|
signing_key:
|
83
80
|
specification_version: 3
|
84
81
|
summary: Ruby, Rails, Rcov put together into a single neat Rake task
|