lib/sparklines.rb in sparklines-0.2.1 vs lib/sparklines.rb in sparklines-0.2.2

- old
+ new

@@ -55,15 +55,15 @@ helper :sparklines In your view, call it like this: -<%= sparklines_tag [1,2,3,4,5,6] %> <!-- Gives you a smooth graph --> +<%= sparkline_tag [1,2,3,4,5,6] %> <!-- Gives you a smooth graph --> Or specify details: -<%= sparklines_tag [1,2,3,4,5,6], :type => 'discrete', :height => 10, :upper => 80, :above_color => 'green', :below_color => 'blue' %> +<%= sparkline_tag [1,2,3,4,5,6], :type => 'discrete', :height => 10, :upper => 80, :above_color => 'green', :below_color => 'blue' %> Graph types: area @@ -86,10 +86,10 @@ Licensed under the MIT license. =end module Sparklines - $VERSION = '0.2.1' + $VERSION = '0.2.2' # Does the actually plotting of the graph. Calls the appropriate function based on the :type value passed. Defaults to 'smooth.' def Sparklines.plot(results=[], options={}) defaults = { :type => 'smooth', :height => 14,