mumukit-auth 2.0.1 → 2.1.0

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: 652d4bc95dbc2128953b8560b33637e863f2f1a9
4
- data.tar.gz: b962a6b35d17bc52da59c2baec2b235d7bc55778
3
+ metadata.gz: ff7c69435ecb899c5608c46cbed9be525b22070d
4
+ data.tar.gz: 2f346c4d3278634444c8869610e4ee6a22e4f01e
5
5
  SHA512:
6
- metadata.gz: bb3ea8b81d02ae2c3c3a49667c1b10a3cb2acd7548fb3ed5048bac72463a851e0c7a666b696b02f7ee220ced916cc61fff0ba1d8ccfe6a4a75704558b6782d7a
7
- data.tar.gz: e84f91a20df6355f6510c964532c7f81cd94be782232eb048298053188f524e60384d8da0f90a56f7faf354867fb8e8453a12265cc8bed974e39b2e01d017ea0
6
+ metadata.gz: 7f96bd977dae66d8eace8ab3e4f842e2794e65ebe4c60ec0ea3deeb18fa1025e74e4601cf54c4d814593a8ec2ca27e79e66111a90e8e64d184d65a5c2eea1e4a
7
+ data.tar.gz: 1f7202678e723cd41214f426f267f1e2203d03036ef6803bcb8ef4c49cb08d6e479bbfaae02f8aca06043c0f9f32b822a464132cc7aac9f874a76077cb45dd56
@@ -6,7 +6,7 @@ class Mumukit::Auth::Permissions
6
6
  def initialize(scopes={})
7
7
  raise 'invalid scopes' if scopes.any? { |key, value| value.class != Mumukit::Auth::Scope }
8
8
 
9
- @scopes = scopes
9
+ @scopes = scopes.with_indifferent_access
10
10
  end
11
11
 
12
12
  def has_permission?(role, resource_slug)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Auth
3
- VERSION = '2.0.1'
3
+ VERSION = '2.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli