omniauth-mlh 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/omniauth-mlh/version.rb +1 -1
- data/lib/omniauth/strategies/mlh.rb +5 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjkzNTk2YzE3MTlhOTJmYmQwNzFiM2Y2Yjc1MTE1MTdmNjgyYThlNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmIwODYzYWFkYzVjMmY2OTdlZjliMmYyMzQxMzE1MmI3YTM2ODUzNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTViNzg1MzdhZmI3MmI5MmFmNWZmZGNlYTcxNTcyNTlkNDcwYzQ0YjJhNDdh
|
10
|
+
ZDcwODExMWY4MTU5OGZkYjhmNTVhMTFhNzYzYjhiODExODk4ZmQxM2NlZWEw
|
11
|
+
NjNhMmYzMmY4OTJmNjAyZmMwOWZhMTZjN2M1MWI1NDdhMGFmMTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTQ4NmM5ODdiN2FjN2FiNzJlNGExMGFmZWY4Njc2NWVhYTQzYjBhZDFjYjlm
|
14
|
+
MTA0M2ZhY2E5YmViOWQ0MTg3YTJkYjg4NDQwMzAwNzNmYzJmYjlkOTA1OWI0
|
15
|
+
Y2YxNTMxNDJjZGU0Y2M0MjY1ZjhkOTdkODYwMDcxNTMwOTFiMmQ=
|
data/lib/omniauth-mlh/version.rb
CHANGED
@@ -20,7 +20,7 @@ module OmniAuth
|
|
20
20
|
:updated_at => raw_info['data']['updated_at'],
|
21
21
|
:first_name => raw_info['data']['first_name'],
|
22
22
|
:last_name => raw_info['data']['last_name'],
|
23
|
-
:
|
23
|
+
:level_of_study => raw_info['data']['level_of_study'],
|
24
24
|
:major => raw_info['data']['major'],
|
25
25
|
:shirt_size => raw_info['data']['shirt_size'],
|
26
26
|
:dietary_restrictions => raw_info['data']['dietary_restrictions'],
|
@@ -28,15 +28,16 @@ module OmniAuth
|
|
28
28
|
:date_of_birth => raw_info['data']['date_of_birth'],
|
29
29
|
:gender => raw_info['data']['gender'],
|
30
30
|
:phone_number => raw_info['data']['phone_number'],
|
31
|
+
:scopes => raw_info['data']['scopes'],
|
31
32
|
:school => {
|
32
|
-
:id =>
|
33
|
-
:name =>
|
33
|
+
:id => raw_info['data']['school']['id'],
|
34
|
+
:name => raw_info['data']['school']['name'],
|
34
35
|
}
|
35
36
|
}
|
36
37
|
end
|
37
38
|
|
38
39
|
def raw_info
|
39
|
-
@raw_info ||= access_token.get('/api/
|
40
|
+
@raw_info ||= access_token.get('/api/v2/user.json').parsed
|
40
41
|
end
|
41
42
|
end
|
42
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-mlh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swift
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -141,3 +141,4 @@ summary: Official OmniAuth strategy for My MLH.
|
|
141
141
|
test_files:
|
142
142
|
- spec/omniauth/mlh_spec.rb
|
143
143
|
- spec/spec_helper.rb
|
144
|
+
has_rdoc:
|