jcompiler 0.1.36 → 0.1.37
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: c01d35f85c171b144bd2d23fce5704a5f359df83
|
4
|
+
data.tar.gz: a6c48ce2eb7e6583df83ff4f7b57a55a5c7bc854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21349c9ec8115aa649c4f0bf294aecb9ca5948eecf496c44c39f11c478c51a567022b772529c6a8ef9a8d7ecb651dc9d276b6c652550bd60912de753b0b232fc
|
7
|
+
data.tar.gz: ad48eb79f8ea93522f8032300203f3140dc11023c3ba53a72663a9f183061a6427c05b40afdd0cfa7a3093ed730448f2cbd19ec7bf526abcb0158805381fac66
|
data/lib/jcompiler.rb
CHANGED
@@ -11,7 +11,7 @@ class Jcompiler
|
|
11
11
|
image_medium: 'absolute_url(brand.image_file.url(:medium))',
|
12
12
|
image_square: 'absolute_url(brand.image_file.url(:square))',
|
13
13
|
url: 'brand_path(brand)',
|
14
|
-
labels: '
|
14
|
+
labels: 'brand.new_arrival? ? \'["NEW"]\' : \'[]\''
|
15
15
|
}.map do |key, code|
|
16
16
|
v = eval(code, bind)
|
17
17
|
"\"#{key}\":#{v.is_a?(String) ? ActiveSupport::JSON.encode(v) : v ? v.to_s : 'null'}"
|