scruffy 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,9 @@
1
1
  = Scruffy Changelog
2
+ == Version 0.2.4
3
+ (2008-08-22)
4
+ * Bug #21517, legend text missing, fixed.
5
+ * Bug #21604, Fails to properly require RMagick, fixed.
6
+
2
7
  == Version 0.2.3
3
8
  (July 4th, 2008)
4
9
  * Got pie charts working
@@ -101,4 +106,4 @@ This is not a public release.
101
106
  * Marker transformers: currency, percentages.
102
107
  * Basic Graphs: Area, Bar, Line.
103
108
  * Advanced Graphs: Average, AllSmiles.
104
- * Initial documentation.
109
+ * Initial documentation.
@@ -7,9 +7,16 @@ module Scruffy::Components
7
7
  vertical = options[:vertical_legend]
8
8
  legend_info = relevant_legend_info(options[:layers])
9
9
  @line_height, x, y, size = 0
10
- set_line_height = 0.08 * bounds[:height]
11
- @line_height = bounds[:height] / legend_info.length
12
- @line_height = set_line_height if @line_height > set_line_height
10
+ if vertical
11
+ set_line_height = 0.08 * bounds[:height]
12
+ @line_height = bounds[:height] / legend_info.length
13
+ @line_height = set_line_height if @line_height >
14
+ set_line_height
15
+ else
16
+ set_line_height = 0.90 * bounds[:height]
17
+ @line_height = set_line_height
18
+ end
19
+
13
20
  text_height = @line_height * FONT_SIZE / 100
14
21
  # #TODO how does this related to @points?
15
22
  active_width, points = layout(legend_info, vertical)
@@ -10,7 +10,7 @@ module Scruffy::Rasterizers
10
10
  def rasterize(svg, options={})
11
11
  # I know this seems weird, I'm open to suggestions.
12
12
  # I didn't want RMagick required unless absolutely necessary.
13
- require 'rmagick'
13
+ require 'RMagick'
14
14
 
15
15
  image = Magick::Image::from_blob(svg)[0]
16
16
 
@@ -2,7 +2,7 @@ module Scruffy
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -65,7 +65,7 @@
65
65
  </g>
66
66
  <g transform="translate(30.0, 46.8)" id="legend">
67
67
  <rect width="10.8" x="226.8" y="0" height="10.8" fill="#6886B4"/>
68
- <text font-size="1.3824" x="228.528" y="1.0368" fill="white" style="color: white">Example</text>
68
+ <text font-size="15.552" x="246.24" y="11.664" fill="white" style="color: white">Example</text>
69
69
  </g>
70
70
  </g>
71
71
  </svg>
@@ -54,7 +54,7 @@
54
54
  </g>
55
55
  <g transform="translate(30.0, 46.8)" id="legend">
56
56
  <rect width="10.8" x="226.8" y="0" height="10.8" fill="#6886B4"/>
57
- <text font-size="1.3824" x="228.528" y="1.0368" fill="white" style="color: white">Example</text>
57
+ <text font-size="15.552" x="246.24" y="11.664" fill="white" style="color: white">Example</text>
58
58
  </g>
59
59
  </g>
60
60
  </svg>
@@ -282,15 +282,15 @@
282
282
  </g>
283
283
  <g transform="translate(30.0, 46.8)" id="legend">
284
284
  <rect width="9.0" x="108.0" y="0" height="9.0" fill="#6886B4"/>
285
- <text font-size="1.152" x="109.44" y="0.864" fill="white" style="color: white">Jeff</text>
285
+ <text font-size="12.96" x="124.2" y="9.72" fill="white" style="color: white">Jeff</text>
286
286
  <rect width="9.0" x="171.0" y="0" height="9.0" fill="#72AE6E"/>
287
- <text font-size="1.152" x="172.44" y="0.864" fill="white" style="color: white">Jerry</text>
287
+ <text font-size="12.96" x="187.2" y="9.72" fill="white" style="color: white">Jerry</text>
288
288
  <rect width="9.0" x="243.0" y="0" height="9.0" fill="#D1695E"/>
289
- <text font-size="1.152" x="244.44" y="0.864" fill="white" style="color: white">Jack</text>
289
+ <text font-size="12.96" x="259.2" y="9.72" fill="white" style="color: white">Jack</text>
290
290
  <rect width="9.0" x="306.0" y="0" height="9.0" fill="#8A6EAF"/>
291
- <text font-size="1.152" x="307.44" y="0.864" fill="white" style="color: white">Brasten</text>
291
+ <text font-size="12.96" x="322.2" y="9.72" fill="white" style="color: white">Brasten</text>
292
292
  <rect width="9.0" x="396.0" y="0" height="9.0" fill="#FDD84E"/>
293
- <text font-size="1.152" x="397.44" y="0.864" fill="white" style="color: white">Jim</text>
293
+ <text font-size="12.96" x="412.2" y="9.72" fill="white" style="color: white">Jim</text>
294
294
  </g>
295
295
  </g>
296
296
  </svg>
@@ -281,15 +281,15 @@
281
281
  </g>
