omniauth-g5 0.2.0 → 0.3.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: 3c725fd3953602794351ab2800883220afc39466
4
- data.tar.gz: 8fc1bede6057617700b3f76643257af2cb676e38
3
+ metadata.gz: b6b7ffb6c317118d285c8b16f030e6237b79383e
4
+ data.tar.gz: 9909020b687642335d8a6487349f4818db47d605
5
5
  SHA512:
6
- metadata.gz: e6c228bccc9af1fb6a4073d1370e51d0379f481efc6293994f0b8909a20523998d129cac00bbe777667dab694548f859735c742d903cb44b34928d5129b8ea67
7
- data.tar.gz: e44cbdc3809ba2f2f513ecae13d4ebe6e78ae5a5a95155b1a9b90e7935ec0e4deacd64c7d31ada5a8af2403b330aaf63d300ac7efea88420cfacf536d6d337e3
6
+ metadata.gz: c42225051cf91f1c502017af0d501530b88ff4d84e096f707372597f684cc6955c5d100c7d85f65aa7c8963cf1068b6cf0a87b71472f01f9d20ef92b0510e1fc
7
+ data.tar.gz: a851e83c340227e6a32f6e3c64c54fc4b24f54d5fdc20caca24cd5c0d750d50878eccfd22a67c308a3f1390e5e33c922b30ec7f86b413ec324ee7819749a7666
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  .DS_Store
19
+ .idea
@@ -38,7 +38,7 @@ module OmniAuth
38
38
 
39
39
  def roles
40
40
  [raw_info['roles']].flatten.collect do |role|
41
- {:name => role['name']}
41
+ {name: role['name'], type: role['type'], urn: role['urn']}
42
42
  end
43
43
  end
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module G5
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
@@ -150,7 +150,7 @@ describe OmniAuth::Strategies::G5 do
150
150
  end
151
151
 
152
152
  context 'when there is one role' do
153
- let(:role_data) { [{'name' => 'viewer'}] }
153
+ let(:role_data) { [{'name' => 'viewer', 'type'=>'GLOBAL','urn'=>nil}] }
154
154
 
155
155
  its(:count) { is_expected.to eq(1) }
156
156
 
@@ -161,13 +161,13 @@ describe OmniAuth::Strategies::G5 do
161
161
 
162
162
  context 'when there are two roles' do
163
163
  let(:role_data) do
164
- [{'name' => 'super_admin'},
165
- {'name' => 'editor'}]
164
+ [{'name' => 'super_admin', 'type'=>'GLOBAL', 'urn'=>nil},
165
+ {'name' => 'editor', 'type'=>'G5Updatable::Client', 'urn'=>'someurn'}]
166
166
  end
167
167
 
168
168
  its(:count) { is_expected.to eq(2) }
169
- it { is_expected.to include({name: 'super_admin'}) }
170
- it { is_expected.to include({name: 'editor'}) }
169
+ it { is_expected.to include({name: 'super_admin', type: 'GLOBAL', urn:nil}) }
170
+ it { is_expected.to include({name: 'editor', type: 'G5Updatable::Client', urn:'someurn'}) }
171
171
  end
172
172
  end
173
173
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-g5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maeve Revels
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-20 00:00:00.000000000 Z
12
+ date: 2015-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2