omniauth-nuwe 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/example/Gemfile +1 -1
- data/example/Gemfile.lock +8 -4
- data/lib/omniauth-nuwe/version.rb +1 -1
- data/lib/omniauth/strategies/nuwe.rb +5 -5
- data/spec/omniauth/strategies/nuwe_spec.rb +10 -8
- 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: 48b2df4585e2577bdd8fc90a6c0f4a9dae976ff4
|
4
|
+
data.tar.gz: 8f52c7288da7c17dde9af47b678204ec0952fccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a3a8321fb4c0fbbe959571a1ba98451d84f239dd0fbc9c72b096ee1a2e3ad6cd13702b5f0737a2e1038c763fdae17a73c270d4c1557e02efbd88005d10d2e58
|
7
|
+
data.tar.gz: 99476465cf3583cb2d914075ce7cff57dbd86f551e6f2786fbb3b6866401b8e6b100ce8949f4b7921656687387d3870f317c0e9b9cbaeb55fe5b5d96a9465dea
|
data/example/Gemfile
CHANGED
data/example/Gemfile.lock
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
omniauth-nuwe (1.0.3)
|
5
|
+
omniauth (~> 1.0)
|
6
|
+
omniauth-oauth2 (>= 1.1.1, < 2.0)
|
7
|
+
|
1
8
|
GEM
|
2
9
|
remote: https://rubygems.org/
|
3
10
|
specs:
|
@@ -17,9 +24,6 @@ GEM
|
|
17
24
|
omniauth (1.2.2)
|
18
25
|
hashie (>= 1.2, < 4)
|
19
26
|
rack (~> 1.0)
|
20
|
-
omniauth-nuwe (1.0.1)
|
21
|
-
omniauth (~> 1.0)
|
22
|
-
omniauth-oauth2 (>= 1.1.1, < 2.0)
|
23
27
|
omniauth-oauth2 (1.2.0)
|
24
28
|
faraday (>= 0.8, < 0.10)
|
25
29
|
multi_json (~> 1.3)
|
@@ -38,5 +42,5 @@ PLATFORMS
|
|
38
42
|
ruby
|
39
43
|
|
40
44
|
DEPENDENCIES
|
41
|
-
omniauth-nuwe
|
45
|
+
omniauth-nuwe!
|
42
46
|
sinatra
|
@@ -16,12 +16,12 @@ module OmniAuth
|
|
16
16
|
|
17
17
|
info do
|
18
18
|
{
|
19
|
-
:last_name => raw_info["profile"]["last_name"],
|
20
|
-
:first_name => raw_info["profile"]["first_name"],
|
19
|
+
:last_name => raw_info["user"]["profile"]["last_name"],
|
20
|
+
:first_name => raw_info["user"]["profile"]["first_name"],
|
21
21
|
:email => raw_info["user"]["email"],
|
22
|
-
:sex => raw_info["profile"]["sex"],
|
23
|
-
:birth_date => raw_info["profile"]["birth_date"],
|
24
|
-
:activity => raw_info["profile"]["activity"]
|
22
|
+
:sex => raw_info["user"]["profile"]["sex"],
|
23
|
+
:birth_date => raw_info["user"]["profile"]["birth_date"],
|
24
|
+
:activity => raw_info["user"]["profile"]["activity"]
|
25
25
|
|
26
26
|
}
|
27
27
|
end
|
@@ -33,14 +33,16 @@ describe "OmniAuth::Strategies::Nuwe" do
|
|
33
33
|
describe '#info' do
|
34
34
|
before :each do
|
35
35
|
@raw_info = { 'user' => { 'id' => 123,
|
36
|
-
'email' => 'fred@example.com'
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
36
|
+
'email' => 'fred@example.com',
|
37
|
+
'profile' => {
|
38
|
+
'first_name' => 'Fred',
|
39
|
+
'last_name' => 'Smith',
|
40
|
+
'sex' => 'F',
|
41
|
+
'birth_date' => '1981-08-01',
|
42
|
+
'activity' => 2 }
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
44
46
|
allow(subject).to receive_messages(:raw_info => @raw_info)
|
45
47
|
end
|
46
48
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-nuwe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephanie Nemeth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|