282
282
  <g transform="translate(30.0, 39.6)" id="legend">
283
283
  <rect width="7.2" x="140.4" y="0" height="7.2" fill="#6886B4"/>
284
- <text font-size="0.9216" x="141.552" y="0.6912" fill="white" style="color: white">Jeff</text>
284
+ <text font-size="10.368" x="153.36" y="7.776" fill="white" style="color: white">Jeff</text>
285
285
  <rect width="7.2" x="190.8" y="0" height="7.2" fill="#FDD84E"/>
286
- <text font-size="0.9216" x="191.952" y="0.6912" fill="white" style="color: white">Jerry</text>
286
+ <text font-size="10.368" x="203.76" y="7.776" fill="white" style="color: white">Jerry</text>
287
287
  <rect width="7.2" x="248.4" y="0" height="7.2" fill="#8A6EAF"/>
288
- <text font-size="0.9216" x="249.552" y="0.6912" fill="white" style="color: white">Jack</text>
288
+ <text font-size="10.368" x="261.36" y="7.776" fill="white" style="color: white">Jack</text>
289
289
  <rect width="7.2" x="298.8" y="0" height="7.2" fill="#72AE6E"/>
290
- <text font-size="0.9216" x="299.952" y="0.6912" fill="white" style="color: white">Brasten</text>
290
+ <text font-size="10.368" x="311.76" y="7.776" fill="white" style="color: white">Brasten</text>
291
291
  <rect width="7.2" x="370.8" y="0" height="7.2" fill="#D1695E"/>
292
- <text font-size="0.9216" x="371.952" y="0.6912" fill="white" style="color: white">Jim</text>
292
+ <text font-size="10.368" x="383.76" y="7.776" fill="white" style="color: white">Jim</text>
293
293
  </g>
294
294
  </g>
295
295
  </svg>
@@ -136,11 +136,11 @@
136
136
  </g>
137
137
  <g transform="translate(30.0, 46.8)" id="legend">
138
138
  <rect width="10.8" x="167.4" y="0" height="10.8" fill="#FDD84E"/>
139
- <text font-size="1.3824" x="169.128" y="1.0368" fill="white" style="color: white">Jack</text>
139
+ <text font-size="15.552" x="186.84" y="11.664" fill="white" style="color: white">Jack</text>
140
140
  <rect width="10.8" x="243.0" y="0" height="10.8" fill="#72AE6E"/>
141
- <text font-size="1.3824" x="244.728" y="1.0368" fill="white" style="color: white">Jill</text>
141
+ <text font-size="15.552" x="262.44" y="11.664" fill="white" style="color: white">Jill</text>
142
142
  <rect width="10.8" x="318.6" y="0" height="10.8" fill="#D1695E"/>
143
- <text font-size="1.3824" x="320.328" y="1.0368" fill="white" style="color: white">Hill</text>
143
+ <text font-size="15.552" x="338.04" y="11.664" fill="white" style="color: white">Hill</text>
144
144
  </g>
145
145
  </g>
146
146
  </svg>
@@ -33,7 +33,7 @@
33
33
  <h1></h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/scruffy"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/scruffy" class="numbers">0.2.3</a>
36
+ <a href="http://rubyforge.org/projects/scruffy" class="numbers">0.2.4</a>
37
37
  </div>
38
38
  <p><a href="index.html">Home</a>
39
39
  <a href="doc">Documentation</a>
@@ -244,7 +244,12 @@ Scruffy is designed to be extremely extendible. Adding new graph types or themes
244
244
  <p>Rubyforge Project is <a href="http://rubyforge.org/projects/scruffy/" class="major">here</a></p>
245
245
 
246
246
 
247
- <h2>News</h2>
247
+ <h2>News
248
+ <ul>
249
+ <li><strong>2008-08-22, Scruffy 0.2.4</strong> &#8211; Bug fixes:
250
+ #21517, legend text missing, fixed.
251
+ #21604, Fails to properly require RMagick, fixed.</li>
252
+ </ul></h2>
248
253
 
249
254
 
250
255
  <ul>
@@ -284,7 +289,7 @@ Check out more examples at <a href="http://www.ibrasten.com/articles/tag/scruffy
284
289
  urchinTracker();
285
290
  </script>
286
291
  <p class="coda">
287
- 9th July 2008<br>
292
+ 22nd August 2008<br>
288
293
  </p>
289
294
  </div>
290
295
 
@@ -173,6 +173,9 @@ The trunk repository is <code>svn://rubyforge.org/var/svn/scruffy/trunk</code> f
173
173
  Rubyforge Project is <a href="http://rubyforge.org/projects/scruffy/" class="major">here</a>
174
174
 
175
175
  h2. News
176
+ * *2008-08-22, Scruffy 0.2.4* - Bug fixes:
177
+ #21517, legend text missing, fixed.
178
+ #21604, Fails to properly require RMagick, fixed.
176
179
 
177
180
  * *July 8th, 2008, Scruffy 0.2.3* - Pie Charts added.
178
181
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scruffy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brasten Sager
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-05 00:00:00 +10:00
12
+ date: 2008-08-22 00:00:00 +10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency