jcompiler 0.1.26 → 0.1.27
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 +1 -1
- 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: 30459f1d0925d506ee07034569d49b50fd9199a2
|
4
|
+
data.tar.gz: 3983307f9b09fbdef32af76287e2ad0d798ce884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c66b74701f9d8a6fd17e3b9b996b8b5273e7d5eef39694f00b56ff1b35e414107f24be5338fc318ab56760924891159a1f762f85d65193f112501548ea0f1887
|
7
|
+
data.tar.gz: 74e2be6ab7ab1d6526376ba2b1f87cb398a1796663488d125086ec6036ada76faebfe876ed4a4d518ef288ad4bb463b7450bc13f18dc18bfc1a1dd2ff1d06ef3
|
data/lib/jcompiler.rb
CHANGED
@@ -10,7 +10,7 @@ class Jcompiler
|
|
10
10
|
# image_medium: 'absolute_url(brand.image_file.url(:medium))',
|
11
11
|
# image_square: 'absolute_url(brand.image_file.url(:square))',
|
12
12
|
# url: brand_
|
13
|
-
|
13
|
+
labels: '"#{brand.new_arrival? ? \'["NEW"]\' : \'[]\'}"'
|
14
14
|
}.map do |key, code|
|
15
15
|
v = eval(code)
|
16
16
|
"\"#{key}\":#{v.is_a?(String) ? ActiveSupport::JSON.encode(v) : v ? v.to_s : 'null'}"
|