jscruggs-metric_fu 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +8 -0
- data/TODO +0 -4
- data/lib/base/graph.rb +1 -0
- data/lib/base/report.rb +3 -3
- data/lib/generators/rcov.rb +2 -2
- data/lib/generators/saikuro.rb +2 -2
- data/lib/graphs/flay_grapher.rb +3 -2
- data/lib/graphs/flog_grapher.rb +2 -2
- data/lib/graphs/grapher.rb +19 -0
- data/lib/graphs/rcov_grapher.rb +2 -2
- data/lib/graphs/reek_grapher.rb +2 -2
- data/lib/graphs/roodi_grapher.rb +2 -2
- data/lib/metric_fu.rb +7 -2
- data/lib/templates/awesome/css/buttons.css +82 -0
- data/lib/templates/awesome/{default.css → css/default.css} +0 -0
- data/lib/templates/awesome/css/integrity.css +335 -0
- data/lib/templates/awesome/css/reset.css +7 -0
- data/lib/templates/awesome/flog.html.erb +1 -0
- data/lib/templates/awesome/layout.html.erb +4 -4
- data/spec/base/configuration_spec.rb +48 -4
- data/spec/base/graph_spec.rb +24 -0
- data/spec/graphs/flay_grapher_spec.rb +44 -0
- data/spec/graphs/flog_grapher_spec.rb +55 -10
- data/spec/graphs/grapher_spec.rb +9 -0
- data/spec/graphs/rcov_grapher_spec.rb +44 -0
- data/spec/graphs/reek_grapher_spec.rb +53 -0
- data/spec/graphs/roodi_grapher_spec.rb +44 -0
- data/spec/resources/saikuro_sfiles/thing.rb_cyclo.html +1 -0
- data/spec/resources/yml/20090630.yml +7844 -0
- data/spec/spec_helper.rb +1 -23
- metadata +13 -12
data/spec/spec_helper.rb
CHANGED
@@ -1,28 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'spec'
|
2
|
+
require 'spec/autorun'
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
require File.join(File.dirname(__FILE__), '/../lib/metric_fu.rb')
|
6
6
|
include MetricFu
|
7
|
-
|
8
|
-
Mystat = <<-EOF
|
9
|
-
(in /Users/gmcinnes/Documents/projects/NeerBeer/src/Web)
|
10
|
-
+----------------------+-------+-------+---------+---------+-----+-------+
|
11
|
-
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
|
12
|
-
+----------------------+-------+-------+---------+---------+-----+-------+
|
13
|
-
| Controllers | 893 | 405 | 16 | 41 | 2 | 7 |
|
14
|
-
| Helpers | 569 | 352 | 0 | 52 | 0 | 4 |
|
15
|
-
| Models | 1758 | 453 | 26 | 48 | 1 | 7 |
|
16
|
-
| Libraries | 2507 | 1320 | 19 | 175 | 9 | 5 |
|
17
|
-
| Model specs | 2285 | 965 | 0 | 1 | 0 | 963 |
|
18
|
-
| View specs | 821 | 654 | 0 | 2 | 0 | 325 |
|
19
|
-
| Controller specs | 1144 | 871 | 0 | 9 | 0 | 94 |
|
20
|
-
| Helper specs | 652 | 465 | 0 | 1 | 0 | 463 |
|
21
|
-
| Library specs | 1456 | 1141 | 8 | 14 | 1 | 79 |
|
22
|
-
+----------------------+-------+-------+---------+---------+-----+-------+
|
23
|
-
| Total | 12085 | 6626 | 69 | 343 | 4 | 17 |
|
24
|
-
+----------------------+-------+-------+---------+---------+-----+-------+
|
25
|
-
Code LOC: 2530 Test LOC: 4096 Code to Test Ratio: 1:1.6
|
26
|
-
|
27
|
-
EOF
|
28
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jscruggs-metric_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Scruggs
|
@@ -58,16 +58,6 @@ dependencies:
|
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: 0.3.0
|
60
60
|
version:
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: topfunky-gruff
|
63
|
-
type: :runtime
|
64
|
-
version_requirement:
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.3.5
|
70
|
-
version:
|
71
61
|
description: Code metrics from Flog, Flay, RCov, Saikuro, Churn, Reek, Roodi and Rails' stats task
|
72
62
|
email: jake.scruggs@gmail.com
|
73
63
|
executables: []
|
@@ -100,13 +90,17 @@ files:
|
|
100
90
|
- lib/generators/stats.rb
|
101
91
|
- lib/graphs/flay_grapher.rb
|
102
92
|
- lib/graphs/flog_grapher.rb
|
93
|
+
- lib/graphs/grapher.rb
|
103
94
|
- lib/graphs/rcov_grapher.rb
|
104
95
|
- lib/graphs/reek_grapher.rb
|
105
96
|
- lib/graphs/roodi_grapher.rb
|
106
97
|
- lib/metric_fu.rb
|
107
98
|
- lib/templates/awesome/awesome_template.rb
|
108
99
|
- lib/templates/awesome/churn.html.erb
|
109
|
-
- lib/templates/awesome/
|
100
|
+
- lib/templates/awesome/css/buttons.css
|
101
|
+
- lib/templates/awesome/css/default.css
|
102
|
+
- lib/templates/awesome/css/integrity.css
|
103
|
+
- lib/templates/awesome/css/reset.css
|
110
104
|
- lib/templates/awesome/flay.html.erb
|
111
105
|
- lib/templates/awesome/flog.html.erb
|
112
106
|
- lib/templates/awesome/index.html.erb
|
@@ -162,6 +156,7 @@ test_files:
|
|
162
156
|
- spec/base/base_template_spec.rb
|
163
157
|
- spec/base/configuration_spec.rb
|
164
158
|
- spec/base/generator_spec.rb
|
159
|
+
- spec/base/graph_spec.rb
|
165
160
|
- spec/base/md5_tracker_spec.rb
|
166
161
|
- spec/base/report_spec.rb
|
167
162
|
- spec/generators/churn_spec.rb
|
@@ -170,10 +165,16 @@ test_files:
|
|
170
165
|
- spec/generators/reek_spec.rb
|
171
166
|
- spec/generators/saikuro_spec.rb
|
172
167
|
- spec/generators/stats_spec.rb
|
168
|
+
- spec/graphs/flay_grapher_spec.rb
|
173
169
|
- spec/graphs/flog_grapher_spec.rb
|
170
|
+
- spec/graphs/grapher_spec.rb
|
171
|
+
- spec/graphs/rcov_grapher_spec.rb
|
172
|
+
- spec/graphs/reek_grapher_spec.rb
|
173
|
+
- spec/graphs/roodi_grapher_spec.rb
|
174
174
|
- spec/resources/saikuro/app/controllers/sessions_controller.rb_cyclo.html
|
175
175
|
- spec/resources/saikuro/app/controllers/users_controller.rb_cyclo.html
|
176
176
|
- spec/resources/saikuro/index_cyclo.html
|
177
177
|
- spec/resources/saikuro_sfiles/thing.rb_cyclo.html
|
178
|
+
- spec/resources/yml/20090630.yml
|
178
179
|
- spec/spec.opts
|
179
180
|
- spec/spec_helper.rb
|