volt 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/volt/page/page.rb +3 -0
- data/lib/volt/page/tasks.rb +1 -1
- data/templates/project/Gemfile.tt +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbe6a2f34b95c5f78dbf1bb853b0603d8f05ffa0
|
4
|
+
data.tar.gz: 266c25ea54802b4a51a58400e20a229dd877c4ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89c335315a5268a518e88fd694c35e944482052cc0354e9f57a92b5d0e49bb2434f72fb3c6b220048504696dada42dc2f48638f1853b23d56d8636cf5d267daf
|
7
|
+
data.tar.gz: 9e48482b8bb304a7e39682d6ea3bd43348bffe1b63189f86ade8cccaf71bfbb92bc25894b91d58d89ad938add3d9c15908e64dade7d5b876f0e8f72d31c134a9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
data/lib/volt/page/page.rb
CHANGED
@@ -161,6 +161,7 @@ class Page
|
|
161
161
|
page_obj_str = nil
|
162
162
|
|
163
163
|
`page_obj_str = sessionStorage.getItem('___page');`
|
164
|
+
`console.log(page_obj_str);`
|
164
165
|
`if (page_obj_str) {`
|
165
166
|
`sessionStorage.removeItem('___page');`
|
166
167
|
|
@@ -170,6 +171,8 @@ class Page
|
|
170
171
|
`}`
|
171
172
|
end
|
172
173
|
end
|
174
|
+
rescue => e
|
175
|
+
puts "Unable to restore: #{e.inspect}"
|
173
176
|
end
|
174
177
|
end
|
175
178
|
|
data/lib/volt/page/tasks.rb
CHANGED
@@ -94,7 +94,7 @@ class Tasks
|
|
94
94
|
def reload
|
95
95
|
puts "RELOAD"
|
96
96
|
# Stash the current page value
|
97
|
-
value = JSON.dump($page.page.cur.to_h)
|
97
|
+
value = JSON.dump($page.page.cur.to_h.reject {|k,v| v.reactive? })
|
98
98
|
|
99
99
|
# If this browser supports session storage, store the page, so it will
|
100
100
|
# be in the same state when we reload.
|
@@ -2,9 +2,18 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gem 'volt', '<%= config[:version] %>'
|
4
4
|
|
5
|
+
|
6
|
+
# The following gem's are optional for themeing
|
7
|
+
|
5
8
|
# Twitter bootstrap
|
6
9
|
gem 'volt-bootstrap'
|
7
10
|
|
11
|
+
# Simple theme for bootstrap, remove to theme yourself.
|
12
|
+
gem 'volt-bootstrap-jumbotron-theme'
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
#---------------------
|
8
17
|
# Needed at the moment
|
9
18
|
gem 'opal', git: 'https://github.com/opal/opal.git'
|
10
19
|
gem 'opal-jquery', :git => 'https://github.com/opal/opal-jquery.git'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: volt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Stout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|