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: 6fd21e0b9c2e8b3e23e8990bdb1111a3099aaeabebfa21ccaf2875c1ef1440a9
4
- data.tar.gz: d9f728856e1417d2e9517e11ce55c5437a12e57259b6cdce9d1c635aab3bedd8
3
+ metadata.gz: 534814e2570fd0506905da3c2af5baa3b54b7e23762ae0b1d43c7b733747a46d
4
+ data.tar.gz: 00f9f2f19642d1c51c3a1893d2657c1a77ee5e2254aa6ee4930b0bf33b307b86
5
5
  SHA512:
6
- metadata.gz: 93a62f4b13841087c81b7ab0f8ea07abe99e4437a72adc7221849c6edef37fcb87599ba43545df66f272acf14c25de18cfc16805f62ea503b8cda99c71339675
7
- data.tar.gz: 2af4362118d044097aa3291b18c828321887f8ec8a19d0e06a622e18965727f2f37be57d4360e7151059ddb36d168a1990c751fde8d99cb1945bbce0a694ce80
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.video_id
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.173
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-03-19 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails