ishapi 0.1.8.128 → 0.1.8.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/ishapi/galleries/_show.jbuilder +14 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c0b6b1aeabd082f27b34f7d4947428c1d0738ca7d4baf6fe1a65befa28992dc
|
|
4
|
+
data.tar.gz: 4ee33c1cc3e39c94089935ec2d428cf3b383c4203ac9a701624f6a7c3798e529
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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-
|
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|