omniauth-weibo-oauth2 0.5.1 → 0.5.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: 5e639970c9ca1435caca8e77c1340e9d3aecad78
4
- data.tar.gz: 37f0ccbeca65351bb326083fb2e8c585870dd880
3
+ metadata.gz: 5b3d93ab14562923239eea5ac5ea2a1b19e0b1c5
4
+ data.tar.gz: 844f6c29026093a29483be1a33379b1cb2afbd3e
5
5
  SHA512:
6
- metadata.gz: 4b1c35d239c1bd8e1e778bc66127ca7bb45bcea110ab9f27947c9e1ebed44efebaf39d7797bb1c5b3709e489e0bec6e25c4a443d113ee237039bbffc5e6d4d43
7
- data.tar.gz: cbeb61f9ac6c1b8396622253f6c0b2a041389ddcd571efeee2bc89636158842d911e23e2c11d084ff942e442052f18e0009f171b5441fa5f3b600edb763344b3
6
+ metadata.gz: 400463d7ae3a5a75981a6b98fa42447f0ef5d802141174aa67387389f91c840dc505e80b09aebef3dcdf182eab627610eca4cd52e0626462241f36b68d77eec0
7
+ data.tar.gz: 28ab041de377dcf0a70afbf42a2fa9503f85a6f090e6d78a70edce1033d0beffaa5730d9c75d89a3977c7530fa639ca3c4b03b4ebf7e3584270e98f4db9ad2a9
data/README.md CHANGED
@@ -92,7 +92,7 @@ Here's an example *Authentication Hash* available in `request.env['omniauth.auth
92
92
  }
93
93
  }
94
94
  ```
95
- *PS.* Built and tested on MRI Ruby 1.9.3
95
+ *PS.* Built and tested on MRI Ruby 2.4.2
96
96
 
97
97
  ## Build&pulish gem
98
98
  ```
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module WeiboOauth2
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
@@ -38,7 +38,11 @@ module OmniAuth
38
38
  end
39
39
 
40
40
  def callback_url
41
- full_host + script_name + callback_path
41
+ token_params_redirect || (full_host + script_name + callback_path)
42
+ end
43
+
44
+ def token_params_redirect
45
+ token_params['redirect_uri'] || token_params[:redirect_uri]
42
46
  end
43
47
 
44
48
  def raw_info
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-weibo-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bin He
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-30 00:00:00.000000000 Z
11
+ date: 2018-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth