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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmExMjQxZmNhNTc4ZTBlMDhhZjQ0MWQ5ZWIyNTcwOGQyMDIzMjFlNQ==
4
+ NjkzNTk2YzE3MTlhOTJmYmQwNzFiM2Y2Yjc1MTE1MTdmNjgyYThlNw==
5
5
  data.tar.gz: !binary |-
6
- NTBmZWZlZTlhZGVhYmMzOGE0NWQzYTNkOTEyYWE1YWZiMDEyNWFjNw==
6
+ MmIwODYzYWFkYzVjMmY2OTdlZjliMmYyMzQxMzE1MmI3YTM2ODUzNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTI3NDY1OWU1MzBkMTkyNTRmMGY1YzZkZDAxYzhlODFjZGVmMmMxNjJjNjIw
10
- YTY3OTEwOGU2MjY3NDYwOWYzMzY3MWE5Y2Q1NDdiYTU0NTE3Y2ZiMTg4OTAy
11
- MTgwNjMzZGM0MzUwMjRiNzYxOTliMmIwYzAxMmU1MmRjNDY2MzE=
9
+ YTViNzg1MzdhZmI3MmI5MmFmNWZmZGNlYTcxNTcyNTlkNDcwYzQ0YjJhNDdh
10
+ ZDcwODExMWY4MTU5OGZkYjhmNTVhMTFhNzYzYjhiODExODk4ZmQxM2NlZWEw
11
+ NjNhMmYzMmY4OTJmNjAyZmMwOWZhMTZjN2M1MWI1NDdhMGFmMTI=
12
12
  data.tar.gz: !binary |-
13
- ODEzNjU1YjA5MDM0OTNkMzNkNjk0OGZiN2I2OWRjOTA1ZDA5MGM2NTQ4ZTE0
14
- ODM3MDRmYjZhMjAzZmM1ZTM2MmE1Nzg1YTU4MDUxOWEzMzM4MWM4OTQ5NTVj
15
- NTczNWY3MjY5ZTYzYTBmNGMzNTgyNTY4ZTkyMWJiMDM0ZmQzODE=
13
+ MTQ4NmM5ODdiN2FjN2FiNzJlNGExMGFmZWY4Njc2NWVhYTQzYjBhZDFjYjlm
14
+ MTA0M2ZhY2E5YmViOWQ0MTg3YTJkYjg4NDQwMzAwNzNmYzJmYjlkOTA1OWI0
15
+ Y2YxNTMxNDJjZGU0Y2M0MjY1ZjhkOTdkODYwMDcxNTMwOTFiMmQ=
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module MLH
3
- VERSION = "0.2.3"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -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
- :graduation => raw_info['data']['graduation'],
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 => raw_info['data']['school']['id'],
33
- :name => raw_info['data']['school']['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/v1/user.json').parsed
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.2.3
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: 2015-12-14 00:00:00.000000000 Z
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: