jcompiler 0.1.111 → 0.1.112
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build +1 -1
- data/lib/jcompiler/provider.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 674fb7118ea848b3da4fd54a536e0240220e8e08
|
4
|
+
data.tar.gz: be22fdf617b3e88d030363717ad2f0ecdbcefc32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b195f437459ab0c1559863014ee8417c9f4ebaa89840626ce3f334c33e19e946b9e927c40b77b48a58ab36d80b0f355d464dcbd40d45ccb4ab8c10eeba15add8
|
7
|
+
data.tar.gz: f5a4a04a08fedaf23789d5a6a124cbc28bf63e9a5629828e160bd4fdb969b21bca7fa522201d4215ac157c0159dcb85cc5809d5910e288d474cda6cc8876e943
|
data/build
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
113
|
data/lib/jcompiler/provider.rb
CHANGED
@@ -4,14 +4,14 @@ class Jcompiler::Provider
|
|
4
4
|
end
|
5
5
|
|
6
6
|
def object!(arg_name = nil, &block)
|
7
|
-
pre_context = context
|
8
|
-
context = []
|
7
|
+
pre_context = @context
|
8
|
+
@context = []
|
9
9
|
srcs, subst_src = if arg_name
|
10
10
|
[block.call(nil), "#{block.parameters[0][1]}=#{arg_name};"]
|
11
11
|
else
|
12
12
|
[block.call, '']
|
13
13
|
end
|
14
|
-
context = pre_context
|
14
|
+
@context = pre_context
|
15
15
|
%{"{\#{#{subst_src}[#{srcs.join(',')}].join(',')}}"}
|
16
16
|
end
|
17
17
|
|
@@ -26,7 +26,7 @@ class Jcompiler::Provider
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def method_missing(name, *args, &block)
|
29
|
-
context << %{"\\"#{name}\\":3"}
|
29
|
+
@context << %{"\\"#{name}\\":3"}
|
30
30
|
end
|
31
31
|
|
32
32
|
private
|