lti_roles 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2821dc26a4f22b649bdad2024e96dbed97e400d
4
- data.tar.gz: fbfd73741ee21fd1260dfd2f87fcb367b8979fad
3
+ metadata.gz: c1b5dce00823fac8ca28996f3f40eea2466eb476
4
+ data.tar.gz: '029ba3f785b0342e4e913822a392a8c789258e9d'
5
5
  SHA512:
6
- metadata.gz: 69e908450169f316b86866fc8f4dee1ca9de4470f78cec56d2caaee143b05fcf41bd135add7c1d26186b8283098cdce8f95aa57ab395a479814aec87ddd94cd9
7
- data.tar.gz: cd678f24ecac3024dd1543a84a0a0b3b093c81dccae8c940a276a8ded11278cf7e5e9856dd92066b54426390ffc7700aeb881d91332a5849ef3e899c95bf7425
6
+ metadata.gz: '049a21c00354302dde67ff06325ec4dae51f7e1c05de4b283c7c8bc30d0651cf8d01e4452968ed9bd2d7d76acfaedb1fd1adfcc18a256f6f8ff00052704cb2af'
7
+ data.tar.gz: bc845141f1327b88b7212a2a99d32c3e8ab12085ac41a2faf4bd674a5e9a461fed2972d967bea0f867349dc4ee4845b0a5ea447f3a4ecd306e7557f17bbabeab
@@ -21,16 +21,17 @@ module LTIRoles
21
21
  def map_roles(urn_prefix)
22
22
  roles.split(',').map do |role|
23
23
  next unless role.include?(urn_prefix)
24
- role.gsub(urn_prefix, '').gsub('/', '').underscore.to_sym
24
+ role.gsub(urn_prefix, '').gsub('/', '').underscore
25
25
  end.compact
26
26
  end
27
27
 
28
28
  def to_h
29
29
  {
30
- context_type: context_types,
31
- system_roles: system_roles,
32
- institution_roles: institution_roles,
33
- context_roles: context_roles
30
+ 'roles' => roles,
31
+ 'context_type' => context_types,
32
+ 'system_roles' => system_roles,
33
+ 'institution_roles' => institution_roles,
34
+ 'context_roles' => context_roles
34
35
  }
35
36
  end
36
37
 
@@ -1,3 +1,3 @@
1
1
  module LTIRoles
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lti_roles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Tanner