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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 538e4e7b002ce65534b1745d234ba9e105bf37441ae0560bf45e40276ef25e6c
|
|
4
|
+
data.tar.gz: 5b7e45205ec1df9def711e050dacf8cc986a5a9de10dd7e270e2ae7ea508f1a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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.
|
|
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 ]
|
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.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-
|
|
11
|
+
date: 2020-01-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|