rgviz-rails 0.55 → 0.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rgviz_rails/view_helper.rb +9 -6
  2. metadata +3 -3
@@ -147,12 +147,15 @@ module Rgviz
147
147
  @defined_rgviz_append = true
148
148
  end
149
149
 
150
- # Load visualizations and the package, if not already loaded
151
- pack = get_package kind
152
- @packages ||= []
153
- unless @packages.include?(pack)
154
- out << "google.load(\"visualization\", \"1\", {'packages':['#{pack}']});\n"
155
- @packages << pack
150
+ if !options.has_key?(:load_package) || options[:load_package]
151
+ # Load visualizations and the package, if not already loaded
152
+ pack = get_package kind
153
+
154
+ @packages ||= []
155
+ unless @packages.include?(pack)
156
+ out << "google.load(\"visualization\", \"1\", {'packages':['#{pack}']});\n"
157
+ @packages << pack
158
+ end
156
159
  end
157
160
 
158
161
  callback = "rgviz_draw_#{id}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.55'
4
+ version: '0.56'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rgviz
16
- requirement: &70295143977060 !ruby/object:Gem::Requirement
16
+ requirement: &70155075504680 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70295143977060
24
+ version_requirements: *70155075504680
25
25
  description:
26
26
  email: aborenszweig@manas.com.ar
27
27
  executables: []