ishapi 0.1.8.13 → 0.1.8.14
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 +4 -4
- data/app/views/ishapi/application/_meta.jbuilder +11 -0
- data/app/views/ishapi/application/_meta.jbuilder~ +11 -0
- data/app/views/ishapi/newsitems/_index.jbuilder +5 -1
- data/app/views/ishapi/videos/_index.jbuilder +1 -5
- data/app/views/ishapi/videos/_show.jbuilder +19 -0
- data/app/views/ishapi/videos/_show.jbuilder~ +15 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ace07837fa637b3d9b053edb16cd769561956717
|
4
|
+
data.tar.gz: 3088ac3e4b42361e4e81fa206ac173dbdf78264e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1e0c0d2dd0e693de2dd6afe36dfdd07dc5a1f12cb72358ed84757b6d74c8f02917501d490b224c267d23e992f52df49fdffdb262903d8e4f6d763855fd8d615
|
7
|
+
data.tar.gz: 70f844785e3aa06062edeca406273048d85ddb85f291ce45c1442b1e5394b421ef9e294deeb33b809f64fc8398f6053726364ae75c745a886c119757005c3698
|
@@ -9,7 +9,9 @@ json.newsitems do
|
|
9
9
|
json.item_type 'gallery' #@TODO: should be a constant
|
10
10
|
json.name item.gallery.name
|
11
11
|
json.galleryname item.gallery.galleryname
|
12
|
-
|
12
|
+
|
13
|
+
json.partial! 'ishapi/application/meta', :item => item.gallery
|
14
|
+
json.partial! 'ishapi/photos/index', :photos => item.gallery.photos.limit( 6 )
|
13
15
|
end
|
14
16
|
if item.report
|
15
17
|
json.item_type 'report'
|
@@ -18,6 +20,8 @@ json.newsitems do
|
|
18
20
|
json.report_id item.report_id.to_s
|
19
21
|
end
|
20
22
|
if item.video
|
23
|
+
json.partial! 'ishapi/videos/show', :video => item.video
|
24
|
+
|
21
25
|
json.item_type 'video'
|
22
26
|
json.name item.video.name
|
23
27
|
json.descr item.video.descr
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
json.id video.id.to_s
|
3
|
+
json.youtube_id video.youtube_id
|
4
|
+
json.name video.name
|
5
|
+
json.description video.descr
|
6
|
+
json.x video.x
|
7
|
+
json.y video.y
|
8
|
+
|
9
|
+
if video.city
|
10
|
+
json.city_name video.city.name
|
11
|
+
end
|
12
|
+
|
13
|
+
if video.tag
|
14
|
+
json.tag video.tag.name
|
15
|
+
end
|
16
|
+
|
17
|
+
if video.user_profile
|
18
|
+
json.username video.user_profile.username
|
19
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
json.id video.id.to_s
|
3
|
+
json.youtube_id video.youtube_id
|
4
|
+
json.name video.name
|
5
|
+
json.description video.descr
|
6
|
+
json.x video.x
|
7
|
+
json.y video.y
|
8
|
+
|
9
|
+
if video.city
|
10
|
+
json.city_name video.city.name
|
11
|
+
end
|
12
|
+
|
13
|
+
if video.user
|
14
|
+
json.username video.user.username
|
15
|
+
end
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -160,6 +160,8 @@ files:
|
|
160
160
|
- app/models/ishapi/ability.rb~
|
161
161
|
- app/models/ishapi/application_record.rb
|
162
162
|
- app/models/ishapi/article.rb
|
163
|
+
- app/views/ishapi/application/_meta.jbuilder
|
164
|
+
- app/views/ishapi/application/_meta.jbuilder~
|
163
165
|
- app/views/ishapi/articles/_form.html.erb
|
164
166
|
- app/views/ishapi/articles/edit.html.erb
|
165
167
|
- app/views/ishapi/articles/index.html.erb
|
@@ -194,6 +196,8 @@ files:
|
|
194
196
|
- app/views/ishapi/venues/show.jbuilder~
|
195
197
|
- app/views/ishapi/videos/_index.jbuilder
|
196
198
|
- app/views/ishapi/videos/_index.jbuilder~
|
199
|
+
- app/views/ishapi/videos/_show.jbuilder
|
200
|
+
- app/views/ishapi/videos/_show.jbuilder~
|
197
201
|
- app/views/layouts/ishapi/application.html.erb
|
198
202
|
- config/routes.rb
|
199
203
|
- lib/ishapi.rb
|