ishapi 0.1.8.24 → 0.1.8.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdb8e3fd8701af18ef91465365a75ef2719680cc
4
- data.tar.gz: b6b20e03563624b75e5da23fed7260975ea7080a
3
+ metadata.gz: b5272c8c7d0b9e23542c255e6b33ce11148eb882
4
+ data.tar.gz: 9f8c9a45d2b37df9dd08deb68594881108305b2b
5
5
  SHA512:
6
- metadata.gz: a8ada8d09f9aeb0e205ef7f16afcb59bdf3ff1abd825abc23796f8b3e884353c0b8d6edd699a03a7b1f32382efa3ae58770e05940604768c7878b2e57fb4d7d6
7
- data.tar.gz: 5c5dea567835e3c36a5a88e3e070dd9b909ee2925dc5bb92b5858a672371845df995061f963474c5ac8988f3b16b54124eb2be2c3ea665342d3605f69fbd2b4c
6
+ metadata.gz: 4e6ce7159a040b0a13ac2dd839facccab4e5decd8a2644aa6fb6907b63c47e5190c05ed662ecac504ceda82de1eefff8c7c76afc8a65b2bafdc623bd6445dc85
7
+ data.tar.gz: b99f518fb70e18102ecdeb8b4bde7ccbe4c60a4c605e1db07e04633b5f351158c4a7208a8fe28950b823a55bd6af0c60cfaaed4cf8a229155eae23e6c964f7af
@@ -6,9 +6,15 @@
6
6
  json.n_features features.count
7
7
  json.features do
8
8
  json.array! features do |feature|
9
- if feature.report_id
9
+
10
+ json.name feature.name unless feature.name.blank?
11
+ json.subhead feature.subhead unless feature.subhead.blank?
12
+ json.link_path feature.link_path unless feature.link_path.blank?
13
+ json.inner_html feature.inner_html unless feature.inner_html.blank?
14
+ json.photo_url feature.image_path unless feature.image_path.blank?
15
+
16
+ if feature.report
10
17
  r = feature.report
11
- json.report_id r.id.to_s
12
18
  json.name r.name
13
19
  json.subhead r.subhead
14
20
  json.reportname r.name_seo
@@ -16,5 +22,16 @@ json.features do
16
22
  json.photo_url r.photo.photo.url( :thumb )
17
23
  end
18
24
  end
25
+
26
+ if feature.gallery
27
+ r = feature.gallery
28
+ json.name r.name
29
+ json.subhead r.subhead
30
+ json.galleryname r.galleryname
31
+ if r.photos[0]
32
+ json.photo_url r.photos[0].photo.url( :thumb )
33
+ end
34
+ end
35
+
19
36
  end
20
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.24
4
+ version: 0.1.8.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails