graphgraph 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb7c57a8073913270d48a963711c25c688bcd116
4
- data.tar.gz: b36db576f61310dcef8bb479ea0f43dc049bf2dd
3
+ metadata.gz: 74e772d28fc6176cd71d10dce5911f9f37139b18
4
+ data.tar.gz: 3a8f87f52c1d877cbb40e47aba149741cc4c9dba
5
5
  SHA512:
6
- metadata.gz: 065955c35aa6243de072cbb112a278b8fbdce6ff0efeb09090513b00d22cbdc38995a1e9d897a9122ceceaefda2d9a9f0a68299e494303e9b2c1a30e031b4955
7
- data.tar.gz: b8584364930b8a0110390693066b8d580b226be27992f93a952e2b3613937029d8d84196ea785cdeb41a6e99aa424d74913ed8f85e68a6b222509f7a2a11970f
6
+ metadata.gz: 3c2504fdd6162141cef59e4d2bf1dd980c914482a75c3f7b945c2a204f6128d375a422966551e171bd60afcee39827c19465400c386f5b4e308d768e2d5f527c
7
+ data.tar.gz: a28ed2dc32ee6900657ff723c6c90e074e0100b4febd907e45aedbf010e50cbad51d7fa18bd77262602702a56947b237361597b71eb85de655426438fe9306a7
Binary file
@@ -217,7 +217,8 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
217
217
  end
218
218
 
219
219
  def set_user_template
220
- @foruser="<%= form_tag(\"/replace_with_current_model/graphgraph\", method: \"get\") do %>
220
+ current_model_path=<%= @scope.capitalize %>.to_s.downcase + "s"
221
+ @foruserencode=CGI.escapeHTML("<%= form_tag(\"/#{current_model_path}/graphgraph\", method: \"get\") do %>
221
222
  <input type=\"text\" name=\"graphtype\" id=\"graphtype\" value=\"#{params[:graphtype]}\" hidden>
222
223
  <input type=\"text\" name=\"yaxis\" id=\"yaxis\" value=\"#{params[:yaxis]}\" hidden>
223
224
  <input type=\"text\" name=\"xaxis\" id=\"xaxis\" value=\"#{params[:xaxis]}\" hidden>
@@ -271,7 +272,8 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
271
272
  <% if (\"#{params[:graphtype]}\"==\"Scatter Graph\") %>
272
273
  <%= high_chart(\"my_scatter_div\", newchart) %>
273
274
  <% end %>
274
- <% end %>"
275
+ <% end %>")
276
+ @foruser=CGI.unescapeHTML(@foruserencode)
275
277
  end
276
278
 
277
279
  def get_counts(dateValue,pluckValue,startvalue,endvalue)
@@ -1,3 +1,3 @@
1
1
  module Graphgraph
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphgraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suhas Shrestha
@@ -172,6 +172,7 @@ files:
172
172
  - graphgraph-0.2.0.gem
173
173
  - graphgraph-0.3.0.gem
174
174
  - graphgraph-0.4.0.gem
175
+ - graphgraph-0.5.0.gem
175
176
  - graphgraph.gemspec
176
177
  - lib/generators/graphgraph/controllers_generator.rb
177
178
  - lib/generators/graphgraph/install_generator.rb