rgviz-rails 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/rails/init.rb +3 -3
  2. metadata +3 -3
data/rails/init.rb CHANGED
@@ -9,9 +9,9 @@ config.after_initialize do
9
9
  else
10
10
  model = hash[:rgviz]
11
11
  query = params[:tq]
12
- version = args[:version]
13
- reqId = args[:reqId]
14
- sig = args[:sig]
12
+ version = hash[:version]
13
+ reqId = hash[:reqId]
14
+ sig = hash[:sig]
15
15
  executor = Rgviz::Executor.new model, Rgviz::Parser.new(query).parse
16
16
  table = executor.execute
17
17
  original_render :text => "google.visualization.Query.setResponse({version:'#{version}',reqId:'#{reqId}',status:'ok',sig:'#{sig}',table:#{table.to_json}});"
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 5
9
- version: "0.5"
8
+ - 6
9
+ version: "0.6"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig