graphgraph 0.8.0 → 0.9.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: 622c6382f2b2b7cb1e00b72473f413410f07f4e8
4
- data.tar.gz: 17495114880d6f801c7215f413fd7d391a4cef4e
3
+ metadata.gz: 7f594b121db1bc7da68549ed05fcf476c56530b5
4
+ data.tar.gz: e4c45cc3604f226544d0c9fa78495a7843ffeeee
5
5
  SHA512:
6
- metadata.gz: eab5a026c6ec6adf6b572e00ff9b1fb34b1ca9018d8f9a8b66b6141cca041081d7ef54683c77a504caa7ff6f1c6a0ae57ec1cb16c1923bbb44653bbf06e15c7b
7
- data.tar.gz: 2f5dd73044fb0d8f6200c84bde175195af74a8065939a52ee0f04f5103020410ed14e288a21e57fa7ca64920f0c96c197aafd15fbda5448b69c89fb98d33b5c5
6
+ metadata.gz: f5b8246dc0781fb87ab9f16bdf3fd8e97fd34d277d473d45278d747169795b7344bd5f701aec3edafd232441b42b2bfc1f9e72079aae0c288bcc072a1a836c89
7
+ data.tar.gz: 048b90e327d54bdcc128f480000e9f3a7cf9a2dd6ddd8ffa1461e00897e5ef89b7d51d16f462175348694bdd79a8bbcc69adef65e381cd40d9566f3159d0592e
Binary file
@@ -4,7 +4,7 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
4
4
  @scopeName= <%= @scope.capitalize %>
5
5
  @testData= <%= @scope.capitalize %>.all
6
6
  @columnNames = <%= @scope.capitalize %>.column_names
7
- @columnHash = %= @scope.capitalize %>.columns_hash.each {|k,v| puts "#{k} => #{v.type}"}
7
+ @columnHash = <%= @scope.capitalize %>.columns_hash.each {|k,v| puts "#{k} => #{v.type}"}
8
8
  @selectoptions =[]
9
9
  @columnNames.each do |c|
10
10
  @selectoptions << c.to_s + " : " + @columnHash[c].type.to_s
@@ -28,7 +28,8 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
28
28
  set_areagraph
29
29
  set_scattergraph
30
30
  @mainchart=@chartline||@chartbar||@chartarea||@chartscatter
31
- redirect_to <%= @scope.capitalize %>s_path(options: @mainchart.objects.to_s, placeholder: @mainchart.placeholder.to_s, series_data: @mainchart.series_data.to_s)
31
+ #comment out below line and enter the user page path
32
+ # redirect_to replace_with_user_page_path(options: @mainchart.objects.to_s, placeholder: @mainchart.placeholder.to_s, series_data: @mainchart.series_data.to_s)
32
33
  end
33
34
  end
34
35
 
@@ -217,8 +218,8 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
217
218
  end
218
219
 
219
220
  def set_user_template
220
- current_model_path=<%= @scope.capitalize %>.to_s.downcase + "s"
221
- @foruserencode="&lt;%= form_tag(\"/#{current_model_path}/graphgraph\", method: \"get\") do %&gt;
221
+ #relplace the "replace_with_current_model" with your model name in plural
222
+ @foruserencode="&lt;%= form_tag(\"/replace_with_current_model/graphgraph\", method: \"get\") do %&gt;
222
223
  &lt;input type=\"text\" name=\"graphtype\" id=\"graphtype\" value=\"#{params[:graphtype]}\" hidden&gt;
223
224
  &lt;input type=\"text\" name=\"yaxis\" id=\"yaxis\" value=\"#{params[:yaxis]}\" hidden&gt;
224
225
  &lt;input type=\"text\" name=\"xaxis\" id=\"xaxis\" value=\"#{params[:xaxis]}\" hidden&gt;
@@ -273,7 +274,8 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
273
274
  &lt;%= high_chart(\"my_scatter_div\", newchart) %&gt;
274
275
  &lt;% end %&gt;
275
276
  &lt;% end %&gt;"
276
- # @foruser=CGI.unescapeHTML(@foruserencode) comment out after install
277
+ # comment out the below line after install
278
+ # @foruser=CGI.unescapeHTML(@foruserencode)
277
279
  end
278
280
 
279
281
  def get_counts(dateValue,pluckValue,startvalue,endvalue)
@@ -1,3 +1,3 @@
1
1
  module Graphgraph
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.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.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suhas Shrestha
@@ -175,6 +175,7 @@ files:
175
175
  - graphgraph-0.5.0.gem
176
176
  - graphgraph-0.6.0.gem
177
177
  - graphgraph-0.7.0.gem
178
+ - graphgraph-0.8.0.gem
178
179
  - graphgraph.gemspec
179
180
  - lib/generators/graphgraph/controllers_generator.rb
180
181
  - lib/generators/graphgraph/install_generator.rb