omniauth-mlh 0.3.1 → 0.4.1

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
- SHA1:
3
- metadata.gz: 03307dc90020f08280faac875faec0ac71111031
4
- data.tar.gz: e1829e9813ca6b21319006f5de592877e87ba7ea
2
+ SHA256:
3
+ metadata.gz: 1608c1c551536f2dde7aa485c7b6f61ed4ffa9131805d930f12e65aeb09b25ee
4
+ data.tar.gz: fcaf372603aede88fc7623f6aa981aefea2467597907a5266ab4f3ba57f4345b
5
5
  SHA512:
6
- metadata.gz: 2135d947f6b2c3f1982157648d2deb43a36fccfb28dbec1b8d9878e1070934f8faf63414bf3be376aa3a3ac9f33c7003b9a60cc2e17256be8308ef82a68ee1d4
7
- data.tar.gz: 7da3955342e679c494f88f3237a509c536aebba722568c39b0095f16e2fec1be513bb62593c820bdc86fb85fc266e70ac27636c6af7860face5e9799559652e8
6
+ metadata.gz: fffcc909ecd51283296ed328d36c5770a6fd0e1d11e8f51f40d9abb67ba0db4ce2b5638d0e83afdbeec01d39ed1393a9dcac311bc6c99d7ae291d7066313f50d
7
+ data.tar.gz: 8ca616032f69b5e082b02a880a75562d1620594d8fb34c611a05041d2e7217095240a6595aa5cf503b7ed2cf1a06a931ab988c7c91e405b5e64dd29add0eda63
data/README.md CHANGED
@@ -3,13 +3,17 @@
3
3
  [![Build Status](https://travis-ci.org/MLH/my-mlh-omniauth.svg?branch=master)](https://travis-ci.org/MLH/my-mlh-omniauth)
4
4
 
5
5
  This is the official [OmniAuth](https://github.com/omniauth/omniauth) strategy for
6
- authenticating with [MyMLH](https://my.mlh.io). To use it, you'll need to
6
+ authenticating with [MyMLH](https://my.mlh.io). To use it, you'll need to
7
7
  [register an application](https://my.mlh.io/oauth/applications) and obtain a OAuth Application ID and Secret from MyMLH.
8
8
 
9
- It now supports [MyMLH API V2](http://news.mlh.io/introducing-mymlh-v2-09-29-2016). [Read the MyMLH V2 docs here](https://my.mlh.io/docs).
9
+ It now supports MyMLH API V3. [Read the MyMLH V3 docs here](https://my.mlh.io/docs).
10
10
 
11
11
  Once you have done so, you can follow the instructions below:
12
12
 
13
+ ## Requirements
14
+
15
+ You need to have at least Ruby 2.2.4 to use this gem.
16
+
13
17
  ## Installation
14
18
 
15
19
  Add this line to your application's Gemfile:
@@ -1,7 +1,7 @@
1
1
  module OmniAuth
2
2
  module MLH
3
3
  MAJOR_VERSION = 0
4
- MINOR_VERSION = 3
4
+ MINOR_VERSION = 4
5
5
  RELEASE_VERSION = 1
6
6
 
7
7
  VERSION = [MAJOR_VERSION, MINOR_VERSION, RELEASE_VERSION].join('.')
@@ -23,9 +23,6 @@ module OmniAuth
23
23
  :last_name,
24
24
  :level_of_study,
25
25
  :major,
26
- :shirt_size,
27
- :dietary_restrictions,
28
- :special_needs,
29
26
  :date_of_birth,
30
27
  :gender,
31
28
  :phone_number,
@@ -35,7 +32,7 @@ module OmniAuth
35
32
  end
36
33
 
37
34
  def data
38
- @data ||= access_token.get('/api/v2/user.json').parsed.deep_symbolize_keys[:data] rescue {}
35
+ @data ||= access_token.get('/api/v3/user.json').parsed.deep_symbolize_keys[:data] rescue {}
39
36
  end
40
37
  end
41
38
  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.3.1
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swift
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-14 00:00:00.000000000 Z
11
+ date: 2020-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -148,7 +148,7 @@ homepage: http://github.com/mlh/omniauth-mlh
148
148
  licenses:
149
149
  - MIT
150
150
  metadata: {}
151
- post_install_message:
151
+ post_install_message:
152
152
  rdoc_options: []
153
153
  require_paths:
154
154
  - lib
@@ -163,9 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
165
  requirements: []
166
- rubyforge_project:
167
- rubygems_version: 2.4.5.1
168
- signing_key:
166
+ rubygems_version: 3.0.8
167
+ signing_key:
169
168
  specification_version: 4
170
169
  summary: Official OmniAuth strategy for My MLH.
171
170
  test_files: