google_visualr 2.1.4 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -96,7 +96,7 @@ PLATFORMS
96
96
  ruby
97
97
 
98
98
  DEPENDENCIES
99
- bundler (>= 1.2.1)
99
+ bundler (>= 1.1.5)
100
100
  google_visualr!
101
101
  rails (>= 3.2.8)
102
102
  rspec (>= 2.11.0)
data/README.rdoc CHANGED
@@ -96,6 +96,9 @@ Please submit all feedback, bugs and feature-requests to {GitHub Issues Tracker}
96
96
 
97
97
  = Change Log
98
98
 
99
+ <em>Version 2.1.5</em>
100
+ * {Pull Request 48}[https://github.com/winston/google_visualr/pull/48] Fixed bug with Listener event registration.
101
+
99
102
  <em>Version 2.1.4</em>
100
103
  * {Pull Request 39}[https://github.com/winston/google_visualr/pull/39] Added ability to use Listeners.
101
104
  * {Pull Request 40}[https://github.com/winston/google_visualr/pull/40] Allowed decoupling of class name and chart name.
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.required_rubygems_version = ">= 1.3.6"
16
16
  s.rubyforge_project = "google_visualr"
17
17
 
18
- s.add_development_dependency "bundler", ">= 1.2.1"
18
+ s.add_development_dependency "bundler", ">= 1.1.5"
19
19
  s.add_development_dependency "rspec" , ">= 2.11.0"
20
20
  s.add_development_dependency "rails" , ">= 3.2.8"
21
21
 
@@ -37,10 +37,10 @@ module GoogleVisualr
37
37
  js << "\n google.load('visualization','1', {packages: ['#{package_name}'], callback: function() {"
38
38
  js << "\n #{@data_table.to_js}"
39
39
  js << "\n var chart = new google.visualization.#{chart_name}(document.getElementById('#{element_id}'));"
40
- js << "\n chart.draw(data_table, #{js_parameters(@options)});"
41
40
  @listeners.each do |listener|
42
41
  js << "\n google.visualization.events.addListener(chart, '#{listener[:event]}', #{listener[:callback]});"
43
42
  end
43
+ js << "\n chart.draw(data_table, #{js_parameters(@options)});"
44
44
  js << "\n }});"
45
45
  js << "\n</script>"
46
46
  js
@@ -1,3 +1,3 @@
1
1
  module GoogleVisualr
2
- VERSION = "2.1.4"
2
+ VERSION = "2.1.5"
3
3
  end
@@ -30,8 +30,8 @@ def base_chart_with_listener_js(div_class="div_class")
30
30
  js = "\n<script type='text/javascript'>"
31
31
  js << "\n google.load('visualization','1', {packages: ['basechart'], callback: function() {"
32
32
  js << "\n var data_table = new google.visualization.DataTable();data_table.addColumn('string', 'Year');data_table.addColumn('number', 'Sales');data_table.addColumn('number', 'Expenses');data_table.addRow([{v: '2004'}, {v: 1000}, {v: 400}]);data_table.addRow([{v: '2005'}, {v: 1200}, {v: 450}]);data_table.addRow([{v: '2006'}, {v: 1500}, {v: 600}]);data_table.addRow([{v: '2007'}, {v: 800}, {v: 500}]);\n var chart = new google.visualization.BaseChart(document.getElementById('#{div_class}'));"
33
- js << "\n chart.draw(data_table, {legend: 'Test Chart', width: 800, is3D: true});"
34
33
  js << "\n google.visualization.events.addListener(chart, 'select', function() {test_event(chart);});"
34
+ js << "\n chart.draw(data_table, {legend: 'Test Chart', width: 800, is3D: true});"
35
35
  js << "\n }});"
36
36
  js << "\n</script>"
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_visualr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-16 00:00:00.000000000 Z
12
+ date: 2012-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.2.1
21
+ version: 1.1.5
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 1.2.1
29
+ version: 1.1.5
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement