sparklines 0.2.6 → 0.2.7
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.
- data/CHANGELOG +16 -0
- data/README +0 -16
- data/lib/sparklines.rb +2 -2
- data/rakefile +1 -0
- 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. | 
| 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 +  | 
| 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
    
    
    
        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. | 
| 7 | 
            -
            date: 2006- | 
| 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
         |