sparklines 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +16 -0
  2. data/README +0 -16
  3. data/lib/sparklines.rb +2 -2
  4. data/rakefile +1 -0
  5. metadata +2 -2
data/CHANGELOG CHANGED
@@ -0,0 +1,16 @@
1
+
2
+ 0.2.7
3
+
4
+ * Fixed bug where last element of bar graph wouldn't go to the bottom [Esad Hajdarevic esad@esse.at]
5
+
6
+ 0.2.5
7
+
8
+ * Tests now use Test::Unit
9
+ * Bar type added
10
+
11
+ 0.2.1
12
+
13
+ * Added line_color option for smooth graphs
14
+ * Now available as a gem ('gem install sparklines') and as a rails generator ('gem install sparklines_generator')
15
+
16
+
data/README CHANGED
@@ -34,19 +34,3 @@ Or specify details:
34
34
 
35
35
  <%= sparklines_tag [1,2,3,4,5,6], :type => 'discrete', :height => 10, :upper => 80, :above_color => 'green', :below_color => 'blue' %>
36
36
 
37
-
38
- **********************************
39
- CHANGES
40
- **********************************
41
-
42
- 0.2.5
43
-
44
- * Tests now use Test::Unit
45
- * Bar type added
46
-
47
- 0.2.1
48
-
49
- * Added line_color option for smooth graphs
50
- * Now available as a gem ('gem install sparklines') and as a rails generator ('gem install sparklines_generator')
51
-
52
-
data/lib/sparklines.rb CHANGED
@@ -92,7 +92,7 @@ Licensed under the MIT license.
92
92
  =end
93
93
 
94
94
  module Sparklines
95
- VERSION = '0.2.6'
95
+ VERSION = '0.2.7'
96
96
 
97
97
  # Does the actually plotting of the graph. Calls the appropriate function based on the :type value passed. Defaults to 'smooth.'
98
98
  def Sparklines.plot(results=[], options={})
@@ -453,7 +453,7 @@ module Sparklines
453
453
  below_color = options[:below_color]
454
454
  above_color = options[:above_color]
455
455
 
456
- img = Magick::Image.new((results.size) * step + 1, height) {
456
+ img = Magick::Image.new((results.size) * step + 2, height) {
457
457
  self.background_color = options[:background_color]
458
458
  }
459
459
  img.format = "PNG"
data/rakefile CHANGED
@@ -24,6 +24,7 @@ task :default => [ :clean, :test ]
24
24
  desc "Clean images generated by tests"
25
25
  task :clean do
26
26
  rm FileList['test/output/*.png']
27
+ rm_rf "pkg"
27
28
  end
28
29
 
29
30
  # Run the unit tests
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: sparklines
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.6
7
- date: 2006-01-04 00:00:00 -08:00
6
+ version: 0.2.7
7
+ date: 2006-05-17 00:00:00 -07:00
8
8
  summary: Tiny graphs for concise data.
9
9
  require_paths:
10
10
  - lib