ishapi 0.1.8.128 → 0.1.8.129

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: e26aad09c6af260d542b74b6e1a6a564b68ac017f31b4106bdce3fd1844b05eb
4
- data.tar.gz: ba6375f1492c1ea70ba95fc16451fdd5d72bb1c8a86cd4591d74a65925daf736
3
+ metadata.gz: 2c0b6b1aeabd082f27b34f7d4947428c1d0738ca7d4baf6fe1a65befa28992dc
4
+ data.tar.gz: 4ee33c1cc3e39c94089935ec2d428cf3b383c4203ac9a701624f6a7c3798e529
5
5
  SHA512:
6
- metadata.gz: f05096a461bf556e9dff7577f5bba7935f8abd7eb9dcf43802c63b8fe4dd21848c7914144e9ecfe11f241f132ad484b6461d0ec05c62a198fb8f6eeb5f2de2e3
7
- data.tar.gz: ffdc24477420e93b1162121d79f9c1a587bbcb1d73e7cf99f59696b81004b46c4460c0af3c61ad012837de02c0fe9ce69564eed86787fb00e5bdc10c079baf8b
6
+ metadata.gz: a2bdc4fc9261d862f3f2a7f3490faa7cc371279d63d1f17224e580600670947ef5443597295f821d7fb3771090fb240ed2f02d46a3f555fab53fba004c8da265
7
+ data.tar.gz: 54ca700036230f0adc0070473b75d9d5761850285c1f07a78fd83ef8e91a6bdd6589e0bd83c6fd038dd0d7f09af99430a511dde64409ec60eb523036297458a3
@@ -1,8 +1,21 @@
1
1
  #
2
2
  # ishapi / galleries / _show
3
3
  #
4
-
5
4
  json.id gallery.id.to_s
5
+ json.item_type 'gallery'
6
6
  json.name gallery.name
7
7
  json.galleryname gallery.galleryname
8
8
  json.description gallery.description
9
+ json.username gallery.username || 'piousbox'
10
+ json.n_photos gallery.photos.length
11
+ json.slug gallery.galleryname
12
+ json.subhead gallery.subhead
13
+ json.partial! 'ishapi/application/meta', :item => gallery
14
+ if gallery.is_premium
15
+ json.premium_tier gallery.premium_tier
16
+ json.is_premium gallery.premium_tier > 0
17
+ json.is_purchased current_user.profile.has_premium_purchase( gallery )
18
+ json.partial! 'ishapi/photos/index', :photos => [ gallery.photos[0] ]
19
+ else
20
+ json.partial! 'ishapi/photos/index', :photos => gallery.photos
21
+ 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.128
4
+ version: 0.1.8.129
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-22 00:00:00.000000000 Z
11
+ date: 2020-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails