googlecharts 1.6.2 → 1.6.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.2
1
+ 1.6.3
data/googlecharts.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{googlecharts}
8
- s.version = "1.6.2"
8
+ s.version = "1.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Aimonetti"]
12
- s.date = %q{2011-04-13}
12
+ s.date = %q{2011-05-05}
13
13
  s.description = %q{Generate charts using Google API & Ruby}
14
14
  s.email = %q{mattaimonetti@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -56,16 +56,10 @@ Gem::Specification.new do |s|
56
56
  ]
57
57
  s.homepage = %q{http://googlecharts.rubyforge.org/}
58
58
  s.require_paths = ["lib"]
59
- s.rubygems_version = %q{1.3.7}
59
+ s.rubygems_version = %q{1.6.2}
60
60
  s.summary = %q{Generate charts using Google API & Ruby}
61
- s.test_files = [
62
- "spec/gchart_spec.rb",
63
- "spec/spec_helper.rb",
64
- "spec/theme_spec.rb"
65
- ]
66
61
 
67
62
  if s.respond_to? :specification_version then
68
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
69
63
  s.specification_version = 3
70
64
 
71
65
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
data/lib/gchart.rb CHANGED
@@ -397,7 +397,7 @@ class Gchart
397
397
  # or
398
398
  # Gchart.line(:legend => ['first label', 'last label'])
399
399
  def set_legend
400
- if type.to_s =~ /pie|pie_3d|meter/
400
+ if type.to_s =~ /meter/
401
401
  @labels = legend
402
402
  return set_labels
403
403
  end
data/spec/gchart_spec.rb CHANGED
@@ -180,10 +180,9 @@ describe "generating a default Gchart" do
180
180
  end
181
181
 
182
182
  it 'should generate different labels and legend' do
183
- Gchart.line(:legend => %w(1 2 3), :labels=>%w(one two three)).should(include('chdl=1|2|3'))
184
- Gchart.line(:legend => %w(1 2 3), :labels=>%w(one two three)).should(include('chl=one|two|three'))
183
+ Gchart.pie(:legend => %w(1 2 3), :labels=>%w(one two three)).should(include('chdl=1|2|3') && include('chl=one|two|three'))
185
184
  end
186
-
185
+
187
186
  end
188
187
 
189
188
  describe "generating different type of charts" do
@@ -520,12 +519,6 @@ describe "a 3d pie chart" do
520
519
  Gchart.pie_3d(:title => @title, :legend => @legend, :data => @data).include?('cht=p3').should be_true
521
520
  end
522
521
 
523
- it "should be able to set labels by using the legend or labesl accessor" do
524
- Gchart.pie_3d(:title => @title, :legend => @legend, :data => @data).should include("chl=#{@jstized_legend}")
525
- Gchart.pie_3d(:title => @title, :labels => @legend, :data => @data).should include("chl=#{@jstized_legend}")
526
- Gchart.pie_3d(:title => @title, :labels => @legend, :data => @data).should == Gchart.pie_3d(:title => @title, :legend => @legend, :data => @data)
527
- end
528
-
529
522
  end
530
523
 
531
524
  describe "a google-o-meter" do
@@ -546,6 +539,11 @@ describe "a google-o-meter" do
546
539
  Gchart.meter(:bg => {:color => 'efefef', :type => 'solid'}).include?("chf=bg,s,efefef").should be_true
547
540
  end
548
541
 
542
+ it "should be able to set labels by using the legend or labesl accessor" do
543
+ Gchart.meter(:title => @title, :labels => @legend, :data => @data).should include("chl=#{@jstized_legend}")
544
+ Gchart.meter(:title => @title, :labels => @legend, :data => @data).should == Gchart.meter(:title => @title, :legend => @legend, :data => @data)
545
+ end
546
+
549
547
  end
550
548
 
551
549
  describe "a map chart" do
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googlecharts
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 6
8
- - 2
9
- version: 1.6.2
4
+ prerelease:
5
+ version: 1.6.3
10
6
  platform: ruby
11
7
  authors:
12
8
  - Matt Aimonetti
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-04-13 00:00:00 -07:00
13
+ date: 2011-05-05 00:00:00 -07:00
18
14
  default_executable:
19
15
  dependencies: []
20
16
 
@@ -78,25 +74,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
74
  requirements:
79
75
  - - ">="
80
76
  - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
77
  version: "0"
84
78
  required_rubygems_version: !ruby/object:Gem::Requirement
85
79
  none: false
86
80
  requirements:
87
81
  - - ">="
88
82
  - !ruby/object:Gem::Version
89
- segments:
90
- - 0
91
83
  version: "0"
92
84
  requirements: []
93
85
 
94
86
  rubyforge_project:
95
- rubygems_version: 1.3.7
87
+ rubygems_version: 1.6.2
96
88
  signing_key:
97
89
  specification_version: 3
98
90
  summary: Generate charts using Google API & Ruby
99
- test_files:
100
- - spec/gchart_spec.rb
101
- - spec/spec_helper.rb
102
- - spec/theme_spec.rb
91
+ test_files: []
92
+