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: f808ba13fa0285e8a3f2eb76259cbf2b16d2bb33
4
- data.tar.gz: f2e1255d2f37da9149b1b6d1b19d8680db071a31
3
+ metadata.gz: 170e73546c25909c2cbc434038b19099caa85525
4
+ data.tar.gz: 9e1088d6219ae9345a351603eb0c5e88cc97e8a2
5
5
  SHA512:
6
- metadata.gz: 0ae449188fc10adce921c88fa5109c07b104c006f1f75c00f1631d4b5de467a86749681d0dc21c9415ee213a289c12157acc3c6fd4d38bf4815d375ab000d19f
7
- data.tar.gz: ea4ee8dfef5ade2c8924e9bda34ffcfffa9b7e87f84d9ec2bc68c6633b107417724154d5c87323ac465b08db7090a250a9d073aca1a44f63fb0ac8997d925ca4
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 city.id.to_s
10
- json.name city.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.45
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-13 00:00:00.000000000 Z
11
+ date: 2017-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails