jcompiler 0.1.33 → 0.1.35
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71b60932faded4de903b4b6be0f063dcb02659dd
|
4
|
+
data.tar.gz: e876480850f7378a7118d10f32a843111c4e91dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2073d3650b310d1689c44ad05326ee96cf5f7cc367457a5afd48494b802ea514d7e76fb0dc937dc9aafc898c6942fa2c0930445c614a728d312d9c1b9dc99fa
|
7
|
+
data.tar.gz: d01b980d1c0cf38dee56b88d738150f5bcb36d95e7b06009db3a3d5299c2a7e55ee7474f214b9925fbca34838cb9ba0e15cad12aa77481b534bfec555190239a
|
data/lib/jcompiler.rb
CHANGED
@@ -8,10 +8,10 @@ class Jcompiler
|
|
8
8
|
published_at: 'brand.published_at.utc.iso8601(3)',
|
9
9
|
official_url: 'brand.blog_url',
|
10
10
|
sex_group: 'brand.blog_sex_switch',
|
11
|
-
image_medium: 'brand.image_file.url(:medium)',
|
12
|
-
image_square: 'brand.image_file.url(:square)',
|
11
|
+
image_medium: 'absolute_url(brand.image_file.url(:medium))',
|
12
|
+
image_square: 'absolute_url(brand.image_file.url(:square))',
|
13
13
|
url: 'brand_path(brand)'
|
14
|
-
|
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'}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jcompiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tetsuri Moriya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: High performance JSON view via compiled DSL
|
14
14
|
email:
|