lti_roles 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lti_roles.rb +5 -5
- data/lib/lti_roles/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fe490787524eb7f6b3fb35ecc580d8cd3f4db7a
|
4
|
+
data.tar.gz: 2cb53f7920b5d2de6f766dcf705034f2110ad507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb95baec26dd6e191d9819cbc498e76e03caaf77df341c5d931d93e1247d2738db5c218473061f0ccb457efd6682f1408ec18a07fa2459d61d30e541cfc71453
|
7
|
+
data.tar.gz: 1607994260bc6024a18500573514580f3c2b38cc4f72fb5a91091329f92a36cbaae466ff376fd0f7f4408bb3f3f7020a23956aa7f77d28f5b954b7546ca78b64
|
data/lib/lti_roles.rb
CHANGED
@@ -12,10 +12,10 @@ module LTIRoles
|
|
12
12
|
|
13
13
|
def initialize(roles = '')
|
14
14
|
@roles = roles
|
15
|
-
@context_types = []
|
16
|
-
@system_roles = []
|
17
|
-
@institution_roles = []
|
18
|
-
@context_roles = []
|
15
|
+
@context_types = []
|
16
|
+
@system_roles = []
|
17
|
+
@institution_roles = []
|
18
|
+
@context_roles = []
|
19
19
|
@other_roles = []
|
20
20
|
map_roles
|
21
21
|
end
|
@@ -38,7 +38,7 @@ module LTIRoles
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def clean_role(urn_prefix, role)
|
41
|
-
role.gsub(urn_prefix, '').gsub('/', '').underscore
|
41
|
+
role.gsub(/#{Regexp.quote(urn_prefix)}/i, '').gsub('/', '').underscore
|
42
42
|
end
|
43
43
|
|
44
44
|
def to_h
|
data/lib/lti_roles/version.rb
CHANGED