ishapi 0.1.8.45 → 0.1.8.46
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 170e73546c25909c2cbc434038b19099caa85525
|
4
|
+
data.tar.gz: 9e1088d6219ae9345a351603eb0c5e88cc97e8a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb0d57c1ba431351443fa1866675aa359423c8b3a37ae7217cb2effc956c11972889d550696337bd08fb3be9bbc7aacb856916cd22b0a4ba6f88e844d0b8cd72
|
7
|
+
data.tar.gz: ef07397eadcba06e9bb1b643942b3db2d37eff07cde4ba5a8bda2947396e251e9634e4e99e12bf574e73548d27c83d4b87f508954684b6cb1500c9ea18aeff4e
|
@@ -6,9 +6,11 @@
|
|
6
6
|
key = [ ::IshModels::CacheKey.one.cities ]
|
7
7
|
json.cache! key do
|
8
8
|
json.array! @cities do |city|
|
9
|
-
json.id
|
10
|
-
json.name
|
9
|
+
json.id city.id.to_s
|
10
|
+
json.name city.name
|
11
11
|
json.cityname city.cityname
|
12
|
+
json.x city.x
|
13
|
+
json.y city.y
|
12
14
|
if city.profile_photo
|
13
15
|
json.photo city.profile_photo.photo.url( :thumb )
|
14
16
|
end
|
@@ -24,7 +24,7 @@ json.newsitems do
|
|
24
24
|
json.reportname item.report.name_seo
|
25
25
|
json.descr item.report.subhead
|
26
26
|
json.report_id item.report_id.to_s
|
27
|
-
json.username item.report.user_profile.name
|
27
|
+
json.username item.report.user_profile.name if item.report.user_profile
|
28
28
|
if item.report.photo
|
29
29
|
json.photo_url item.report.photo.photo.url( :small )
|
30
30
|
json.thumb_url item.report.photo.photo.url( :thumb )
|
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.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|