graphgraph 0.9.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f594b121db1bc7da68549ed05fcf476c56530b5
4
- data.tar.gz: e4c45cc3604f226544d0c9fa78495a7843ffeeee
3
+ metadata.gz: 22a6f7b893735691da21b8316ac2341d7b86a67c
4
+ data.tar.gz: d52ea1e2d1b42fa9ef082ffb366615f4cafa3e03
5
5
  SHA512:
6
- metadata.gz: f5b8246dc0781fb87ab9f16bdf3fd8e97fd34d277d473d45278d747169795b7344bd5f701aec3edafd232441b42b2bfc1f9e72079aae0c288bcc072a1a836c89
7
- data.tar.gz: 048b90e327d54bdcc128f480000e9f3a7cf9a2dd6ddd8ffa1461e00897e5ef89b7d51d16f462175348694bdd79a8bbcc69adef65e381cd40d9566f3159d0592e
6
+ metadata.gz: 35fa77dfa95df7629e4e8c9ce25787dac31b460ca169da4044d66e86fae6e0ec8c1740860f7ed6864d44f0e263470df69bad71b53b7b289d2964012001c14b24
7
+ data.tar.gz: 43d2778116ca2510af1f75748017ae571c506cf41e9667244f682e76d5efe015cde34a7067a4552847c25c376cae3f9d8b4cad8f674cbed1af5900ab7b12da15
Binary file
@@ -28,8 +28,11 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
28
28
  set_areagraph
29
29
  set_scattergraph
30
30
  @mainchart=@chartline||@chartbar||@chartarea||@chartscatter
31
+ session[:options]=@mainchart.objects.to_s
32
+ session[:placeholder]=@mainchart.placeholder.to_s
33
+ session[:series_data]=@mainchart.series_data.to_s
31
34
  #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)
35
+ # redirect_to replace_with_user_page_path
33
36
  end
34
37
  end
35
38
 
@@ -256,11 +259,11 @@ class <%= @scope_prefix %>GraphgraphsController < ApplicationController
256
259
  document.getElementById('datepickerforxview').style.display= \"none\";
257
260
  });
258
261
  &lt;/script&gt;
259
- &lt;% if params[:options]!=nil %&gt;
262
+ &lt;% if session[:options]!=nil %&gt;
260
263
  &lt;% newchart=LazyHighCharts::HighChart.new() %&gt;
261
- &lt;% newchart.options=eval(params[:options]) %&gt;
262
- &lt;% newchart.placeholder=params[:placeholder] %&gt;
263
- &lt;% newchart.series_data=eval(params[:series_data]) %&gt;
264
+ &lt;% newchart.options=eval(session[:options]) %&gt;
265
+ &lt;% newchart.placeholder=session[:placeholder] %&gt;
266
+ &lt;% newchart.series_data=eval(session[:series_data]) %&gt;
264
267
  &lt;% if (\"#{params[:graphtype]}\"==\"Bar Graph\") %&gt;
265
268
  &lt;%= high_chart(\"my_bar_div\", newchart) %&gt;
266
269
  &lt;% end %&gt;
@@ -1,3 +1,3 @@
1
1
  module Graphgraph
2
- VERSION = "0.9.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphgraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suhas Shrestha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2016-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -176,6 +176,7 @@ files:
176
176
  - graphgraph-0.6.0.gem
177
177
  - graphgraph-0.7.0.gem
178
178
  - graphgraph-0.8.0.gem
179
+ - graphgraph-0.9.0.gem
179
180
  - graphgraph.gemspec
180
181
  - lib/generators/graphgraph/controllers_generator.rb
181
182
  - lib/generators/graphgraph/install_generator.rb