iain-metric_fu 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -20,10 +20,10 @@ home_page/title.gif
20
20
  home_page/title_back.gif
21
21
  lib/base/base_template.rb
22
22
  lib/base/generator.rb
23
- lib/base/graph.rb
24
23
  lib/base/md5_tracker.rb
25
24
  lib/base/report.rb
26
25
  lib/base/configuration.rb
26
+ lib/base/graph.rb
27
27
  lib/generators/churn.rb
28
28
  lib/generators/flay.rb
29
29
  lib/generators/flog.rb
@@ -32,9 +32,9 @@ lib/generators/reek.rb
32
32
  lib/generators/roodi.rb
33
33
  lib/generators/saikuro.rb
34
34
  lib/generators/stats.rb
35
+ lib/graphs/grapher.rb
35
36
  lib/graphs/flay_grapher.rb
36
37
  lib/graphs/flog_grapher.rb
37
- lib/graphs/grapher.rb
38
38
  lib/graphs/rcov_grapher.rb
39
39
  lib/graphs/reek_grapher.rb
40
40
  lib/graphs/roodi_grapher.rb
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ end
18
18
  task :default => [:"metrics:all"]
19
19
 
20
20
  require 'echoe'
21
- Echoe.new('metric_fu', '0.1.1') do |p|
21
+ Echoe.new('metric_fu', '0.1.2') do |p|
22
22
  p.description = "A fist full of code metrics"
23
23
  p.url = "http://metric-fu.rubyforge.org"
24
24
  p.author = "J. Scruggs and more"
@@ -142,7 +142,7 @@ module MetricFu
142
142
  @graph_legend_box_size = 12
143
143
  @graph_legend_font_size = 10
144
144
  @graph_marker_font_size = 10
145
-
145
+ @graph_options = lambda { |graph| graph }
146
146
  end
147
147
 
148
148
  # Perform a simple check to try and guess if we're running
@@ -35,4 +35,4 @@ module MetricFu
35
35
  end
36
36
  end
37
37
  end
38
- end
38
+ end
@@ -27,6 +27,7 @@ module MetricFu
27
27
  g.legend_box_size = MetricFu.graph_legend_box_size
28
28
  g.legend_font_size = MetricFu.graph_legend_font_size
29
29
  g.marker_font_size = MetricFu.graph_marker_font_size
30
+ MetricFu.graph_options.call(g)
30
31
  g.write(File.join(MetricFu.output_directory, 'flay.png'))
31
32
  end
32
33
 
@@ -29,6 +29,7 @@ module MetricFu
29
29
  g.legend_box_size = MetricFu.graph_legend_box_size
30
30
  g.legend_font_size = MetricFu.graph_legend_font_size
31
31
  g.marker_font_size = MetricFu.graph_marker_font_size
32
+ MetricFu.graph_options.call(g)
32
33
  g.write(File.join(MetricFu.output_directory, 'flog.png'))
33
34
  end
34
35
 
@@ -26,6 +26,7 @@ module MetricFu
26
26
  g.legend_box_size = MetricFu.graph_legend_box_size
27
27
  g.legend_font_size = MetricFu.graph_legend_font_size
28
28
  g.marker_font_size = MetricFu.graph_marker_font_size
29
+ MetricFu.graph_options.call(g)
29
30
  g.write(File.join(MetricFu.output_directory, 'rcov.png'))
30
31
  end
31
32
 
@@ -36,6 +36,7 @@ module MetricFu
36
36
  g.legend_box_size = MetricFu.graph_legend_box_size
37
37
  g.legend_font_size = MetricFu.graph_legend_font_size
38
38
  g.marker_font_size = MetricFu.graph_marker_font_size
39
+ MetricFu.graph_options.call(g)
39
40
  g.write(File.join(MetricFu.output_directory, 'reek.png'))
40
41
  end
41
42
 
@@ -26,6 +26,7 @@ module MetricFu
26
26
  g.legend_box_size = MetricFu.graph_legend_box_size
27
27
  g.legend_font_size = MetricFu.graph_legend_font_size
28
28
  g.marker_font_size = MetricFu.graph_marker_font_size
