rbac_core 0.0.3 → 0.0.5

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: 3052b5cce327658cc2c957432c456a5041a6394e
4
- data.tar.gz: 1e7bd8c9b799b916c097018c244a7efc05b635b7
3
+ metadata.gz: af8fa23cb6799737ab411e0db0cad9c7348e41fb
4
+ data.tar.gz: 88c458eeb4f692e09c1a5612a39d1eb3eb7f1f4c
5
5
  SHA512:
6
- metadata.gz: a2034552c254ba6cb7539d531004c7d42df0849f1229740c819fab4fc9b3b5f1a349abf4aa1db06d2629d9c6514d58a93b961d889a229ea167c8dab8445b6bdd
7
- data.tar.gz: e2192ecc0b42239526d0c98b0c61fdf42781a80c2dc9a0bb18ce36e8f7cfe656ba9cdb1a9bd35eb9a299a70858c0619f4807e83446cfda2558dbc13a715d1280
6
+ metadata.gz: 1f67fab048dc53c91bf9eb1454613973c48bb223557b1c3ef1cc10d367831e016e9f40139f8f7c1ff7149d56c61b73444c1bf94d9512ac2f3465c691597b041e
7
+ data.tar.gz: a7832ff71c2760be51d7bb134404809097a7db24f72301ce250e70168a13fba81465b1563f46cf66711f94eac7f7fd445b3085513fac8a9f3334542fe42ac9ca
@@ -5,7 +5,7 @@ module RbacCore
5
5
  @set = set
6
6
  end
7
7
 
8
- def permission(name, default = false, **options, &block)
8
+ def permission(name, default: false, **options, &block)
9
9
  @set.register_permission name, default, @constraints.merge(options), &block
10
10
  self
11
11
  end
@@ -1,9 +1,9 @@
1
1
  module RbacCore
2
2
  class Permission
3
- attr_reader :action, :priority
3
+ attr_reader :name, :priority
4
4
 
5
- def initialize(action, priority: 0, **options, &block)
6
- @action = action
5
+ def initialize(name, priority: 0, **options, &block)
6
+ @name = name
7
7
  @priority = priority
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module RbacCore
2
- VERSION = "0.0.3".freeze
2
+ VERSION = "0.0.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbac_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl