omniauth-campus 0.8.5 → 0.8.6

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
2
  SHA1:
3
- metadata.gz: 6c744966c23fc7e0866469690636d08dc9043274
4
- data.tar.gz: 977e3756f97198a433f40b29a4c14674ed63053d
3
+ metadata.gz: 0a7fb39ec4dfc6bec70734cc17b10247f579c8a0
4
+ data.tar.gz: 1e9f3165b8694f2926d12f3343613c145b918846
5
5
  SHA512:
6
- metadata.gz: dbb10d633ca164946331a30734ce41ff5ea1adc4f56e7d6eee6d2db5dd9de67c56f1f648d5691090dda32b4f97f3f62ffd6ac93dbb254b1eb4958a826e580c80
7
- data.tar.gz: 797f0347a58d0c4122312ca1b16b213a556313338f22a9f9a884b1bb9c9cc9b764e88b8dbc0dcff9185eac4d26ab20799095a8cea6382eb7eef481b780d66c16
6
+ metadata.gz: a2f56ffbc29d39068cdc3e4e94df935198ce19f694a96575cbbdf861313083f80baf99493a4b0b6c4f9d876d5b68718410b776f0d769554846dc231a0cf5f76d
7
+ data.tar.gz: 31591aaf189e5abe8308a60ed2becc4c164ea7c6fced05ec04ab3da7649f05957bab5f79d23609a6421cbedbed4aa7bb7fbfcc3ac00f6a9deea5b85a57631765
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.8.5"
3
+ VERSION = "0.8.6"
4
4
  end
5
5
  end
6
6
 
@@ -1,14 +1,13 @@
1
1
  require 'omniauth-oauth2'
2
2
  require 'rack/utils'
3
+ require 'multi_json'
3
4
 
4
5
  module OmniAuth
5
6
  module Strategies
6
7
  class Campus < OmniAuth::Strategies::OAuth2
7
8
  option :name, 'campus'
8
9
  option :client_options, {
9
- :site => 'https://dev-oauth-test.gotpantheon.com/myawesomejson',
10
- :proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil
11
- }
10
+ :site => 'https://dev-oauth-test.gotpantheon.com/myawesomejson' }
12
11
 
13
12
 
14
13
 
@@ -28,7 +27,7 @@ module OmniAuth
28
27
  end
29
28
 
30
29
  def raw_info
31
- @raw_info ||= MultiJson.load(access_token.get('/users').body)['users'][0]['user']
30
+ @raw_info ||= MultiJson.load(access_token.get('/users').body)
32
31
  rescue ::Errno::ETIMEDOUT
33
32
  raise ::Timeout::Error
34
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-campus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr