volt 0.9.0 → 0.9.1.pre1
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 +4 -4
- data/CHANGELOG.md +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/volt.rb +3 -0
- data/lib/volt/models/array_model.rb +1 -1
- data/lib/volt/page/bindings/if_binding.rb +4 -1
- data/lib/volt/server/html_parser/view_parser.rb +5 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaebdf0ceeb600875ea244b0aa8e1bf36fadc998
|
4
|
+
data.tar.gz: 0111f18c3191d2f2f81528d9b7ffbbe8e6187c5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06a879922cac14ae698c20e7a6ec3966c74aeae78bc175b11c9c6588c93ed20032fd678342137b2ec3f1c8682fa36241ac21aff6df97b820fb8da2968775c2b
|
7
|
+
data.tar.gz: cc56f0cae364f252f7ff11ff6ce09081192c9aedd14f73a665a0ae8a366e6dac20220eaa19d8a6ac99acd340243eb1bdb7f10a2d01ab1ee78ba1e393a9d13a9a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -36,4 +36,4 @@ There is also a [work in progress tutorial](https://github.com/rhgraysonii/volt_
|
|
36
36
|
You want to contribute? Great! Thanks for being awesome! At the moment, we have a big internal todo list, hop on https://gitter.im/voltrb/volt so we don't duplicate work. Pull requests are always welcome, but asking about helping on Gitter should save some duplication.
|
37
37
|
|
38
38
|
|
39
|
-
[](https://www.gratipay.com/voltframework/)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1.pre1
|
data/lib/volt.rb
CHANGED
@@ -48,7 +48,10 @@ module Volt
|
|
48
48
|
if current_value.is_a?(Promise)
|
49
49
|
# If we got a promise, use its value if resolved.
|
50
50
|
if current_value.resolved?
|
51
|
-
|
51
|
+
# Should call then immediately
|
52
|
+
current_value.then do |value|
|
53
|
+
current_value = value
|
54
|
+
end
|
52
55
|
else
|
53
56
|
# if its not, resolve it and try again.
|
54
57
|
# TODO: we maybe could cache this so we don't have to run a full update again
|
@@ -18,7 +18,11 @@ module Volt
|
|
18
18
|
SandlebarsParser.new(html, handler)
|
19
19
|
|
20
20
|
# Close out the last scope
|
21
|
-
handler.scope.last
|
21
|
+
last_scope = handler.scope.last
|
22
|
+
|
23
|
+
raise "Unclosed tag in:\n#{html}" unless last_scope
|
24
|
+
|
25
|
+
last_scope.close_scope
|
22
26
|
|
23
27
|
@templates = handler.templates
|
24
28
|
end
|
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.9.
|
4
|
+
version: 0.9.1.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Stout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -827,9 +827,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
827
827
|
version: '0'
|
828
828
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
829
829
|
requirements:
|
830
|
-
- - "
|
830
|
+
- - ">"
|
831
831
|
- !ruby/object:Gem::Version
|
832
|
-
version:
|
832
|
+
version: 1.3.1
|
833
833
|
requirements: []
|
834
834
|
rubyforge_project:
|
835
835
|
rubygems_version: 2.4.5
|