insurance 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/railscov +4 -4
- data/lib/insurance.rb +2 -2
- data/lib/insurance/analyzer.rb +1 -1
- metadata +44 -40
data/bin/railscov
CHANGED
@@ -25,7 +25,7 @@ EOF
|
|
25
25
|
opts.separator ''
|
26
26
|
opts.on_tail('-h', '--help', 'Show this message') do
|
27
27
|
puts opts
|
28
|
-
exit
|
28
|
+
exit
|
29
29
|
end
|
30
30
|
opts.on_tail('--version', 'Show version') do
|
31
31
|
puts "Insurance #{Insurance::VERSION}, #{Insurance::RELEASE_DATE}"
|
@@ -36,12 +36,12 @@ opts.parse! ARGV
|
|
36
36
|
if options[:apply_to]
|
37
37
|
require 'insurance/generators/rails/loader'
|
38
38
|
InsuranceLoader::Generators::RailsLoader.load! options
|
39
|
-
exit
|
39
|
+
exit
|
40
40
|
end
|
41
41
|
|
42
42
|
unless File.exist?('config/environment.rb')
|
43
43
|
puts 'Please run railscov from your RAILS_ROOT'
|
44
|
-
exit
|
44
|
+
exit
|
45
45
|
end
|
46
46
|
|
47
47
|
|
@@ -82,4 +82,4 @@ module Test
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
Insurance::RailsAnalyzer.run(Dir['test/unit
|
85
|
+
Insurance::RailsAnalyzer.run(Dir['test/unit/**/*.rb'] + Dir['test/functional/**/*.rb'])
|
data/lib/insurance.rb
CHANGED
data/lib/insurance/analyzer.rb
CHANGED
@@ -75,7 +75,7 @@ module Insurance
|
|
75
75
|
require 'config/environment'
|
76
76
|
Insurance.set_trace_func self.method(:line_trace_func).to_proc
|
77
77
|
require 'application'
|
78
|
-
(Dir['app/models
|
78
|
+
(Dir['app/models/**/*.rb'] + Dir['app/controllers/**/*.rb']).each { |f| load f }
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: insurance
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date:
|
6
|
+
version: "0.3"
|
7
|
+
date: 2006-02-19 00:00:00 -08:00
|
8
8
|
summary: Code coverage analysis package.
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: scott@elitists.net
|
12
12
|
homepage: http://lunchboxsoftware.com/insurance
|
13
13
|
rubyforge_project: insurance
|
@@ -18,50 +18,54 @@ bindir: bin
|
|
18
18
|
has_rdoc: false
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
27
28
|
authors:
|
28
|
-
|
29
|
+
- Scott Barron
|
29
30
|
files:
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
31
|
+
- extconf.rb
|
32
|
+
- insurance_tracer.c
|
33
|
+
- bin/railscov
|
34
|
+
- lib/insurance
|
35
|
+
- lib/insurance.rb
|
36
|
+
- lib/insurance/analyzer.rb
|
37
|
+
- lib/insurance/formatter.rb
|
38
|
+
- lib/insurance/generators
|
39
|
+
- lib/insurance/source_file.rb
|
40
|
+
- lib/insurance/templates
|
41
|
+
- lib/insurance/generators/rails
|
42
|
+
- lib/insurance/generators/rails/insurance
|
43
|
+
- lib/insurance/generators/rails/loader.rb
|
44
|
+
- lib/insurance/generators/rails/insurance/insurance_generator.rb
|
45
|
+
- lib/insurance/generators/rails/insurance/templates
|
46
|
+
- lib/insurance/generators/rails/insurance/templates/insurance.rake
|
47
|
+
- lib/insurance/templates/code-page.rhtml
|
48
|
+
- lib/insurance/templates/index.rhtml
|
49
|
+
- test/test_settracefunc.rb
|
49
50
|
test_files: []
|
51
|
+
|
50
52
|
rdoc_options: []
|
53
|
+
|
51
54
|
extra_rdoc_files: []
|
55
|
+
|
52
56
|
executables:
|
53
|
-
|
57
|
+
- railscov
|
54
58
|
extensions:
|
55
|
-
|
59
|
+
- extconf.rb
|
56
60
|
requirements: []
|
61
|
+
|
57
62
|
dependencies:
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
version:
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: syntax
|
65
|
+
version_requirement:
|
66
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.0.0
|
71
|
+
version:
|