rasti-app 0.0.6 → 0.0.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: 2b4dabf5aeb1e2ffff27e3e81aaf2de9d07cd3ad
4
- data.tar.gz: ac91baa3d9dffb55a1e4676fa7410918a8c24ad6
3
+ metadata.gz: 48146c9e38f7981ffc3086c52a26cc867d3c7348
4
+ data.tar.gz: 83c6c987d9045014ba3e47ea4e3ab789ee74e641
5
5
  SHA512:
6
- metadata.gz: b27c59f38d53bf0ca92e93cf251be87758369a9c4a7fac54d651c82e13a67d72d04bc3a7062ba15cccc82ded4e782f3314268c178f74496f6a57d46558145290
7
- data.tar.gz: 8f9b4bc200b035080365582e9ac5668e655a9c9ab5e10e0feba6e148a9b7a2c8698ae4ea4fe259124b0f629aec9a4bd5462e40b1bab724a5db13e35f54f7ec7a
6
+ metadata.gz: a8c7c6531d4cd4eae1784b4d04966ba66e0eb2859ac530cecde3d9039233af17d4b8a31aea03f02b628576c115c212c0f25813cb33debae4fe21c0631d6d02b2
7
+ data.tar.gz: 36735b3619b895a576e57b5e92eeb3bd5f93fe9806f70059fefadda592b65c0d5d4a3daa778267586f0201c101d251292e9c3dab04bd0727cae9c29a0811ce5e
@@ -42,7 +42,7 @@ module Rasti
42
42
 
43
43
  def authorized?(permission, params={})
44
44
  if self.class.authorizations.key? permission
45
- self.class.authorizations[permission].call params
45
+ instance_exec params, &self.class.authorizations[permission]
46
46
  else
47
47
  user.authorized? permission
48
48
  end
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  class App
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rasti-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-06 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto