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 +4 -4
- data/.gitignore +1 -0
- data/lib/omniauth/strategies/g5.rb +1 -1
- data/lib/omniauth-g5/version.rb +1 -1
- data/spec/omniauth/strategies/g5_spec.rb +5 -5
- 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: b6b7ffb6c317118d285c8b16f030e6237b79383e
|
4
|
+
data.tar.gz: 9909020b687642335d8a6487349f4818db47d605
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c42225051cf91f1c502017af0d501530b88ff4d84e096f707372597f684cc6955c5d100c7d85f65aa7c8963cf1068b6cf0a87b71472f01f9d20ef92b0510e1fc
|
7
|
+
data.tar.gz: a851e83c340227e6a32f6e3c64c54fc4b24f54d5fdc20caca24cd5c0d750d50878eccfd22a67c308a3f1390e5e33c922b30ec7f86b413ec324ee7819749a7666
|
data/.gitignore
CHANGED
data/lib/omniauth-g5/version.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|