jcompiler 0.1.12 → 0.1.13
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 +7 -3
- 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: 8649a61fdfcfd783a0ab64e9cdb4908803feb14e
|
4
|
+
data.tar.gz: 1f340025da928e2e2f5b7d20a66d1cb016d0e681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a176568e658ccd399076a94eb182152c8d050360059588c6567753df672b95c2016f802b8b3ed304bb37713137fda177c0f1ef8b586bbd8ed354251f4bdec39
|
7
|
+
data.tar.gz: 8ee39108452cb26c108421d0d4bc3f4e2498213ba5ff769d1b2976c0b7b309cc6e540350b23f815005a915f8a49d9bd0ccdb9757d05daca87156f90fac6ec855
|
data/lib/jcompiler.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
class Jcompiler
|
2
|
-
def self.
|
3
|
-
|
2
|
+
def self.a
|
3
|
+
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.code(brands)
|
7
|
+
"{\"a\":#{brands.length}}"
|
4
8
|
end
|
5
9
|
end
|
6
10
|
|
@@ -9,7 +13,7 @@ class JcompilerHandler
|
|
9
13
|
self.default_format = Mime::JSON
|
10
14
|
|
11
15
|
def self.call(template)
|
12
|
-
|
16
|
+
"Jcompiler.code(@brands)"
|
13
17
|
end
|
14
18
|
end
|
15
19
|
|