omniauth-campus 6.5 → 6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61d64aadd4d2c5fac191dd357d8f8287687182e2
4
- data.tar.gz: 45fe672ffb9176d9f67bd5b4ca7c9afdfb505ca8
3
+ metadata.gz: 9029b4afae58395925fa25b47980e0b331d894a3
4
+ data.tar.gz: f3092a21f66864bd17268a9dfb2ce6ae9ad14898
5
5
  SHA512:
6
- metadata.gz: ed2c7f7d6cb96b59516bda38b9e506faf1219519f6eee6e34cdd222d710c8443742f8c3a8fca83393cea3ea631db0f009e9e8cbb5188a7cae79eecbb2af93882
7
- data.tar.gz: c49006bb04fffa609135c93ca6113afccc07af2d5d9c63fa87124753517f376b16a843f3b737795d52d8aedb99e1af19cd15fa59668ed4b33b40ed361e740a47
6
+ metadata.gz: 10899ec7b86a2e65ba2228d1927d7ae460eef992ee35e52884410084205e28efb7d93cc908edd91d4d1dc42e5a7bcc502c353fb407da957ef3a349065e62453c
7
+ data.tar.gz: 494ffb0d229741b6f083f0a9beb7d5a02b71b14dcabc7b8e8c2fb6e4dc34632e37676a2537ccb4939ac4183b3820c44e698cd02f223ad7f46123d7083c8317cd
@@ -33,10 +33,11 @@ module OmniAuth
33
33
  #:proxy => ENV['http_proxy'] ? URI(ENV['http_proxy']) : nil}
34
34
 
35
35
 
36
- uid{access_token.params['uid']}
36
+ uid{raw_info['uid']}
37
37
 
38
38
  info do {
39
- :name => raw_info['name']
39
+ :name => raw_info['name'],
40
+ :mail => raw_info['mail']
40
41
  }
41
42
  end
42
43
 
@@ -46,7 +47,7 @@ module OmniAuth
46
47
  end
47
48
 
48
49
  def raw_info
49
- @raw_info ||= MultiJson.decode(access_token.get("/myawesomejson/user/1").body)
50
+ @raw_info ||= MultiJson.decode(access_token.get("#{options[:client_options][:site]}/myawesomejson/user.json").body)
50
51
  rescue ::Errno::ETIMEDOUT
51
52
  raise ::Timeout::Error
52
53
  end
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "6.5"
3
+ VERSION = "6.6"
4
4
  end
5
5
  end
6
6
 
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: '6.5'
4
+ version: '6.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr