ishapi 0.1.8.117 → 0.1.8.118

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
  SHA256:
3
- metadata.gz: a61ccfb0e34ac6376e120e968d0bee4feab2afbca0e5eb3dc71e147cab7a639e
4
- data.tar.gz: dae97695b0fd726e3652398d9e276522acb901209600ad61b8f42db451665379
3
+ metadata.gz: 10d9b06e956b2878a44cd52891961a82d04536014609c124acd07f1f1ea913f5
4
+ data.tar.gz: 83760e5ee0c862b5cb28bf6604a91732b29bacbe90569bcb03174d18f3441df2
5
5
  SHA512:
6
- metadata.gz: 8a84b65aac8c02c326eb9523eeaad139dbb5f580f95c4e26291eb84d283422d45ed57bb45a9b3d39abcd3c9b119183a6fc192e928863f8be7dd6a596f1c6f106
7
- data.tar.gz: e56acee5e34002b0183696e2d204879db0ff788c1c2ba9872ee01459f23d034b9807545b36fd29d34ca1ebff1d91d2d139c8031e9107a936902fa90edddc69bf
6
+ metadata.gz: b1235b28c3c561ce3ce99359ea650ec6189189b785418586a8ac7ba5c2712eab186c3c7b6dfcc42046874aee8bd9e0b3fb816a16015fb026c47296b9371f0fdc
7
+ data.tar.gz: e5ffa95837862688301f061b7683002fa2e4b861b0fd65d2c7f4c13bc088c8072d34ba07683979fa324fab05a827649784d0538b0935bcc4a6a8a0a6c62aece4
@@ -7,6 +7,8 @@ json.array! @galleries do |gallery|
7
7
  json.id gallery.id.to_s
8
8
  json.name gallery.name
9
9
  json.galleryname gallery.galleryname
10
+ json.slug gallery.galleryname
11
+ json.subhead gallery.subhead
10
12
  json.username gallery.user_profile.name
11
13
  json.cityname gallery.city.name if gallery.city
12
14
  json.tagname gallery.tag.name_seo if gallery.tag
@@ -14,9 +14,15 @@ json.newsitems do
14
14
  json.item_type 'gallery'
15
15
  json.name item.gallery.name
16
16
  json.galleryname item.gallery.galleryname
17
- json.username item.username
18
-
19
-
17
+ json.username item.username || item.gallery.username || 'piousbox'
18
+ json.n_photos item.gallery.photos.length
19
+ json.slug item.gallery.galleryname
20
+ json.subhead item.gallery.subhead
21
+ json.tags [ { slug: 'adventure', name: 'Adventure' },
22
+ { slug: 'bars-and-clubs', name: 'Bars & Clubs' },
23
+ { slug: 'food', name: 'Food' },
24
+ { slug: 'late-night', name: 'Late Night' } ]
25
+
20
26
  json.partial! 'ishapi/application/meta', :item => item.gallery
21
27
  if item.gallery.is_premium
22
28
  json.premium_tier item.gallery.premium_tier
@@ -32,13 +38,20 @@ json.newsitems do
32
38
  json.item_type 'report'
33
39
  json.name item.report.name
34
40
  json.reportname item.report.name_seo
35
- json.subhead item.report.subhead
41
+ json.subhead item.report.subhead
36
42
  json.report_id item.report_id.to_s
37
43
  json.username item.report.user_profile.name if item.report.user_profile
44
+
38
45
  if item.report.photo
39
46
  json.photo_url item.report.photo.photo.url( :small )
40
47
  json.thumb_url item.report.photo.photo.url( :thumb )
41
48
  end
49
+
50
+ json.partial! 'ishapi/application/meta', :item => item.report
51
+ json.tags [ { slug: 'adventure', name: 'Adventure' },
52
+ { slug: 'bars-and-clubs', name: 'Bars & Clubs' },
53
+ { slug: 'food', name: 'Food' },
54
+ { slug: 'late-night', name: 'Late Night' } ]
42
55
  end
43
56
 
44
57
  if item.video_id
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.117
4
+ version: 0.1.8.118
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-19 00:00:00.000000000 Z
11
+ date: 2020-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails