ishapi 0.1.8.33 → 0.1.8.34

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daae4236e6eb6a2da49ca1d681b65602af307bc0
4
- data.tar.gz: 3584238b0c0ea391e4dc727bdb46667c2876bd2c
3
+ metadata.gz: 40c40b280402b1a74d374110b2fba2147f1373f1
4
+ data.tar.gz: 6d1b7eb2c5e728bf277de152d107da237ded02ec
5
5
  SHA512:
6
- metadata.gz: 5baf67dfb59b0df8313f3519ed54b16f2501edfec2254cdaef6613ed06671dcefe057bd65912cb505b4753dedb0f1c0a33daf6e6e262c052b6b4e15912d120ac
7
- data.tar.gz: bf26f897255a7e654e40673f25438ee94882f73f0b1d241ab47e02ac4f9506a293508be3c1f679eb4c3ecfb1c88436eba33728b95651349a9df63478487c2816
6
+ metadata.gz: fc9d6044c7f52aa6529a5ca3ec3bb2eaf53b39076cc584e532966b2ebed43dbbec6789fcc411db01bdac26d5ac624cda6888aa267337d69f39be753285cf1073
7
+ data.tar.gz: d775c7842a3da7637fe2319e9b921e4b03feb6c8c1034ac16be2fe87a76b58c32149adbee6d515b3e5561878f7726ca1d8193f0a099092759da852cb8206d1f4
@@ -7,7 +7,9 @@ json.n_newsitems newsitems.count
7
7
  json.newsitems do
8
8
  json.array! newsitems do |item|
9
9
  json.created_at item.created_at
10
-
10
+ json.descr item.descr
11
+ json.name item.name
12
+
11
13
  if item.gallery
12
14
  json.item_type 'gallery' #@TODO: should be a constant
13
15
  json.name item.gallery.name
@@ -32,6 +34,10 @@ json.newsitems do
32
34
  json.y item.video.y
33
35
  json.youtube_id item.video.youtube_id
34
36
  end
35
- json.descr item.descr
37
+ if item.photo
38
+ json.item_type 'photo'
39
+ json.partial! 'ishapi/photos/index', :photos => [ item.photo ]
40
+ end
41
+
36
42
  end
37
43
  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.33
4
+ version: 0.1.8.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-19 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails