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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e3661caa825656de657c68ebdeab671a1ebe8c2
4
- data.tar.gz: 2a3eff25d05f492f30c2671e93756ee1346b2237
3
+ metadata.gz: ace07837fa637b3d9b053edb16cd769561956717
4
+ data.tar.gz: 3088ac3e4b42361e4e81fa206ac173dbdf78264e
5
5
  SHA512:
6
- metadata.gz: baa89561e89a0f91d3f78bdd41210f762768991e40076a5f788d82ed9743b1de1e60c443ef60b7509641062f77c22d36649fa68d62a0bf0ce48f0696cadbcf7a
7
- data.tar.gz: f344dbf8cc87fc52b2d62b573c4bcddef1344e54000fa3426283a4a5df1781110e1e0ef8230ab1c36b76715090debdf08f0fdb64336359d0147fe19dd5a718d9
6
+ metadata.gz: a1e0c0d2dd0e693de2dd6afe36dfdd07dc5a1f12cb72358ed84757b6d74c8f02917501d490b224c267d23e992f52df49fdffdb262903d8e4f6d763855fd8d615
7
+ data.tar.gz: 70f844785e3aa06062edeca406273048d85ddb85f291ce45c1442b1e5394b421ef9e294deeb33b809f64fc8398f6053726364ae75c745a886c119757005c3698
@@ -0,0 +1,11 @@
1
+
2
+ #
3
+ # ishapi / application / _meta
4
+ #
5
+
6
+ if item.city
7
+ json.city_name item.city.name
8
+ end
9
+ if item.tag
10
+ json.tag_name item.tag.name
11
+ end
@@ -0,0 +1,11 @@
1
+
2
+ #
3
+ # ishapi / application / _meta
4
+ #
5
+
6
+ if item.gallery.city
7
+ json.city_name item.gallery.city.name
8
+ end
9
+ if item.gallery.tag
10
+ json.tag_name item.gallery.tag.name
11
+ end
@@ -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
- json.partial! 'ishapi/photos/index', :photos => item.gallery.photos
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
@@ -4,9 +4,5 @@
4
4
  #
5
5
 
6
6
  json.videos videos do |video|
7
- json.youtube_id video.youtube_id
8
- json.name video.name
9
- json.description video.descr
10
- json.x video.x
11
- json.y video.y
7
+ json.partial! :show, :video => video
12
8
  end
@@ -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.13
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-12 00:00:00.000000000 Z
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