jcompiler 0.1.39 → 0.1.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jcompiler.rb +11 -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: db879266010474abd2454e3e068fc493f8c2e253
|
4
|
+
data.tar.gz: bc75ce9a4da00987e9aad31d74559ba6deee031a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64987aef6d2b0f34a3f73a0108f3b7ed444730e76b045fd3567f6033bf90dde442516cd65a01447cab22b7a304e33294fb16b18a1fcfff68d58688c644f66149
|
7
|
+
data.tar.gz: d98d6f1020516a5f711bd4c50cdaebe8aef5b90dd590c4c61f3c2b4fce53d8ae1a47af120d411a2125f5664173cf10b6a113fe8e56a81cd639d099bb01a83238
|
data/lib/jcompiler.rb
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
class Jcompiler
|
2
|
+
def initialize
|
3
|
+
@ids = {}
|
4
|
+
end
|
5
|
+
|
6
|
+
private
|
7
|
+
|
8
|
+
attr_accessor :ids
|
9
|
+
|
2
10
|
def b(brand, bind)
|
3
11
|
bind.local_variable_set(:brand, brand)
|
4
12
|
{
|
@@ -24,9 +32,8 @@ class Jcompiler
|
|
24
32
|
end
|
25
33
|
end
|
26
34
|
|
27
|
-
def code(
|
28
|
-
|
29
|
-
"[#{a(brands, bind).join(',')}]"
|
35
|
+
def code(bind)
|
36
|
+
debugger
|
30
37
|
end
|
31
38
|
end
|
32
39
|
|
@@ -37,7 +44,7 @@ class JcompilerHandler
|
|
37
44
|
@@jcompiler = Jcompiler.new
|
38
45
|
|
39
46
|
def self.call(template)
|
40
|
-
"@@jcompiler.code(
|
47
|
+
"@@jcompiler.code(template.identifier, template.source, binding)"
|
41
48
|
end
|
42
49
|
end
|
43
50
|
|