jcompiler 0.1.27 → 0.1.28
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 +3 -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: 8d2c5ebcb50bf4f93d7b0dcf18382f377299f84c
|
4
|
+
data.tar.gz: 4f6c155d5e4612c39f37706eb0a538e177fd6a1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87e14ffb66503365bba9ebe0d89de2d034b89effe3a69bec531b891aabea382d2f18db4ab9e13beb9459711350f05c5336c331a34c2c6827312d64f2f78d8a6b
|
7
|
+
data.tar.gz: 255ef8f1fcad38ee476a1b498cdfe17412791a2a85ff43756559d7a019c4cad0bb055cc93f95de2e3d44361217cbfa205438bcc062fc4e76015b3272f3f2bcb1
|
data/lib/jcompiler.rb
CHANGED
@@ -7,10 +7,10 @@ class Jcompiler
|
|
7
7
|
published_at: 'brand.published_at.utc.iso8601(3)',
|
8
8
|
official_url: 'brand.blog_url',
|
9
9
|
sex_group: 'brand.blog_sex_switch',
|
10
|
-
|
11
|
-
|
10
|
+
image_medium: 'absolute_url(brand.image_file.url(:medium))',
|
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
|
"\"#{key}\":#{v.is_a?(String) ? ActiveSupport::JSON.encode(v) : v ? v.to_s : 'null'}"
|