29
+ MetricFu.graph_options.call(g)
29
30
  g.write(File.join(MetricFu.output_directory, 'roodi.png'))
30
31
  end
31
32
 
@@ -31,6 +31,7 @@ module MetricFu
31
31
  g.legend_box_size = MetricFu.graph_legend_box_size
32
32
  g.legend_font_size = MetricFu.graph_legend_font_size
33
33
  g.marker_font_size = MetricFu.graph_marker_font_size
34
+ MetricFu.graph_options.call(g)
34
35
  g.write(File.join(MetricFu.output_directory, 'stats.png'))
35
36
  end
36
37
 
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{metric_fu}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["J. Scruggs and more"]
9
- s.date = %q{2009-08-23}
9
+ s.date = %q{2009-08-26}
10
10
  s.description = %q{A fist full of code metrics}
11
11
  s.email = %q{iain@iain.nl}
12
- s.extra_rdoc_files = ["README", "TODO", "lib/base/base_template.rb", "lib/base/generator.rb", "lib/base/graph.rb", "lib/base/md5_tracker.rb", "lib/base/report.rb", "lib/base/configuration.rb", "lib/generators/churn.rb", "lib/generators/flay.rb", "lib/generators/flog.rb", "lib/generators/rcov.rb", "lib/generators/reek.rb", "lib/generators/roodi.rb", "lib/generators/saikuro.rb", "lib/generators/stats.rb", "lib/graphs/flay_grapher.rb", "lib/graphs/flog_grapher.rb", "lib/graphs/grapher.rb", "lib/graphs/rcov_grapher.rb", "lib/graphs/reek_grapher.rb", "lib/graphs/roodi_grapher.rb", "lib/graphs/stats_grapher.rb", "lib/metric_fu.rb", "lib/templates/awesome/awesome_template.rb", "lib/templates/awesome/css/buttons.css", "lib/templates/awesome/css/integrity.css", "lib/templates/awesome/css/reset.css", "lib/templates/awesome/css/default.css", "lib/templates/awesome/index.html.erb", "lib/templates/awesome/stats.html.erb", "lib/templates/awesome/churn.html.erb", "lib/templates/awesome/flay.html.erb", "lib/templates/awesome/flog.html.erb", "lib/templates/awesome/js/sorttable.js", "lib/templates/awesome/layout.html.erb", "lib/templates/awesome/rcov.html.erb", "lib/templates/awesome/reek.html.erb", "lib/templates/awesome/roodi.html.erb", "lib/templates/awesome/saikuro.html.erb", "lib/templates/standard/churn.html.erb", "lib/templates/standard/default.css", "lib/templates/standard/flay.html.erb", "lib/templates/standard/flog.html.erb", "lib/templates/standard/index.html.erb", "lib/templates/standard/rcov.html.erb", "lib/templates/standard/reek.html.erb", "lib/templates/standard/roodi.html.erb", "lib/templates/standard/saikuro.html.erb", "lib/templates/standard/standard_template.rb", "lib/templates/standard/stats.html.erb", "tasks/metric_fu.rake"]
13
- s.files = ["HISTORY", "MIT-LICENSE", "README", "TODO", "home_page/back_all.jpg", "home_page/churn.gif", "home_page/flay.gif", "home_page/flog.gif", "home_page/footer.gif", "home_page/header.jpg", "home_page/img09.gif", "home_page/index.html", "home_page/rcov.gif", "home_page/reek.gif", "home_page/roodi.gif", "home_page/saikuro.gif", "home_page/stats.gif", "home_page/styles.css", "home_page/title.gif", "home_page/title_back.gif", "lib/base/base_template.rb", "lib/base/generator.rb", "lib/base/graph.rb", "lib/base/md5_tracker.rb", "lib/base/report.rb", "lib/base/configuration.rb", "lib/generators/churn.rb", "lib/generators/flay.rb", "lib/generators/flog.rb", "lib/generators/rcov.rb", "lib/generators/reek.rb", "lib/generators/roodi.rb", "lib/generators/saikuro.rb", "lib/generators/stats.rb", "lib/graphs/flay_grapher.rb", "lib/graphs/flog_grapher.rb", "lib/graphs/grapher.rb", "lib/graphs/rcov_grapher.rb", "lib/graphs/reek_grapher.rb", "lib/graphs/roodi_grapher.rb", "lib/graphs/stats_grapher.rb", "lib/metric_fu.rb", "lib/templates/awesome/awesome_template.rb", "lib/templates/awesome/css/buttons.css", "lib/templates/awesome/css/integrity.css", "lib/templates/awesome/css/reset.css", "lib/templates/awesome/css/default.css", "lib/templates/awesome/index.html.erb", "lib/templates/awesome/stats.html.erb", "lib/templates/awesome/churn.html.erb", "lib/templates/awesome/flay.html.erb", "lib/templates/awesome/flog.html.erb", "lib/templates/awesome/js/sorttable.js", "lib/templates/awesome/layout.html.erb", "lib/templates/awesome/rcov.html.erb", "lib/templates/awesome/reek.html.erb", "lib/templates/awesome/roodi.html.erb", "lib/templates/awesome/saikuro.html.erb", "lib/templates/standard/churn.html.erb", "lib/templates/standard/default.css", "lib/templates/standard/flay.html.erb", "lib/templates/standard/flog.html.erb", "lib/templates/standard/index.html.erb", "lib/templates/standard/rcov.html.erb", "lib/templates/standard/reek.html.erb", "lib/templates/standard/roodi.html.erb", "lib/templates/standard/saikuro.html.erb", "lib/templates/standard/standard_template.rb", "lib/templates/standard/stats.html.erb", "spec/base/base_template_spec.rb", "spec/base/generator_spec.rb", "spec/base/graph_spec.rb", "spec/base/md5_tracker_spec.rb", "spec/base/report_spec.rb", "spec/base/configuration_spec.rb", "spec/generators/churn_spec.rb", "spec/generators/flay_spec.rb", "spec/generators/flog_spec.rb", "spec/generators/reek_spec.rb", "spec/generators/saikuro_spec.rb", "spec/generators/stats_spec.rb", "spec/graphs/flay_grapher_spec.rb", "spec/graphs/flog_grapher_spec.rb", "spec/graphs/grapher_spec.rb", "spec/graphs/rcov_grapher_spec.rb", "spec/graphs/reek_grapher_spec.rb", "spec/graphs/roodi_grapher_spec.rb", "spec/graphs/stats_grapher_spec.rb", "spec/resources/saikuro/app/controllers/sessions_controller.rb_cyclo.html", "spec/resources/saikuro/app/controllers/users_controller.rb_cyclo.html", "spec/resources/saikuro/index_cyclo.html", "spec/resources/saikuro_sfiles/thing.rb_cyclo.html", "spec/resources/yml/20090630.yml", "spec/resources/yml/20090822.yml", "spec/spec.opts", "spec/spec_helper.rb", "tasks/metric_fu.rake", "vendor/_fonts/monaco.ttf", "vendor/saikuro/SAIKURO_README", "vendor/saikuro/saikuro.rb", "Manifest", "metric_fu.gemspec", "Rakefile"]
12
+ s.extra_rdoc_files = ["README", "TODO", "lib/base/base_template.rb", "lib/base/generator.rb", "lib/base/md5_tracker.rb", "lib/base/report.rb", "lib/base/configuration.rb", "lib/base/graph.rb", "lib/generators/churn.rb", "lib/generators/flay.rb", "lib/generators/flog.rb", "lib/generators/rcov.rb", "lib/generators/reek.rb", "lib/generators/roodi.rb", "lib/generators/saikuro.rb", "lib/generators/stats.rb", "lib/graphs/grapher.rb", "lib/graphs/flay_grapher.rb", "lib/graphs/flog_grapher.rb", "lib/graphs/rcov_grapher.rb", "lib/graphs/reek_grapher.rb", "lib/graphs/roodi_grapher.rb", "lib/graphs/stats_grapher.rb", "lib/metric_fu.rb", "lib/templates/awesome/awesome_template.rb", "lib/templates/awesome/css/buttons.css", "lib/templates/awesome/css/integrity.css", "lib/templates/awesome/css/reset.css", "lib/templates/awesome/css/default.css", "lib/templates/awesome/index.html.erb", "lib/templates/awesome/stats.html.erb", "lib/templates/awesome/churn.html.erb", "lib/templates/awesome/flay.html.erb", "lib/templates/awesome/flog.html.erb", "lib/templates/awesome/js/sorttable.js", "lib/templates/awesome/layout.html.erb", "lib/templates/awesome/rcov.html.erb", "lib/templates/awesome/reek.html.erb", "lib/templates/awesome/roodi.html.erb", "lib/templates/awesome/saikuro.html.erb", "lib/templates/standard/churn.html.erb", "lib/templates/standard/default.css", "lib/templates/standard/flay.html.erb", "lib/templates/standard/flog.html.erb", "lib/templates/standard/index.html.erb", "lib/templates/standard/rcov.html.erb", "lib/templates/standard/reek.html.erb", "lib/templates/standard/roodi.html.erb", "lib/templates/standard/saikuro.html.erb", "lib/templates/standard/standard_template.rb", "lib/templates/standard/stats.html.erb", "tasks/metric_fu.rake"]
13
+ s.files = ["HISTORY", "MIT-LICENSE", "README", "TODO", "home_page/back_all.jpg", "home_page/churn.gif", "home_page/flay.gif", "home_page/flog.gif", "home_page/footer.gif", "home_page/header.jpg", "home_page/img09.gif", "home_page/index.html", "home_page/rcov.gif", "home_page/reek.gif", "home_page/roodi.gif", "home_page/saikuro.gif", "home_page/stats.gif", "home_page/styles.css", "home_page/title.gif", "home_page/title_back.gif", "lib/base/base_template.rb", "lib/base/generator.rb", "lib/base/md5_tracker.rb", "lib/base/report.rb", "lib/base/configuration.rb", "lib/base/graph.rb", "lib/generators/churn.rb", "lib/generators/flay.rb", "lib/generators/flog.rb", "lib/generators/rcov.rb", "lib/generators/reek.rb", "lib/generators/roodi.rb", "lib/generators/saikuro.rb", "lib/generators/stats.rb", "lib/graphs/grapher.rb", "lib/graphs/flay_grapher.rb", "lib/graphs/flog_grapher.rb", "lib/graphs/rcov_grapher.rb", "lib/graphs/reek_grapher.rb", "lib/graphs/roodi_grapher.rb", "lib/graphs/stats_grapher.rb", "lib/metric_fu.rb", "lib/templates/awesome/awesome_template.rb", "lib/templates/awesome/css/buttons.css", "lib/templates/awesome/css/integrity.css", "lib/templates/awesome/css/reset.css", "lib/templates/awesome/css/default.css", "lib/templates/awesome/index.html.erb", "lib/templates/awesome/stats.html.erb", "lib/templates/awesome/churn.html.erb", "lib/templates/awesome/flay.html.erb", "lib/templates/awesome/flog.html.erb", "lib/templates/awesome/js/sorttable.js", "lib/templates/awesome/layout.html.erb", "lib/templates/awesome/rcov.html.erb", "lib/templates/awesome/reek.html.erb", "lib/templates/awesome/roodi.html.erb", "lib/templates/awesome/saikuro.html.erb", "lib/templates/standard/churn.html.erb", "lib/templates/standard/default.css", "lib/templates/standard/flay.html.erb", "lib/templates/standard/flog.html.erb", "lib/templates/standard/index.html.erb", "lib/templates/standard/rcov.html.erb", "lib/templates/standard/reek.html.erb", "lib/templates/standard/roodi.html.erb", "lib/templates/standard/saikuro.html.erb", "lib/templates/standard/standard_template.rb", "lib/templates/standard/stats.html.erb", "spec/base/base_template_spec.rb", "spec/base/generator_spec.rb", "spec/base/graph_spec.rb", "spec/base/md5_tracker_spec.rb", "spec/base/report_spec.rb", "spec/base/configuration_spec.rb", "spec/generators/churn_spec.rb", "spec/generators/flay_spec.rb", "spec/generators/flog_spec.rb", "spec/generators/reek_spec.rb", "spec/generators/saikuro_spec.rb", "spec/generators/stats_spec.rb", "spec/graphs/flay_grapher_spec.rb", "spec/graphs/flog_grapher_spec.rb", "spec/graphs/grapher_spec.rb", "spec/graphs/rcov_grapher_spec.rb", "spec/graphs/reek_grapher_spec.rb", "spec/graphs/roodi_grapher_spec.rb", "spec/graphs/stats_grapher_spec.rb", "spec/resources/saikuro/app/controllers/sessions_controller.rb_cyclo.html", "spec/resources/saikuro/app/controllers/users_controller.rb_cyclo.html", "spec/resources/saikuro/index_cyclo.html", "spec/resources/saikuro_sfiles/thing.rb_cyclo.html", "spec/resources/yml/20090630.yml", "spec/resources/yml/20090822.yml", "spec/spec.opts", "spec/spec_helper.rb", "tasks/metric_fu.rake", "vendor/_fonts/monaco.ttf", "vendor/saikuro/SAIKURO_README", "vendor/saikuro/saikuro.rb", "Manifest", "metric_fu.gemspec", "Rakefile"]
14
14
  s.homepage = %q{http://metric-fu.rubyforge.org}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Metric_fu", "--main", "README"]
16
16
  s.require_paths = ["lib"]
@@ -183,7 +183,15 @@ describe MetricFu::Configuration do
183
183
  it 'should set @graph_marker_font_size to 10' do
184
184
  @config.instance_variable_get(:@graph_marker_font_size).should eql(10)
185
185
  end
186
-
186
+
187
+ it 'should set a lambda to @graph_options' do
188
+ @config.instance_variable_get(:@graph_options).should be_kind_of(Proc)
189
+ end
190
+
191
+ it 'should have a lambda that accepts one parameter as graph' do
192
+ @config.instance_variable_get(:@graph_options).arity.should == 1
193
+ end
194
+
187
195
  describe 'if #rails? is true ' do
188
196
  before(:each) do
189
197
  @config.stub!(:rails?).and_return(true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iain-metric_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - J. Scruggs and more
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-23 00:00:00 -07:00
12
+ date: 2009-08-26 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -63,10 +63,10 @@ extra_rdoc_files:
63
63
  - TODO
64
64
  - lib/base/base_template.rb
65
65
  - lib/base/generator.rb
66
- - lib/base/graph.rb
67
66
  - lib/base/md5_tracker.rb
68
67
  - lib/base/report.rb
69
68
  - lib/base/configuration.rb
69
+ - lib/base/graph.rb
70
70
  - lib/generators/churn.rb
71
71
  - lib/generators/flay.rb
72
72
  - lib/generators/flog.rb
@@ -75,9 +75,9 @@ extra_rdoc_files:
75
75
  - lib/generators/roodi.rb
76
76
  - lib/generators/saikuro.rb
77
77
  - lib/generators/stats.rb
78
+ - lib/graphs/grapher.rb
78
79
  - lib/graphs/flay_grapher.rb
79
80
  - lib/graphs/flog_grapher.rb
80
- - lib/graphs/grapher.rb
81
81
  - lib/graphs/rcov_grapher.rb
82
82
  - lib/graphs/reek_grapher.rb
83
83
  - lib/graphs/roodi_grapher.rb
@@ -134,10 +134,10 @@ files:
134
134
  - home_page/title_back.gif
135
135
  - lib/base/base_template.rb
136
136
  - lib/base/generator.rb
137
- - lib/base/graph.rb
138
137
  - lib/base/md5_tracker.rb
139
138
  - lib/base/report.rb
140
139
  - lib/base/configuration.rb
140
+ - lib/base/graph.rb
141
141
  - lib/generators/churn.rb
142
142
  - lib/generators/flay.rb
143
143
  - lib/generators/flog.rb
@@ -146,9 +146,9 @@ files:
146
146
  - lib/generators/roodi.rb
147
147
  - lib/generators/saikuro.rb
148
148
  - lib/generators/stats.rb
149
+ - lib/graphs/grapher.rb
149
150
  - lib/graphs/flay_grapher.rb
150
151
  - lib/graphs/flog_grapher.rb
151
- - lib/graphs/grapher.rb
152
152
  - lib/graphs/rcov_grapher.rb
153
153
  - lib/graphs/reek_grapher.rb
154
154
  - lib/graphs/roodi_grapher.rb