ez-permissions 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: e66c7c3aaf11e53f4f1049546d344eef5ef7ef0c4ab2af0ffb8940d11a64afa1
4
- data.tar.gz: 6833c0293e997dd7d6f9f82d1c7794f1197f5167012254260b1d0f763e0bc32c
3
+ metadata.gz: 984d6374d7c75464d59b3f328d1414ab0ba536096cfc47d5136b428fa9e553aa
4
+ data.tar.gz: df9ccd8c7a2ef20e234e569a57ad8a3c5ee8bed61812e07ffb51f5f39b8923ff
5
5
  SHA512:
6
- metadata.gz: d99a291847509881c4d11c804fd1b92a9bfc62da9f28d4f802bfcc0d3b61fcd15dc6da4ad980ef6b2ee861b9c28806b09e194b7160b4e74a65a5d54716758977
7
- data.tar.gz: c20c12f67b68b8bac4f88402eeff521d06eb6e731c2811385ab20d64d9dc2f334003acc03ab512daf61cce6adcaef37ef8e58678747aff3e449e1518c3559e30
6
+ metadata.gz: a411b1bfda2dbc37632ee9bde8bb0adc51378e29b04102f57ee51bec634c13acb5d82357ce6efe4f62c0b9b6005868bf442616bbba5483286a830b09de677f1e
7
+ data.tar.gz: a13ea9bb593eff61ed5d563a27dfd7b633b6c7087b857969c059b4f22042f6f5736b49c2af4c396250dfe89bad988522fd4f04097ba06326674f109ec3d3470c
@@ -17,7 +17,7 @@ module Ez
17
17
 
18
18
  def authorize!(action_name, resource_name)
19
19
  permissions_map.fetch(to_key(action_name, resource_name))
20
- rescue KeyError => ex
20
+ rescue KeyError
21
21
  raise Ez::Permissions::NotAuthorizedError
22
22
  end
23
23
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ez
4
4
  module Permissions
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.1'
6
6
  end
7
7
  end
@@ -7,8 +7,8 @@ namespace :ez do
7
7
  Ez::Permissions::Permission.find_each do |permission|
8
8
  next if Ez::Permissions::DSL.resource_action?(permission.resource, permission.action)
9
9
 
10
- STDOUT.puts "[WARNING] Ez::Permissions: \n"
11
- "Permission##{permission.id} [#{permission.resource} -> #{permission.action}] is redundant"
10
+ STDOUT.puts '[WARNING] Ez::Permissions:'\
11
+ "Permission##{permission.id} [#{permission.resource} -> #{permission.action}] is redundant"
12
12
  end
13
13
  end
14
14
 
@@ -17,8 +17,8 @@ namespace :ez do
17
17
  next if Ez::Permissions::DSL.resource_action?(permission.resource, permission.action)
18
18
 
19
19
  permission.destroy
20
- STDOUT.puts "[WARNING] Ez::Permissions: \n"
21
- "Permission##{permission.id} [#{permission.resource} -> #{permission.action}] is removed"
20
+ STDOUT.puts '[WARNING] Ez::Permissions:'\
21
+ "Permission##{permission.id} [#{permission.resource} -> #{permission.action}] is removed"
22
22
  end
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez-permissions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volodya Sveredyuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-08 00:00:00.000000000 Z
11
+ date: 2019-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ez-core
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubygems_version: 3.0.6
211
+ rubygems_version: 3.0.3
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Easy permissions engine for Rails app.