ishapi 0.1.8.6 → 0.1.8.7

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: fb8b359d4075f5d16ba3cd8b5401a0764ee148b9
4
- data.tar.gz: a6dc21b290e2cb0e68a0bfda88082a8e9daf2593
3
+ metadata.gz: 9535b2e08189324706e530ee645c4dbcd03d01a4
4
+ data.tar.gz: 08b6fb12b42b5681130036f32b97847aeb5e4500
5
5
  SHA512:
6
- metadata.gz: 7311eec796136da019a9067f5ecaf19c5a3c83b5a32d04ccc789e7d126930801f59a5c3b600d127b3f1501dbb70ac84b2d271a65684c0f5858ba7b9aff1ad810
7
- data.tar.gz: c5c8c9834b35d8e5a857e96baff751b36b9d1a039b2e7c27b75c9abd9fe1781f89079309d7a104f558a5c7035fb0ec0d542d4fc0d6d532f0774caa753f4a037e
6
+ metadata.gz: 790d5dc5eeae9083088a9bdf05bb7a353cdbf39b512887c1d0e2a0f956d19a8b613b51a28219a71cddd7a66bb9e79a1edd31dbf33fca9551dc10b8b5718974e7
7
+ data.tar.gz: f4ed757b36b1afb1eab6a987616fb32b7d93a78238668154ac0b018de062839630f2be3979a3ce34e75b91d6ce5b8e6711a675308482e045116d0712497d4684
@@ -18,15 +18,18 @@ class Ishapi::Ability
18
18
  end
19
19
 
20
20
  end
21
+ #
22
+ # anonymous user
23
+ #
21
24
  user ||= User.new
22
25
 
23
26
  can [ :index, :show ], City
24
27
 
25
- can [ :read ], Gallery do |gallery|
28
+ can [ :show ], Gallery do |gallery|
26
29
  gallery.is_public
27
30
  end
28
31
 
29
- can [ :read ], Report do |report|
32
+ can [ :show ], Report do |report|
30
33
  report.is_public
31
34
  end
32
35
 
@@ -11,6 +11,12 @@ json.newsitems do
11
11
  json.galleryname item.gallery.galleryname
12
12
  json.partial! 'ishapi/photos/index', :photos => item.gallery.photos
13
13
  end
14
+ if item.report
15
+ json.item_type 'report'
16
+ json.name item.report.name
17
+ json.reportname item.report.name_seo
18
+ json.report_id item.report_id.to_s
19
+ end
14
20
  json.descr item.descr
15
21
  end
16
22
  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.6
4
+ version: 0.1.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-30 00:00:00.000000000 Z
11
+ date: 2017-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails