ishapi 0.1.8.173 → 0.1.8.176
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 534814e2570fd0506905da3c2af5baa3b54b7e23762ae0b1d43c7b733747a46d
|
4
|
+
data.tar.gz: 00f9f2f19642d1c51c3a1893d2657c1a77ee5e2254aa6ee4930b0bf33b307b86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53c030593cf235e01ca9b671b63bd47bfee8db9c2b9a84a8d10db01b401cadda3f6a14b7608f0a23ab888cb2fb8799a511798518060e76707e2accf1e9ca5d3a
|
7
|
+
data.tar.gz: 2f44b2869368baa23d513ddc82b6749cc22b1e87b1b720d769a50e4976334261bd3a7682db0728a94f0194c4decab25a13419619a749015a727aff580e1eafca
|
@@ -20,10 +20,9 @@ json.markers do
|
|
20
20
|
## @TODO: this is copy-pasted and should be abstracted.
|
21
21
|
destination = marker.destination
|
22
22
|
json.premium_tier destination.premium_tier
|
23
|
+
json.is_premium destination.is_premium
|
23
24
|
json.id destination.id.to_s
|
24
25
|
if destination.is_premium
|
25
|
-
json.premium_tier destination.premium_tier
|
26
|
-
json.is_premium destination.premium_tier > 0
|
27
26
|
if current_user && current_user.profile
|
28
27
|
json.is_purchased current_user.profile.has_premium_purchase( destination )
|
29
28
|
end
|
@@ -5,6 +5,7 @@
|
|
5
5
|
json.n_newsitems newsitems.count
|
6
6
|
json.newsitems do
|
7
7
|
json.array! newsitems do |item|
|
8
|
+
json.id item.id.to_s
|
8
9
|
json.name item.name
|
9
10
|
json.created_at item.created_at
|
10
11
|
json.updated_at item.updated_at
|
@@ -59,7 +60,7 @@ json.newsitems do
|
|
59
60
|
end
|
60
61
|
end
|
61
62
|
|
62
|
-
if item.
|
63
|
+
if item.video
|
63
64
|
json.id item.video_id.to_s
|
64
65
|
# @TODO: why this relation is so weird here?!
|
65
66
|
video = Video.unscoped.find( 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.
|
4
|
+
version: 0.1.8.176
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|