edouard-metric_fu 1.0.4.2 → 1.0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -157,6 +157,7 @@ module MetricFu
157
157
 
158
158
  relative_font_path = [File.dirname(__FILE__), '..', '..', 'vendor', '_fonts', 'monaco.ttf']
159
159
  @graph_font = File.expand_path(File.join(relative_font_path))
160
+ @graph_size = "1000x400"
160
161
 
161
162
  end
162
163
 
@@ -16,7 +16,7 @@ module MetricFu
16
16
  end
17
17
 
18
18
  def graph!
19
- g = Gruff::Line.new("1024x768")
19
+ g = Gruff::Line.new(MetricFu.graph_size)
20
20
  g.title = "Flay: duplication"
21
21
  g.theme = MetricFu.graph_theme
22
22
  g.font = MetricFu.graph_font
@@ -18,7 +18,7 @@ module MetricFu
18
18
  end
19
19
 
20
20
  def graph!
21
- g = Gruff::Line.new("1024x768")
21
+ g = Gruff::Line.new(MetricFu.graph_size)
22
22
  g.title = "Flog: code complexity"
23
23
  g.theme = MetricFu.graph_theme
24
24
  g.font = MetricFu.graph_font
@@ -16,7 +16,7 @@ module MetricFu
16
16
  end
17
17
 
18
18
  def graph!
19
- g = Gruff::Line.new("1024x768")
19
+ g = Gruff::Line.new(MetricFu.graph_size)
20
20
  g.title = "Rcov: code coverage"
21
21
  g.theme = MetricFu.graph_theme
22
22
  g.font = MetricFu.graph_font
@@ -24,7 +24,7 @@ module MetricFu
24
24
  end
25
25
 
26
26
  def graph!
27
- g = Gruff::Line.new("1024x768")
27
+ g = Gruff::Line.new(MetricFu.graph_size)
28
28
  g.title = "Reek: code smells"
29
29
  g.theme = MetricFu.graph_theme
30
30
  g.font = MetricFu.graph_font
@@ -16,7 +16,7 @@ module MetricFu
16
16
  end
17
17
 
18
18
  def graph!
19
- g = Gruff::Line.new("1024x768")
19
+ g = Gruff::Line.new(MetricFu.graph_size)
20
20
  g.title = "Roodi: design problems"
21
21
  g.theme = MetricFu.graph_theme
22
22
  g.font = MetricFu.graph_font
@@ -2,9 +2,7 @@
2
2
 
3
3
  <p><a href='http://ruby.sadi.st/Flay.html'>Flay</a> analyzes ruby code for structural similarities.</p>
4
4
 
5
- <a href="flay.png?<%= Time.now.localtime %>">
6
- <img src="flay.png?<%= Time.now.localtime %>" width="400">
7
- </a>
5
+ <img src="flay.png?<%= Time.now.localtime %>">
8
6
 
9
7
  <h4>Total Score (lower is better): <%= @flay[:total_score] %></h4>
10
8
 
@@ -1,9 +1,7 @@
1
1
  <h3>Flog Results</h3>
2
2
  <p><a href='http://ruby.sadi.st/Flog.html'>Flog</a> measures code complexity.</p>
3
3
 
4
- <a href="flog.png?<%= Time.now.localtime %>">
5
- <img src="flog.png?<%= Time.now.localtime %>" width="400">
6
- </a>
4
+ <img src="flog.png?<%= Time.now.localtime %>">
7
5
 
8
6
  <h2>Total Flog score for all methods: <%= @flog[:total]%></h2>
9
7
  <h2>Average Flog score for all methods: <%= @flog[:average]%></h2>
@@ -2,9 +2,7 @@
2
2
 
3
3
  <p>C0 code coverage information.</p>
4
4
 
5
- <a href="rcov.png?<%= Time.now.localtime %>">
6
- <img src="rcov.png?<%= Time.now.localtime %>" width="400">
7
- </a>
5
+ <img src="rcov.png?<%= Time.now.localtime %>">
8
6
 
9
7
  <p>Total Coverage: <%= @rcov.delete(:global_percent_run) %>% </p>
10
8
  <table>
@@ -2,9 +2,7 @@
2
2
 
3
3
  <p><a href="http://reek.rubyforge.org/">Reek</a> detects common code smells in ruby code.</p>
4
4
 
5
- <a href="reek.png?<%= Time.now.localtime %>">
6
- <img src="reek.png?<%= Time.now.localtime %>" width="400">
7
- </a>
5
+ <img src="reek.png?<%= Time.now.localtime %>">
8
6
 
9
7
  <table>
10
8
  <tr>
@@ -2,9 +2,7 @@
2
2
 
3
3
  <p><a href="http://roodi.rubyforge.org/">Roodi</a> parses your Ruby code and warns you about design issues you have based on the checks that is has configured.</p>
4
4
 
5
- <a href="roodi.png?<%= Time.now.localtime %>">
6
- <img src="roodi.png?<%= Time.now.localtime %>" width="400">
7
- </a>
5
+ <img src="roodi.png?<%= Time.now.localtime %>">
8
6
 
9
7
  <table>
10
8
  <tr>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edouard-metric_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4.2
4
+ version: 1.0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Scruggs