grafico 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{grafico}
8
- s.version = "0.1.1"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andy Rossmeissl"]
12
- s.date = %q{2010-04-27}
12
+ s.date = %q{2010-04-29}
13
13
  s.description = %q{Rails (2.x - 3.x) view helpers for graphs using Grafico, a javascript graphic library built on Raphael.}
14
14
  s.email = %q{andy@brighterplanet.com}
15
15
  s.extra_rdoc_files = [
@@ -10,5 +10,9 @@ module Grafico
10
10
  def line_graph_tag(element, data, options = {})
11
11
  graph_tag 'LineGraph', element, data, options
12
12
  end
13
+
14
+ def sparkline_tag(element, data, options = {})
15
+ graph_tag 'SparkLine', element, data, options
16
+ end
13
17
  end
14
18
  end
@@ -16,4 +16,8 @@ class TestGrafico < Test::Unit::TestCase
16
16
  def test_line_graph_tag
17
17
  assert_equal @helper.line_graph_tag('my_element', [1, 2, 3]), wrap_as_javascript("var my_elementLineGraph = new Grafico.LineGraph($('my_element'), [1,2,3]);")
18
18
  end
19
+
20
+ def test_sparkline_tag
21
+ assert_equal @helper.line_graph_tag('my_element', [1, 2, 3]), wrap_as_javascript("var my_elementSparkLine = new Grafico.SparkLine($('my_element'), [1,2,3]);")
22
+ end
19
23
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andy Rossmeissl
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-27 00:00:00 -04:00
17
+ date: 2010-04-29 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20