omniauth-eve_o 0.1.1 → 0.1.2

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: 151e7e9b2d8ad7fbd60928431e826eae6a8dbbb2
4
- data.tar.gz: e2559e45dc12671f0e6b420c48f74deef3d06b09
3
+ metadata.gz: cac1cf844083443ae0c66ed8061ea31f2c077389
4
+ data.tar.gz: 49d4660f2fc3e597901734337ba6bf9733c4c6c0
5
5
  SHA512:
6
- metadata.gz: 0c34a4da8dc1fc0517a278ce7c4748aaa50c94e379ea7fad7cc91d2300fe848fca2a72c3f2b58698bcfe158a21693ebc8526b0f6ec2857ee0e571b2a885d2e7c
7
- data.tar.gz: 855d0bf832076a05b040453056cf2d9f82e4774ad30024380d9c7222b4677638fca02b8f55c2b0f839a69a626c9cda6452a730bc8dc23c97d71c4d081cca118c
6
+ metadata.gz: fe1f18ad2fed72da3ffdff34b77f753ff08ff7459613109bc88bb0a7f654d04551cb9c89b9f80a0fe0d61214f99d81e5a87f06e244986200af347d2e0760cded
7
+ data.tar.gz: 3ebc053a36439f4ee4cf0d4bfd0ba55cae992acfa5a075cd68cf11fa6944283857c15423642425273b5b8b3af96b902c8589a680be9cce70227cc7a24422d6d2
data/.gitignore CHANGED
@@ -1 +1,3 @@
1
1
  omniauth-eve_o-0.1.0.gem
2
+ omniauth-eve_o-0.1.1.gem
3
+ omniauth-eve_o-0.1.2.gem
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module EveO
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -9,6 +9,8 @@ module OmniAuth
9
9
  token_url: 'https://login.eveonline.com/oauth/token'
10
10
  }
11
11
 
12
+ option :name, 'eve_o'
13
+
12
14
  uid { raw_info['CharacterID'] }
13
15
 
14
16
  info do
@@ -29,7 +31,19 @@ module OmniAuth
29
31
  end
30
32
 
31
33
  def raw_info
32
- raw_info ||= access_token.get('/oauth/verify').parsed
34
+ @raw_info ||= access_token.get('/oauth/verify').parsed
35
+ end
36
+
37
+ def authorize_params
38
+ super.tap do |params|
39
+ %w[scope].each do |v|
40
+ if request.params[v]
41
+ params[v.to_sym] = request.params[v]
42
+ end
43
+ end
44
+
45
+ params[:scope] ||= ''
46
+ end
33
47
  end
34
48
  end
35
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-eve_o
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Chambers
@@ -86,7 +86,6 @@ files:
86
86
  - bin/console
87
87
  - bin/setup
88
88
  - lib/omniauth-eve_o.rb
89
- - lib/omniauth-eve_o/version.rb
90
89
  - lib/omniauth/eve_o.rb
91
90
  - lib/omniauth/eve_o/version.rb
92
91
  - lib/omniauth/strategies/eve_o.rb
@@ -1,5 +0,0 @@
1
- module OmniAuth
2
- module EveO
3
- VERSION = "0.1.0"
4
- end
5
- end