omniauth-campus 0.8.8 → 0.8.9

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: 68a66b8683482d84c9e5c8963a2549c21b71cc50
4
- data.tar.gz: 8ff945c7900b90db108befae869d49525ec9b46c
3
+ metadata.gz: c5fda11102ffc5013a67955b2c29d6adfc1d0778
4
+ data.tar.gz: eee5cc6813051a42281fbeba2d511d99bf26c1ba
5
5
  SHA512:
6
- metadata.gz: 3aba42804bbf029c0040867791a4628a9f8d9ff4c85a40b5797dee5db73bc250b8384857c1d0ec02eaa5ccd6e6f8534c307c01627a04d95c60edaab1a541e09b
7
- data.tar.gz: 0d004a9330071b7485aa866f1dacd7ff1fed36936592f439c1bd82bbae33eca43f8657cd9ba2c6c2d4f7d3fec16c0c755b9a1d2a165ac47306e140c9981ef76b
6
+ metadata.gz: 3f885844facdaacc12e98b6f88bd2db897a3a1ea54499ede6c8551e38544003c81401769e58b7718ab13df70152fcaf98cff0988259a1a385acd4107724071c4
7
+ data.tar.gz: 49db960be8aba2647fea61bc8c9cb46742a09119cbd8fc7aff3f4d4c5d047c53aff9f14d490945c7e13e873228e692624b1cc2915d2553c3e81c12890a6be909
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.8.8"
3
+ VERSION = "0.8.9"
4
4
  end
5
5
  end
6
6
 
Binary file
@@ -1,11 +1,11 @@
1
- require 'omniauth-oauth'
1
+ require 'omniauth-oauth2'
2
2
  require 'rack/utils'
3
3
  require 'multi_json'
4
4
  require 'oauth'
5
5
 
6
6
  module OmniAuth
7
7
  module Strategies
8
- class Campus < OmniAuth::Strategies::OAuth
8
+ class Campus < OmniAuth::Strategies::OAuth2
9
9
  option :name, 'campus'
10
10
  option :client_options, {
11
11
  :site => 'https://dev-oauth-test.gotpantheon.com/myawesomejson',
@@ -13,10 +13,6 @@ module OmniAuth
13
13
  :token_url => '/oauth/access_token'
14
14
  }
15
15
 
16
- def request_phase
17
- super
18
- end
19
-
20
16
 
21
17
  uid { raw_info['uid'] }
22
18
 
@@ -33,11 +29,11 @@ module OmniAuth
33
29
  { :raw_info => raw_info }
34
30
  end
35
31
 
36
- def raw_info
32
+ #def raw_info
37
33
  # @raw_info ||= MultiJson.load(access_token.get('/users').body)
38
34
  #rescue ::Errno::ETIMEDOUT
39
35
  # raise ::Timeout::Error
40
- end
36
+ #end
41
37
 
42
38
  end
43
39
  end
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
- spec.add_runtime_dependency 'omniauth-oauth', '~> 1.0'
24
- #spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1', '>= 1.1.1'
23
+ #spec.add_runtime_dependency 'omniauth-oauth', '~> 1.0'
24
+ spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.1', '>= 1.1.1'
25
25
  #spec.add_runtime_dependency 'oauth'
26
26
  #spec.add_dependency 'oauth2', '~> 0.8.0'
27
27
  spec.add_dependency 'faraday', ['>= 0.8', '<0.10']
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.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr
@@ -39,19 +39,25 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: omniauth-oauth
42
+ name: omniauth-oauth2
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '1.1'
48
+ - - '>='
49
+ - !ruby/object:Gem::Version
50
+ version: 1.1.1
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
55
  - - ~>
53
56
  - !ruby/object:Gem::Version
54
- version: '1.0'
57
+ version: '1.1'
58
+ - - '>='
59
+ - !ruby/object:Gem::Version
60
+ version: 1.1.1
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: faraday
57
63
  requirement: !ruby/object:Gem::Requirement