devver-metric_fu 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/HISTORY +182 -0
  2. data/MIT-LICENSE +22 -0
  3. data/Manifest.txt +25 -0
  4. data/README.textile +27 -0
  5. data/Rakefile +15 -0
  6. data/TODO +9 -0
  7. data/lib/base/base_template.rb +145 -0
  8. data/lib/base/configuration.rb +182 -0
  9. data/lib/base/generator.rb +167 -0
  10. data/lib/base/graph.rb +39 -0
  11. data/lib/base/md5_tracker.rb +52 -0
  12. data/lib/base/report.rb +100 -0
  13. data/lib/generators/churn.rb +34 -0
  14. data/lib/generators/flay.rb +35 -0
  15. data/lib/generators/flog.rb +167 -0
  16. data/lib/generators/rails_best_practices.rb +31 -0
  17. data/lib/generators/rcov.rb +82 -0
  18. data/lib/generators/reek.rb +64 -0
  19. data/lib/generators/roodi.rb +33 -0
  20. data/lib/generators/saikuro.rb +221 -0
  21. data/lib/generators/stats.rb +59 -0
  22. data/lib/graphs/engines/bluff.rb +99 -0
  23. data/lib/graphs/engines/gchart.rb +118 -0
  24. data/lib/graphs/flay_grapher.rb +20 -0
  25. data/lib/graphs/flog_grapher.rb +40 -0
  26. data/lib/graphs/grapher.rb +11 -0
  27. data/lib/graphs/rails_best_practices_grapher.rb +20 -0
  28. data/lib/graphs/rcov_grapher.rb +20 -0
  29. data/lib/graphs/reek_grapher.rb +32 -0
  30. data/lib/graphs/roodi_grapher.rb +20 -0
  31. data/lib/metric_fu.rb +31 -0
  32. data/lib/templates/awesome/awesome_template.rb +37 -0
  33. data/lib/templates/awesome/churn.html.erb +58 -0
  34. data/lib/templates/awesome/css/buttons.css +82 -0
  35. data/lib/templates/awesome/css/default.css +91 -0
  36. data/lib/templates/awesome/css/integrity.css +335 -0
  37. data/lib/templates/awesome/css/reset.css +7 -0
  38. data/lib/templates/awesome/flay.html.erb +34 -0
  39. data/lib/templates/awesome/flog.html.erb +53 -0
  40. data/lib/templates/awesome/index.html.erb +31 -0
  41. data/lib/templates/awesome/layout.html.erb +30 -0
  42. data/lib/templates/awesome/rails_best_practices.html.erb +27 -0
  43. data/lib/templates/awesome/rcov.html.erb +42 -0
  44. data/lib/templates/awesome/reek.html.erb +40 -0
  45. data/lib/templates/awesome/roodi.html.erb +27 -0
  46. data/lib/templates/awesome/saikuro.html.erb +71 -0
  47. data/lib/templates/awesome/stats.html.erb +41 -0
  48. data/lib/templates/javascripts/bluff-min.js +1 -0
  49. data/lib/templates/javascripts/excanvas.js +35 -0
  50. data/lib/templates/javascripts/js-class.js +1 -0
  51. data/lib/templates/standard/churn.html.erb +31 -0
  52. data/lib/templates/standard/default.css +64 -0
  53. data/lib/templates/standard/flay.html.erb +34 -0
  54. data/lib/templates/standard/flog.html.erb +53 -0
  55. data/lib/templates/standard/index.html.erb +41 -0
  56. data/lib/templates/standard/rails_best_practices.html.erb +29 -0
  57. data/lib/templates/standard/rcov.html.erb +43 -0
  58. data/lib/templates/standard/reek.html.erb +42 -0
  59. data/lib/templates/standard/roodi.html.erb +29 -0
  60. data/lib/templates/standard/saikuro.html.erb +84 -0
  61. data/lib/templates/standard/standard_template.rb +26 -0
  62. data/lib/templates/standard/stats.html.erb +55 -0
  63. data/spec/base/base_template_spec.rb +161 -0
  64. data/spec/base/configuration_spec.rb +270 -0
  65. data/spec/base/generator_spec.rb +244 -0
  66. data/spec/base/graph_spec.rb +24 -0
  67. data/spec/base/md5_tracker_spec.rb +57 -0
  68. data/spec/base/report_spec.rb +139 -0
  69. data/spec/generators/churn_spec.rb +43 -0
  70. data/spec/generators/flay_spec.rb +110 -0
  71. data/spec/generators/flog_spec.rb +238 -0
  72. data/spec/generators/reek_spec.rb +125 -0
  73. data/spec/generators/saikuro_spec.rb +58 -0
  74. data/spec/generators/stats_spec.rb +74 -0
  75. data/spec/graphs/engines/bluff_spec.rb +18 -0
  76. data/spec/graphs/engines/gchart_spec.rb +108 -0
  77. data/spec/graphs/flay_grapher_spec.rb +37 -0
  78. data/spec/graphs/flog_grapher_spec.rb +45 -0
  79. data/spec/graphs/rcov_grapher_spec.rb +37 -0
  80. data/spec/graphs/reek_grapher_spec.rb +46 -0
  81. data/spec/graphs/roodi_grapher_spec.rb +37 -0
  82. data/spec/resources/saikuro/app/controllers/sessions_controller.rb_cyclo.html +10 -0
  83. data/spec/resources/saikuro/app/controllers/users_controller.rb_cyclo.html +16 -0
  84. data/spec/resources/saikuro/index_cyclo.html +155 -0
  85. data/spec/resources/saikuro_sfiles/thing.rb_cyclo.html +11 -0
  86. data/spec/resources/yml/20090630.yml +7844 -0
  87. data/spec/spec.opts +6 -0
  88. data/spec/spec_helper.rb +7 -0
  89. data/tasks/metric_fu.rake +22 -0
  90. metadata +253 -0
data/spec/spec.opts ADDED
@@ -0,0 +1,6 @@
1
+ --colour
2
+ --reverse
3
+ --format
4
+ profile
5
+ --loadby
6
+ mtime
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'spec/autorun'
3
+ require 'date'
4
+ require 'construct'
5
+
6
+ require File.join(File.dirname(__FILE__), '/../lib/metric_fu.rb')
7
+ include MetricFu
@@ -0,0 +1,22 @@
1
+ require 'rake'
2
+ namespace :metrics do
3
+ desc "Generate all metrics reports"
4
+ task :all do
5
+ MetricFu::Configuration.run {}
6
+ MetricFu.metrics.each {|metric| MetricFu.report.add(metric) }
7
+ MetricFu.report.save_output(MetricFu.report.to_yaml,
8
+ MetricFu.base_directory,
9
+ "report.yml")
10
+ MetricFu.report.save_output(MetricFu.report.to_yaml,
11
+ MetricFu.data_directory,
12
+ "#{Time.now.strftime("%Y%m%d")}.yml")
13
+ MetricFu.report.save_templatized_report
14
+
15
+ MetricFu.graphs.each {|graph| MetricFu.graph.add(graph, MetricFu.graph_engine) }
16
+ MetricFu.graph.generate
17
+
18
+ if MetricFu.report.open_in_browser?
19
+ MetricFu.report.show_in_browser(MetricFu.output_directory)
20
+ end
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,253 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: devver-metric_fu
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.3
5
+ platform: ruby
6
+ authors:
7
+ - Jake Scruggs
8
+ - Sean Soper
9
+ - Andre Arko
10
+ - Petrik de Heus
11
+ - Grant McInnes
12
+ - Nick Quaranto
13
+ - "\xC3\x89douard Bri\xC3\xA8re"
14
+ - Carl Youngblood
15
+ - Richard Huang
16
+ - Dan Mayer
17
+ autorequire:
18
+ bindir: bin
19
+ cert_chain: []
20
+
21
+ date: 2010-02-19 00:00:00 -05:00
22
+ default_executable:
23
+ dependencies:
24
+ - !ruby/object:Gem::Dependency
25
+ name: flay
26
+ type: :runtime
27
+ version_requirement:
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.2.1
33
+ version:
34
+ - !ruby/object:Gem::Dependency
35
+ name: flog
36
+ type: :runtime
37
+ version_requirement:
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.2.0
43
+ version:
44
+ - !ruby/object:Gem::Dependency
45
+ name: rcov
46
+ type: :runtime
47
+ version_requirement:
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.8.3.3
53
+ version:
54
+ - !ruby/object:Gem::Dependency
55
+ name: chronic
56
+ type: :runtime
57
+ version_requirement:
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 0.2.3
63
+ version:
64
+ - !ruby/object:Gem::Dependency
65
+ name: churn
66
+ type: :runtime
67
+ version_requirement:
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 0.0.7
73
+ version:
74
+ - !ruby/object:Gem::Dependency
75
+ name: devver-Saikuro
76
+ type: :runtime
77
+ version_requirement:
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 1.1.0
83
+ version:
84
+ - !ruby/object:Gem::Dependency
85
+ name: activesupport
86
+ type: :runtime
87
+ version_requirement:
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 2.2.3
93
+ version:
94
+ - !ruby/object:Gem::Dependency
95
+ name: rspec
96
+ type: :development
97
+ version_requirement:
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 1.2.0
103
+ version:
104
+ - !ruby/object:Gem::Dependency
105
+ name: test-construct
106
+ type: :development
107
+ version_requirement:
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.2.0
113
+ version:
114
+ - !ruby/object:Gem::Dependency
115
+ name: rails_best_practices
116
+ type: :runtime
117
+ version_requirement:
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 0.3.16
123
+ version:
124
+ description: Code metrics from Flog, Flay, RCov, Saikuro, Churn, Reek, Roodi and Rails' stats task
125
+ email: jake.scruggs@gmail.com
126
+ executables: []
127
+
128
+ extensions: []
129
+
130
+ extra_rdoc_files:
131
+ - HISTORY
132
+ - Manifest.txt
133
+ - README.textile
134
+ files:
135
+ - README.textile
136
+ - HISTORY
137
+ - TODO
138
+ - MIT-LICENSE
139
+ - Rakefile
140
+ - lib/base/base_template.rb
141
+ - lib/base/configuration.rb
142
+ - lib/base/generator.rb
143
+ - lib/base/graph.rb
144
+ - lib/base/md5_tracker.rb
145
+ - lib/base/report.rb
146
+ - lib/generators/churn.rb
147
+ - lib/generators/flay.rb
148
+ - lib/generators/flog.rb
149
+ - lib/generators/rcov.rb
150
+ - lib/generators/reek.rb
151
+ - lib/generators/roodi.rb
152
+ - lib/generators/saikuro.rb
153
+ - lib/generators/stats.rb
154
+ - lib/graphs/engines/bluff.rb
155
+ - lib/graphs/engines/gchart.rb
156
+ - lib/graphs/flay_grapher.rb
157
+ - lib/graphs/flog_grapher.rb
158
+ - lib/graphs/grapher.rb
159
+ - lib/graphs/rcov_grapher.rb
160
+ - lib/graphs/reek_grapher.rb
161
+ - lib/graphs/roodi_grapher.rb
162
+ - lib/metric_fu.rb
163
+ - lib/templates/awesome/awesome_template.rb
164
+ - lib/templates/awesome/churn.html.erb
165
+ - lib/templates/awesome/css/buttons.css
166
+ - lib/templates/awesome/css/default.css
167
+ - lib/templates/awesome/css/integrity.css
168
+ - lib/templates/awesome/css/reset.css
169
+ - lib/templates/awesome/flay.html.erb
170
+ - lib/templates/awesome/flog.html.erb
171
+ - lib/templates/awesome/index.html.erb
172
+ - lib/templates/awesome/layout.html.erb
173
+ - lib/templates/awesome/rcov.html.erb
174
+ - lib/templates/awesome/reek.html.erb
175
+ - lib/templates/awesome/roodi.html.erb
176
+ - lib/templates/awesome/saikuro.html.erb
177
+ - lib/templates/awesome/stats.html.erb
178
+ - lib/templates/javascripts/bluff-min.js
179
+ - lib/templates/javascripts/excanvas.js
180
+ - lib/templates/javascripts/js-class.js
181
+ - lib/templates/standard/churn.html.erb
182
+ - lib/templates/standard/default.css
183
+ - lib/templates/standard/flay.html.erb
184
+ - lib/templates/standard/flog.html.erb
185
+ - lib/templates/standard/index.html.erb
186
+ - lib/templates/standard/rcov.html.erb
187
+ - lib/templates/standard/reek.html.erb
188
+ - lib/templates/standard/roodi.html.erb
189
+ - lib/templates/standard/saikuro.html.erb
190
+ - lib/templates/standard/standard_template.rb
191
+ - lib/templates/standard/stats.html.erb
192
+ - tasks/metric_fu.rake
193
+ - lib/templates/standard/rails_best_practices.html.erb
194
+ - lib/generators/rails_best_practices.rb
195
+ - lib/graphs/rails_best_practices_grapher.rb
196
+ - lib/templates/awesome/rails_best_practices.html.erb
197
+ - Manifest.txt
198
+ has_rdoc: true
199
+ homepage: http://metric-fu.rubyforge.org/
200
+ licenses: []
201
+
202
+ post_install_message:
203
+ rdoc_options:
204
+ - --main
205
+ - README.textile
206
+ require_paths:
207
+ - lib
208
+ required_ruby_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: "0"
213
+ version:
214
+ required_rubygems_version: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: "0"
219
+ version:
220
+ requirements: []
221
+
222
+ rubyforge_project:
223
+ rubygems_version: 1.3.5
224
+ signing_key:
225
+ specification_version: 3
226
+ summary: A fistful of code metrics, with awesome templates and graphs
227
+ test_files:
228
+ - spec/base/base_template_spec.rb
229
+ - spec/base/configuration_spec.rb
230
+ - spec/base/generator_spec.rb
231
+ - spec/base/graph_spec.rb
232
+ - spec/base/md5_tracker_spec.rb
233
+ - spec/base/report_spec.rb
234
+ - spec/generators/churn_spec.rb
235
+ - spec/generators/flay_spec.rb
236
+ - spec/generators/flog_spec.rb
237
+ - spec/generators/reek_spec.rb
238
+ - spec/generators/saikuro_spec.rb
239
+ - spec/generators/stats_spec.rb
240
+ - spec/graphs/engines/bluff_spec.rb
241
+ - spec/graphs/engines/gchart_spec.rb
242
+ - spec/graphs/flay_grapher_spec.rb
243
+ - spec/graphs/flog_grapher_spec.rb
244
+ - spec/graphs/rcov_grapher_spec.rb
245
+ - spec/graphs/reek_grapher_spec.rb
246
+ - spec/graphs/roodi_grapher_spec.rb
247
+ - spec/resources/saikuro/app/controllers/sessions_controller.rb_cyclo.html
248
+ - spec/resources/saikuro/app/controllers/users_controller.rb_cyclo.html
249
+ - spec/resources/saikuro/index_cyclo.html
250
+ - spec/resources/saikuro_sfiles/thing.rb_cyclo.html
251
+ - spec/resources/yml/20090630.yml
252
+ - spec/spec.opts
253
+ - spec/spec_helper.rb