google_visualr 2.1.7 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4735ff69e1b8c6fa692cc4f5021c53c4e669f0da
4
+ data.tar.gz: e892daca0c60ed26d52100a0690a352d3ac66fa8
5
+ SHA512:
6
+ metadata.gz: 28e9838bf7f691acfb1d3898468216c79d37b8d46cc5007e2e8a0c5794c57cb2e917fdfebe7a0b3152880e86877aa5fb5bebb59cf5003585e444685684713562
7
+ data.tar.gz: 3b78441e5b0bc0b3263cb04ca2b6eb8b83b251b28daf288d6092d758cd49c102591a26ba77ac2a91d1a0e6751ce423fe48d111aa948f7accd401ad50514a6b36
data/README.rdoc CHANGED
@@ -10,7 +10,7 @@ Good for any Ruby on Rails setup whereby you prefer to work your logic in models
10
10
 
11
11
  Please refer to the {GoogleVisualr API Reference site}[http://googlevisualr.heroku.com/] for a complete list of Google charts that you can create with GoogleVisualr.
12
12
 
13
- == The Gist
13
+ == tl:dr
14
14
 
15
15
  * In your model or controller, write Ruby code to create your chart (e.g. Area Chart, Bar Chart, even Spark Lines etc).
16
16
  * Configure your chart with any of the options as listed in Google Chart Tools' API Docs. E.g. {Area Chart's Configuration Options}[http://code.google.com/apis/chart/interactive/docs/gallery/areachart.html#Configuration_Options].
@@ -23,31 +23,15 @@ GoogleVisualr is created solely for the aim of simplifying the display of a char
23
23
 
24
24
  Hence, do note that GoogleVisualr is not a 100% complete wrapper for Google Chart Tools.
25
25
 
26
- For example, Methods and Events as described in Google Chart Tools' API Docs, for use after a chart has been rendered, are not implemented because they felt more native being written as JavaScript functions, within views or .js files.
26
+ For example, Methods and Events as described in Google Chart Tools' API Docs - for use after a chart has been rendered, are not implemented because they feel more natural being written as JavaScript functions, within views or .js files.
27
27
 
28
- == Differences Between Gem and Plugin
29
-
30
- Gem
31
- * is Rails 3 compatible.
32
- * implements many of the newer versions of Google Charts E.g. Core Charts.
33
- * enjoyed a major refactoring, and also now has Tests!
34
-
35
- Plugin
36
- * has not been tested for Rails 3 compatibility
37
- * implements the older versions of Google Charts.
38
- * has deprecated methods.
39
-
40
- This gem, however, is not a drop-in replacement for the plugin, as there are numerous changes in its usage.
41
-
42
- Notably, you will have to interact mostly with GoogleVisualr::DataTable which was absent in the plugin.
43
-
44
- = Install
28
+ == Install
45
29
 
46
30
  Assuming you are on Rails 3, include the gem in your Gemfile.
47
31
 
48
32
  gem "google_visualr", ">= 2.1"
49
33
 
50
- = Basics
34
+ == Basics
51
35
 
52
36
  This section describes a basic implementation of the GoogleVisualr::DataTable and GoogleVisualr::AreaChart classes.
53
37
 
@@ -57,7 +41,7 @@ For detailed documentation and advanced implementations, please refer to the {Go
57
41
 
58
42
  In your Rails layout, load Google Ajax API in the head tag, at the very top.
59
43
 
60
- <script src='http://www.google.com/jsapi'></script>
44
+ <script src='https://www.google.com/jsapi'></script>
61
45
 
62
46
  In your Rails controller, initialize a GoogleVisualr::DataTable object with an empty constructor.
63
47
 
@@ -88,13 +72,21 @@ In your Rails view, render the Google chart.
88
72
  <div id='chart'></div>
89
73
  <%= render_chart(@chart, 'chart') %>
90
74
 
91
- = Support
92
-
93
- Please feel free to fork the project, make improvements or bug fixes and submit pull requests. Ideally, all pull requests should also come with tests!
75
+ == Support
94
76
 
95
77
  Please submit all feedback, bugs and feature-requests to {GitHub Issues Tracker}[http://github.com/winston/google_visualr/issues].
96
78
 
97
- = Change Log
79
+ Feel free to fork the project, make improvements or bug fixes and submit pull requests (with tests!).
80
+
81
+ == Who's Using GoogleVisualr?
82
+
83
+ I would like to collect some data about who's using this Gem. {Please drop me a line}[mailto:winstonyw+googlevisualr@gmail.com] and I may put up the link here.
84
+
85
+ == Change Log
86
+
87
+ <em>Version 2.1.8</em>
88
+ * {Issue 45}[https://github.com/winston/google_visualr/issues/45] Support for redrawing chart from JS.
89
+
98
90
 
99
91
  <em>Version 2.1.7</em>
100
92
  * {Issue 56}[https://github.com/winston/google_visualr/issues/56] Typecast to proper JSON strings.
@@ -124,12 +116,28 @@ Please submit all feedback, bugs and feature-requests to {GitHub Issues Tracker}
124
116
  <em>Version 2.1.0</em>
125
117
  * Added +#render_chart+ as a helper method in Rails views.
126
118
 
127
- = Author
119
+ == Differences Between Gem and Plugin
120
+
121
+ Gem
122
+ * is Rails 3 compatible.
123
+ * implements many of the newer versions of Google Charts E.g. Core Charts.
124
+ * enjoyed a major refactoring, and also now has Tests!
125
+
126
+ Plugin
127
+ * has not been tested for Rails 3 compatibility
128
+ * implements the older versions of Google Charts.
129
+ * has deprecated methods.
130
+
131
+ This gem, however, is not a drop-in replacement for the plugin, as there are numerous changes in its usage.
132
+
133
+ Notably, you will have to interact mostly with GoogleVisualr::DataTable which was absent in the plugin.
134
+
135
+ == Author
128
136
 
129
137
  GoogleVisualr is maintained by {Winston Teo}[mailto:winstonyw+googlevisualr@gmail.com].
130
138
 
131
139
  Who is Winston Teo? {You should follow Winston on Twitter}[http://www.twitter.com/winstonyw], or find out more on {WinstonYW}[http://www.winstonyw.com] and {LinkedIn}[http://sg.linkedin.com/in/winstonyw].
132
140
 
133
- = License
141
+ == License
134
142
 
135
143
  Copyright © 2012 Winston Teo Yong Wei. Free software, released under the MIT license.
@@ -16,6 +16,10 @@ module GoogleVisualr
16
16
  class_name
17
17
  end
18
18
 
19
+ def chart_function_name(element_id)
20
+ "draw_#{element_id.gsub('-', '_')}"
21
+ end
22
+
19
23
  def options
20
24
  @options
21
25
  end
@@ -32,20 +36,22 @@ module GoogleVisualr
32
36
  #
33
37
  # Parameters:
34
38
  # *div_id [Required] The ID of the DIV element that the Google Chart should be rendered in.
39
+
35
40
  def to_js(element_id)
36
41
  js = "\n<script type='text/javascript'>"
37
- js << "\n google.load('visualization','1', {packages: ['#{package_name}'], callback: function() {"
42
+ js << "\n google.load('visualization','1', {packages: ['#{package_name}']});"
43
+ js << "\n google.setOnLoadCallback(#{chart_function_name(element_id)});"
44
+ js << "\n function #{chart_function_name(element_id)}() {"
38
45
  js << "\n #{@data_table.to_js}"
39
46
  js << "\n var chart = new google.visualization.#{chart_name}(document.getElementById('#{element_id}'));"
40
47
  @listeners.each do |listener|
41
48
  js << "\n google.visualization.events.addListener(chart, '#{listener[:event]}', #{listener[:callback]});"
42
49
  end
43
50
  js << "\n chart.draw(data_table, #{js_parameters(@options)});"
44
- js << "\n }});"
51
+ js << "\n };"
45
52
  js << "\n</script>"
46
53
  js
47
54
  end
48
-
49
55
  end
50
56
 
51
57
  end
@@ -17,15 +17,13 @@ module GoogleVisualr
17
17
  end
18
18
 
19
19
  module ImageChart
20
- include GoogleVisualr::ParamHelpers
21
-
22
20
  def package_name
23
21
  "image#{self.class.to_s.split("::").last.downcase}"
24
22
  end
25
23
  def class_name
26
24
  "Image#{self.class.to_s.split('::').last}"
27
25
  end
28
-
26
+
29
27
  # Set defaults according to http://code.google.com/apis/chart/interactive/docs/gallery/genericimagechart.html#Configuration_Options
30
28
  IMAGE_DEFAULTS = {
31
29
  # Automatic Scaling
@@ -48,17 +46,17 @@ module GoogleVisualr
48
46
 
49
47
  # backgroundColor
50
48
  query_params[:chf] = "bg,s," + options["backgroundColor"].gsub(/#/, '') if options["backgroundColor"]
51
-
49
+
52
50
  # color, colors ('color' param is ignored if 'colors' is present)
53
51
  if options["colors"]
54
52
  query_params[:chco] = options["colors"].join(',').gsub(/#/, '')
55
53
  elsif options["color"]
56
54
  query_params[:chco] = options["color"].gsub(/#/, '')
57
55
  end
58
-
56
+
59
57
  # fill (this will often not look good - better for user to override this parameter)
60
58
  query_params[:chm] = "B,#{query_params[:chco].split(',').first},0,0,0" if options["fill"] && query_params[:chco]
61
-
59
+
62
60
  # firstHiddenColumn, singleColumnDisplay, data
63
61
  firstHiddenColumn = options["firstHiddenColumn"] ? options["firstHiddenColumn"] : data_table.cols.size - 1
64
62
  query_params[:chd] = "t:"
@@ -70,7 +68,7 @@ module GoogleVisualr
70
68
  else
71
69
  query_params[:chd] += data_dable.get_column(options["singleColumnDisplay"])
72
70
  end
73
-
71
+
74
72
  # height, width
75
73
  if options["height"] && options["width"]
76
74
  query_params[:chs] = "#{options["width"]}x#{options["height"]}"
@@ -87,7 +85,7 @@ module GoogleVisualr
87
85
  query_params.delete(:chdlp)
88
86
  query_params.delete(:chdl)
89
87
  end
90
-
88
+
91
89
  # min, max, valueLabelsInterval (works as long as :chxt => "x,y" and both 'min' and 'max' are set)
92
90
  if options["min"] && options["max"]
93
91
  query_params[:chxr] = "1,#{options['min']},#{options['max']}"
@@ -106,7 +104,6 @@ module GoogleVisualr
106
104
  URI.parse(base_url + query)
107
105
  end
108
106
  end
109
-
110
107
  end
111
108
 
112
- end
109
+ end
@@ -1,3 +1,3 @@
1
1
  module GoogleVisualr
2
- VERSION = "2.1.7"
2
+ VERSION = "2.1.8"
3
3
  end
@@ -14,6 +14,22 @@ describe GoogleVisualr::BaseChart do
14
14
  end
15
15
  end
16
16
 
17
+ describe "#chart_name" do
18
+ it "returns class name (less module)" do
19
+ @chart.chart_name.should == "BaseChart"
20
+ end
21
+ end
22
+
23
+ describe "#chart_function_name" do
24
+ it "returns a function name that is used to draw the chart in JS" do
25
+ @chart.chart_function_name("base_chart").should == "draw_base_chart"
26
+ end
27
+
28
+ it "handles 'dashes' in element id" do
29
+ @chart.chart_function_name("base-chart").should == "draw_base_chart"
30
+ end
31
+ end
32
+
17
33
  describe "#options=" do
18
34
  it "works" do
19
35
  @chart.options = { :legend => "Awesome Chart", :width => 1000, :is3D => false }
@@ -18,20 +18,24 @@ def base_chart(data_table=data_table)
18
18
  end
19
19
 
20
20
  def base_chart_js(div_class="div_class")
21
- js = "\n<script type='text/javascript'>"
22
- js << "\n google.load('visualization','1', {packages: ['basechart'], callback: function() {"
21
+ js = "\n<script type='text/javascript'>"
22
+ js << "\n google.load('visualization','1', {packages: ['basechart']});"
23
+ js << "\n google.setOnLoadCallback(draw_#{div_class});"
24
+ js << "\n function draw_#{div_class}() {"
23
25
  js << "\n var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Year\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Sales\"});data_table.addColumn({\"type\":\"number\",\"label\":\"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}'));"
24
26
  js << "\n chart.draw(data_table, {legend: \"Test Chart\", width: 800, is3D: true});"
25
- js << "\n }});"
27
+ js << "\n };"
26
28
  js << "\n</script>"
27
29
  end
28
30
 
29
31
  def base_chart_with_listener_js(div_class="div_class")
30
- js = "\n<script type='text/javascript'>"
31
- js << "\n google.load('visualization','1', {packages: ['basechart'], callback: function() {"
32
+ js = "\n<script type='text/javascript'>"
33
+ js << "\n google.load('visualization','1', {packages: ['basechart']});"
34
+ js << "\n google.setOnLoadCallback(draw_#{div_class});"
35
+ js << "\n function draw_#{div_class}() {"
32
36
  js << "\n var data_table = new google.visualization.DataTable();data_table.addColumn({\"type\":\"string\",\"label\":\"Year\"});data_table.addColumn({\"type\":\"number\",\"label\":\"Sales\"});data_table.addColumn({\"type\":\"number\",\"label\":\"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
37
  js << "\n google.visualization.events.addListener(chart, 'select', function() {test_event(chart);});"
34
38
  js << "\n chart.draw(data_table, {legend: \"Test Chart\", width: 800, is3D: true});"
35
- js << "\n }});"
39
+ js << "\n };"
36
40
  js << "\n</script>"
37
41
  end
metadata CHANGED
@@ -1,49 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_visualr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
5
- prerelease:
4
+ version: 2.1.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Winston Teo
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-24 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
- requirement: &70327695181240 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 1.1.5
19
+ version: 1.3.5
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *70327695181240
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.3.5
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rspec
27
- requirement: &70327695180740 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
- version: 2.11.0
33
+ version: 2.14.1
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70327695180740
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.14.1
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rails
38
- requirement: &70327695179980 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
- version: 3.2.8
47
+ version: '3.2'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70327695179980
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
47
55
  description: This Ruby gem, GoogleVisualr, is a wrapper around the Google Chart Tools
48
56
  that allows anyone to create the same beautiful charts with just Ruby; you don't
49
57
  have to write any JavaScript at all.
@@ -51,21 +59,8 @@ email:
51
59
  - winston.yongwei+google_visualr@gmail.com
52
60
  executables: []
53
61
  extensions: []
54
- extra_rdoc_files:
55
- - README.rdoc
62
+ extra_rdoc_files: []
56
63
  files:
57
- - .gitignore
58
- - .rspec
59
- - .rvmrc
60
- - .travis.yml
61
- - CHANGELOG
62
- - Gemfile
63
- - Gemfile.lock
64
- - MIT-LICENSE
65
- - README.rdoc
66
- - Rakefile
67
- - google_visualr.gemspec
68
- - lib/google_visualr.rb
69
64
  - lib/google_visualr/app/helpers/view_helper.rb
70
65
  - lib/google_visualr/app/railtie.rb
71
66
  - lib/google_visualr/base_chart.rb
@@ -98,13 +93,13 @@ files:
98
93
  - lib/google_visualr/packages.rb
99
94
  - lib/google_visualr/param_helpers.rb
100
95
  - lib/google_visualr/version.rb
101
- - spec/dummy/Gemfile
102
- - spec/dummy/Gemfile.lock
103
- - spec/dummy/Rakefile
96
+ - lib/google_visualr.rb
97
+ - MIT-LICENSE
98
+ - Rakefile
99
+ - README.rdoc
104
100
  - spec/dummy/app/controllers/application_controller.rb
105
101
  - spec/dummy/app/helpers/application_helper.rb
106
102
  - spec/dummy/app/views/layouts/application.html.erb
107
- - spec/dummy/config.ru
108
103
  - spec/dummy/config/application.rb
109
104
  - spec/dummy/config/boot.rb
110
105
  - spec/dummy/config/database.yml
@@ -119,9 +114,11 @@ files:
119
114
  - spec/dummy/config/initializers/session_store.rb
120
115
  - spec/dummy/config/locales/en.yml
121
116
  - spec/dummy/config/routes.rb
117
+ - spec/dummy/config.ru
122
118
  - spec/dummy/db/seeds.rb
123
119
  - spec/dummy/doc/README_FOR_APP
124
- - spec/dummy/lib/tasks/.gitkeep
120
+ - spec/dummy/Gemfile
121
+ - spec/dummy/Gemfile.lock
125
122
  - spec/dummy/log/development.log
126
123
  - spec/dummy/log/production.log
127
124
  - spec/dummy/log/server.log
@@ -139,11 +136,10 @@ files:
139
136
  - spec/dummy/public/javascripts/prototype.js
140
137
  - spec/dummy/public/javascripts/rails.js
141
138
  - spec/dummy/public/robots.txt
142
- - spec/dummy/public/stylesheets/.gitkeep
139
+ - spec/dummy/Rakefile
143
140
  - spec/dummy/script/rails
144
141
  - spec/dummy/test/performance/browsing_test.rb
145
142
  - spec/dummy/test/test_helper.rb
146
- - spec/dummy/vendor/plugins/.gitkeep
147
143
  - spec/google_visualr/app/helpers/view_helper_spec.rb
148
144
  - spec/google_visualr/base_chart_spec.rb
149
145
  - spec/google_visualr/data_table_spec.rb
@@ -154,27 +150,77 @@ files:
154
150
  - spec/support/common.rb
155
151
  homepage: https://github.com/winston/google_visualr
156
152
  licenses: []
153
+ metadata: {}
157
154
  post_install_message:
158
155
  rdoc_options: []
159
156
  require_paths:
160
157
  - lib
161
158
  required_ruby_version: !ruby/object:Gem::Requirement
162
- none: false
163
159
  requirements:
164
- - - ! '>='
160
+ - - '>='
165
161
  - !ruby/object:Gem::Version
166
162
  version: '0'
167
163
  required_rubygems_version: !ruby/object:Gem::Requirement
168
- none: false
169
164
  requirements:
170
- - - ! '>='
165
+ - - '>='
171
166
  - !ruby/object:Gem::Version
172
- version: 1.3.6
167
+ version: '0'
173
168
  requirements: []
174
- rubyforge_project: google_visualr
175
- rubygems_version: 1.8.17
169
+ rubyforge_project:
170
+ rubygems_version: 2.0.3
176
171
  signing_key:
177
- specification_version: 3
172
+ specification_version: 4
178
173
  summary: A Ruby wrapper around the Google Chart Tools that allows anyone to create
179
174
  the same beautiful charts with just plain Ruby.
180
- test_files: []
175
+ test_files:
176
+ - spec/dummy/app/controllers/application_controller.rb
177
+ - spec/dummy/app/helpers/application_helper.rb
178
+ - spec/dummy/app/views/layouts/application.html.erb
179
+ - spec/dummy/config/application.rb
180
+ - spec/dummy/config/boot.rb
181
+ - spec/dummy/config/database.yml
182
+ - spec/dummy/config/environment.rb
183
+ - spec/dummy/config/environments/development.rb
184
+ - spec/dummy/config/environments/production.rb
185
+ - spec/dummy/config/environments/test.rb
186
+ - spec/dummy/config/initializers/backtrace_silencers.rb
187
+ - spec/dummy/config/initializers/inflections.rb
188
+ - spec/dummy/config/initializers/mime_types.rb
189
+ - spec/dummy/config/initializers/secret_token.rb
190
+ - spec/dummy/config/initializers/session_store.rb
191
+ - spec/dummy/config/locales/en.yml
192
+ - spec/dummy/config/routes.rb
193
+ - spec/dummy/config.ru
194
+ - spec/dummy/db/seeds.rb
195
+ - spec/dummy/doc/README_FOR_APP
196
+ - spec/dummy/Gemfile
197
+ - spec/dummy/Gemfile.lock
198
+ - spec/dummy/log/development.log
199
+ - spec/dummy/log/production.log
200
+ - spec/dummy/log/server.log
201
+ - spec/dummy/log/test.log
202
+ - spec/dummy/public/404.html
203
+ - spec/dummy/public/422.html
204
+ - spec/dummy/public/500.html
205
+ - spec/dummy/public/favicon.ico
206
+ - spec/dummy/public/images/rails.png
207
+ - spec/dummy/public/index.html
208
+ - spec/dummy/public/javascripts/application.js
209
+ - spec/dummy/public/javascripts/controls.js
210
+ - spec/dummy/public/javascripts/dragdrop.js
211
+ - spec/dummy/public/javascripts/effects.js
212
+ - spec/dummy/public/javascripts/prototype.js
213
+ - spec/dummy/public/javascripts/rails.js
214
+ - spec/dummy/public/robots.txt
215
+ - spec/dummy/Rakefile
216
+ - spec/dummy/script/rails
217
+ - spec/dummy/test/performance/browsing_test.rb
218
+ - spec/dummy/test/test_helper.rb
219
+ - spec/google_visualr/app/helpers/view_helper_spec.rb
220
+ - spec/google_visualr/base_chart_spec.rb
221
+ - spec/google_visualr/data_table_spec.rb
222
+ - spec/google_visualr/formatters_spec.rb
223
+ - spec/google_visualr/image_charts_spec.rb
224
+ - spec/google_visualr/param_helpers_spec.rb
225
+ - spec/spec_helper.rb
226
+ - spec/support/common.rb
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- pkg/*
2
- *.gem
3
- .bundle
4
- .idea
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --colour
2
- --format nested
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use ruby-1.9.3-p327@google_visualr --create
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- rvm:
2
- - 1.9.2
3
- - 1.9.3
4
-
5
- branches:
6
- only:
7
- - master
8
-
data/CHANGELOG DELETED
File without changes
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source :gemcutter
2
-
3
- # Specify your gem's dependencies in gv.gemspec
4
- gemspec
data/Gemfile.lock DELETED
@@ -1,102 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- google_visualr (2.1.7)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- actionmailer (3.2.8)
10
- actionpack (= 3.2.8)
11
- mail (~> 2.4.4)
12
- actionpack (3.2.8)
13
- activemodel (= 3.2.8)
14
- activesupport (= 3.2.8)
15
- builder (~> 3.0.0)
16
- erubis (~> 2.7.0)
17
- journey (~> 1.0.4)
18
- rack (~> 1.4.0)
19
- rack-cache (~> 1.2)
20
- rack-test (~> 0.6.1)
21
- sprockets (~> 2.1.3)
22
- activemodel (3.2.8)
23
- activesupport (= 3.2.8)
24
- builder (~> 3.0.0)
25
- activerecord (3.2.8)
26
- activemodel (= 3.2.8)
27
- activesupport (= 3.2.8)
28
- arel (~> 3.0.2)
29
- tzinfo (~> 0.3.29)
30
- activeresource (3.2.8)
31
- activemodel (= 3.2.8)
32
- activesupport (= 3.2.8)
33
- activesupport (3.2.8)
34
- i18n (~> 0.6)
35
- multi_json (~> 1.0)
36
- arel (3.0.2)
37
- builder (3.0.3)
38
- diff-lcs (1.1.3)
39
- erubis (2.7.0)
40
- hike (1.2.1)
41
- i18n (0.6.1)
42
- journey (1.0.4)
43
- json (1.7.5)
44
- mail (2.4.4)
45
- i18n (>= 0.4.0)
46
- mime-types (~> 1.16)
47
- treetop (~> 1.4.8)
48
- mime-types (1.19)
49
- multi_json (1.3.6)
50
- polyglot (0.3.3)
51
- rack (1.4.1)
52
- rack-cache (1.2)
53
- rack (>= 0.4)
54
- rack-ssl (1.3.2)
55
- rack
56
- rack-test (0.6.2)
57
- rack (>= 1.0)
58
- rails (3.2.8)
59
- actionmailer (= 3.2.8)
60
- actionpack (= 3.2.8)
61
- activerecord (= 3.2.8)
62
- activeresource (= 3.2.8)
63
- activesupport (= 3.2.8)
64
- bundler (~> 1.0)
65
- railties (= 3.2.8)
66
- railties (3.2.8)
67
- actionpack (= 3.2.8)
68
- activesupport (= 3.2.8)
69
- rack-ssl (~> 1.3.2)
70
- rake (>= 0.8.7)
71
- rdoc (~> 3.4)
72
- thor (>= 0.14.6, < 2.0)
73
- rake (0.9.2.2)
74
- rdoc (3.12)
75
- json (~> 1.4)
76
- rspec (2.11.0)
77
- rspec-core (~> 2.11.0)
78
- rspec-expectations (~> 2.11.0)
79
- rspec-mocks (~> 2.11.0)
80
- rspec-core (2.11.1)
81
- rspec-expectations (2.11.3)
82
- diff-lcs (~> 1.1.3)
83
- rspec-mocks (2.11.3)
84
- sprockets (2.1.3)
85
- hike (~> 1.2)
86
- rack (~> 1.0)
87
- tilt (~> 1.1, != 1.3.0)
88
- thor (0.16.0)
89
- tilt (1.3.3)
90
- treetop (1.4.11)
91
- polyglot
92
- polyglot (>= 0.3.1)
93
- tzinfo (0.3.33)
94
-
95
- PLATFORMS
96
- ruby
97
-
98
- DEPENDENCIES
99
- bundler (>= 1.1.5)
100
- google_visualr!
101
- rails (>= 3.2.8)
102
- rspec (>= 2.11.0)
@@ -1,25 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path("../lib/google_visualr/version", __FILE__)
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "google_visualr"
6
- s.version = GoogleVisualr::VERSION
7
- s.platform = Gem::Platform::RUBY
8
- s.authors = ["Winston Teo"]
9
- s.email = ["winston.yongwei+google_visualr@gmail.com"]
10
- s.homepage = "https://github.com/winston/google_visualr"
11
- s.summary = "A Ruby wrapper around the Google Chart Tools that allows anyone to create the same beautiful charts with just plain Ruby."
12
- s.description = "This Ruby gem, GoogleVisualr, is a wrapper around the Google Chart Tools that allows anyone to create the same beautiful charts with just Ruby; you don't have to write any JavaScript at all."
13
- s.extra_rdoc_files = ["README.rdoc"]
14
-
15
- s.required_rubygems_version = ">= 1.3.6"
16
- s.rubyforge_project = "google_visualr"
17
-
18
- s.add_development_dependency "bundler", ">= 1.1.5"
19
- s.add_development_dependency "rspec" , ">= 2.11.0"
20
- s.add_development_dependency "rails" , ">= 3.2.8"
21
-
22
- s.files = `git ls-files`.split("\n")
23
- s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
24
- s.require_path = 'lib'
25
- end
File without changes
File without changes
File without changes