mumukit-auth 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/auth/permissions.rb +4 -0
- data/lib/mumukit/auth/store.rb +4 -0
- data/lib/mumukit/auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63256ef255aa98c721f6ae19e80175d854a95b1f
|
4
|
+
data.tar.gz: 2363ef922d76cc6be39fca46a586cc034d3e3968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5c80f78f868f61cbd86b9e7fe2b7c015cbbbc1e90354f74ea630d920fce964255b2b0fc00b5992da25ae2eec237f5a0a53fe8b95b575d0dad61a4155bc3f07e
|
7
|
+
data.tar.gz: 36fde21860e81bf850740361ea5825bf005e49dff2dbca0620859d645be18ad5bff86f75d87d4a36b3b3150fbb6813739a2beff9d622a2b6751a98cae35639ac
|
@@ -50,6 +50,10 @@ class Mumukit::Auth::Permissions
|
|
50
50
|
other.scopes.all? { |role, scope| has_all_permissions?(role, scope) }
|
51
51
|
end
|
52
52
|
|
53
|
+
def grant_strings_for(role)
|
54
|
+
scope_for(role).grants.map(&:to_s)
|
55
|
+
end
|
56
|
+
|
53
57
|
def as_json(options={})
|
54
58
|
scopes.as_json(options)
|
55
59
|
end
|
data/lib/mumukit/auth/store.rb
CHANGED
data/lib/mumukit/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|