jcompiler 0.1.21 → 0.1.22
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: 93ac9294b63bb9f679693e260b2ca23a96fd3125
|
4
|
+
data.tar.gz: af35970b6f64ad21a46e9c5499dd55bbb337c6a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdfd772e241e29196f75de6b113faebbd6ba37c97d7eecca9dad1606c2025e6b921e8b1eb6018ce16784d3474579f28e051ebd65d1576c89d810039a9f79a1d6
|
7
|
+
data.tar.gz: d37cfc7650fed90c7d0a26ba58dde652a89467dd3c032a96f75c2056d25401f49779686d90277c476bc9e84a029bf8625d9ada7781469cd3ad22f9b5649cdccc
|
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
|
-
labels: '"#{brand.new_arrival? ? '["NEW"]'
|
13
|
+
labels: '"#{brand.new_arrival? ? '["NEW"]' : '[]'}"'
|
14
14
|
}.map do |key, code|
|
15
15
|
v = eval(code)
|
16
16
|
"\"#{attr}\":#{v.is_a?(String) ? ActiveSupport::JSON.encode(v) : v ? v.to_s : 'null'}"
|