jcompiler 0.1.23 → 0.1.24
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: 44ed586aa4014908ee2bc307da311040090544b3
|
4
|
+
data.tar.gz: df95fcd77d639bd467fdc701ddfe66a9e9d0409a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86579b32fcb0a76cd40325c7f5348f6b550e64c01f0fde43156f7e8ccd1837a22acc5fe442961fc99e88f4752405e1879e09c0f50c2f65918b67a78dfdbaab27
|
7
|
+
data.tar.gz: 96e61c05fb370173cd5d5db4347eaaf20283a54c2256b040fb19561a171e72e866b936ad5b5a73532c193e506caf8bf7b2cadc0c33b7ac6284aa07fcb18aa98f
|
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'}"
|