ishapi 0.1.8.106 → 0.1.8.107

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: bfbab1b2afe18ad8e893cbd47aa9f295ca63a1cb74fc217a5a1156911e8f597b
4
- data.tar.gz: 6829b1d990e8176d2797b6da47a5f879f44a2c93b5a0b6452e9ad45e9c0845b2
3
+ metadata.gz: 538e4e7b002ce65534b1745d234ba9e105bf37441ae0560bf45e40276ef25e6c
4
+ data.tar.gz: 5b7e45205ec1df9def711e050dacf8cc986a5a9de10dd7e270e2ae7ea508f1a4
5
5
  SHA512:
6
- metadata.gz: 4298e4091aa1e8a440f7e30b401e51b835c638af8d14526301124f9bbfa1e43fd00b3e54d5e4067aee967baf42c1dc76380e1f84f556180d3a0db3c219451bf5
7
- data.tar.gz: 9085e06cd159878f1c6224bc4c426a58df3f38a96c1cb3a7ff3e810189c1ccdaff5014d1841899a8c7fd303a882172de24b73da8e44c19db10b0323efccd64a6
6
+ metadata.gz: a7d4801e6d14c1cd1577e0fe12c8242a06ecf9515e47976702a3dd5297d033910672dd2102406e91b14a9705750dc0ed2b35c4061e0f7ca3e50006d3abcf3a56
7
+ data.tar.gz: 46b56d381916313694686151f949b44ceb63f4c2013101719df9a4b3bb7a665ef4776cfe5d3348496fb862141475499dee50029a53a1b17ba88d5661a2af6c25
@@ -1,15 +1,16 @@
1
-
2
1
  #
3
2
  # ishapi / newsitems / _index
4
3
  #
4
+
5
5
  json.n_newsitems newsitems.count
6
6
  json.newsitems do
7
7
  json.array! newsitems do |item|
8
- json.created_at item.created_at
9
- json.descr item.descr
10
- json.description item.descr
11
- json.name item.name
8
+
12
9
  json.id item.id.to_s
10
+ json.name item.name
11
+ json.slug item.slug if item.slug
12
+ json.created_at item.created_at
13
+ json.description item.description if item.description
13
14
 
14
15
  if item.gallery
15
16
  json.item_type 'gallery'
@@ -19,11 +20,12 @@ json.newsitems do
19
20
  json.partial! 'ishapi/application/meta', :item => item.gallery
20
21
  json.partial! 'ishapi/photos/index', :photos => item.gallery.photos
21
22
  end
23
+
22
24
  if item.report
23
25
  json.item_type 'report'
24
26
  json.name item.report.name
25
27
  json.reportname item.report.name_seo
26
- json.descr item.report.subhead
28
+ json.subhead item.report.subhead
27
29
  json.report_id item.report_id.to_s
28
30
  json.username item.report.user_profile.name if item.report.user_profile
29
31
  if item.report.photo
@@ -43,6 +45,7 @@ json.newsitems do
43
45
  # json.youtube_id item.video.youtube_id
44
46
  # json.url item.video.video.url
45
47
  end
48
+
46
49
  if item.photo
47
50
  json.item_type 'photo'
48
51
  json.partial! 'ishapi/photos/index', :photos => [ item.photo ]
@@ -3,7 +3,7 @@
3
3
  # ishapi / sites / show
4
4
  #
5
5
 
6
- key = [ @site, params.permit! ]
6
+ key = [ @site.id, @site.updated_at, params.permit! ]
7
7
  json.cache! key do
8
8
  json.id @site.id.to_s
9
9
  json.domain @site.domain
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.106
4
+ version: 0.1.8.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-10 00:00:00.000000000 Z
11
+ date: 2020-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails