volt 0.9.7.pre5 → 0.9.7.pre6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd1a4dab6a6fff697409671f83ecc96ebc6f3e7
|
4
|
+
data.tar.gz: 908b34d10825b339c58e450413c5fb0629507b89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee4c27009a1cfca8a3519c7c0a07fd7d0cd8561e596144112531c0662d442354f0c2a3993edd797046b617d4f503ffb6f55e9020380d23e751df326f49c1eb03
|
7
|
+
data.tar.gz: cf65cf0d2676de6a95efdc9cdc9b32029b8183a0ce6dd1e3d872999f86944745d700e9c5e168cf9556a2ee46727a5059cef8ec02e31081154f1f0c2a1ded728c
|
@@ -17,14 +17,23 @@ module Volt
|
|
17
17
|
method_name = method_name.to_s
|
18
18
|
# c for call
|
19
19
|
|
20
|
+
args = escape(args)
|
21
|
+
|
22
|
+
QueryIdentifier.new(['c', @from, method_name, *args])
|
23
|
+
end
|
24
|
+
|
25
|
+
def escape(args)
|
20
26
|
args.map do |arg|
|
21
27
|
if arg.is_a?(Array)
|
22
28
|
# Escape the array
|
23
29
|
arg.unshift('a')
|
30
|
+
elsif arg.is_a?(Regexp)
|
31
|
+
# Track regexp
|
32
|
+
['r', arg.to_s]
|
33
|
+
else
|
34
|
+
arg
|
24
35
|
end
|
25
36
|
end
|
26
|
-
|
27
|
-
QueryIdentifier.new(['c', @from, method_name, *args])
|
28
37
|
end
|
29
38
|
|
30
39
|
def ==(val)
|
@@ -54,7 +63,7 @@ module Volt
|
|
54
63
|
end
|
55
64
|
|
56
65
|
def __op(*args)
|
57
|
-
QueryOp.new(['c', self, *args])
|
66
|
+
QueryOp.new(['c', self, *escape(args)])
|
58
67
|
end
|
59
68
|
|
60
69
|
def coerce(other)
|
@@ -157,8 +157,10 @@ module Volt
|
|
157
157
|
if @grouped_controller && @current_controller_handler
|
158
158
|
# We remove the controller after all of the current rendering is done.
|
159
159
|
Timers.next_tick do
|
160
|
-
|
161
|
-
|
160
|
+
if @current_controller_handler
|
161
|
+
# Remove a reference for the controller in the group.
|
162
|
+
@grouped_controller.remove(@current_controller_handler.controller.class)
|
163
|
+
end
|
162
164
|
end
|
163
165
|
end
|
164
166
|
|
data/lib/volt/version.rb
CHANGED