omniauth-weibo-oauth2 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/omniauth-weibo-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/weibo.rb +1 -5
- data/omniauth-weibo-oauth2.gemspec +3 -2
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NzFiNmNjYTZkZDQyM2VjMzUzNTg2NjE3ZmZiNzlhMjY0OWMyZmRkZQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 02c17661c1919e2b6c55b1a9ecdb6f30da587bc7
|
4
|
+
data.tar.gz: d77d0c69a9e207f5a40de7c570016ad758393cb2
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZDdiMmVlZTM1Y2QxMjdiMTg1ODIyMGE0MmQ3MjViYjQ4MTUwYmRiNTQ4Nzhj
|
11
|
-
OGEyMDRiNzExZTkyNmMyMjBjZjVlYWViNTVmMzI5YjUyZGNjODg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MDdkNTBhNWUyMThhZTg5ZTQyMTliNGFjNmNmYTMxN2U5Zjg0MzkwZTJmZTI2
|
14
|
-
OTIxNjZkOTljNjRhMTVjNzQzY2Y3NDRjYmJkYTRlM2RiYTE2NGUxMmUxN2Ux
|
15
|
-
YTg0YmI4ODQ1ZDZhN2VjYjczMDE2NjhkMmU2MTE3OGE5MzgzYmU=
|
6
|
+
metadata.gz: 3349f45a10fb85ad7bd199d7cedcf04d1a2b2667c6a373b740fb45331d5a2c4885b32d010b3cf63ed68d966545b3015e0145a275876b4287d8c4fd54c0cae792
|
7
|
+
data.tar.gz: 1ca72151aa96bd53e2aa7de280a5a2c576949cb3068c3ec909627f28808dceff0505c54130ae70a4d5119b5505d2c4eb95952b41bc02e3058100b9a6d1a4ef60
|
@@ -37,10 +37,6 @@ module OmniAuth
|
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
|
-
def callback_url
|
41
|
-
full_host + script_name + callback_path
|
42
|
-
end
|
43
|
-
|
44
40
|
def raw_info
|
45
41
|
access_token.options[:mode] = :query
|
46
42
|
access_token.options[:param_name] = 'access_token'
|
@@ -96,7 +92,7 @@ module OmniAuth
|
|
96
92
|
'client_secret' => client.secret,
|
97
93
|
'code' => request.params['code'],
|
98
94
|
'grant_type' => 'authorization_code',
|
99
|
-
'redirect_uri' =>
|
95
|
+
'redirect_uri' => options['redirect_uri']
|
100
96
|
}.merge(token_params.to_hash(symbolize_keys: true))
|
101
97
|
client.get_token(params, deep_symbolize(options.auth_token_params))
|
102
98
|
end
|
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{OmniAuth Oauth2 strategy for weibo.com.}
|
8
8
|
gem.summary = %q{OmniAuth Oauth2 strategy for weibo.com.}
|
9
9
|
gem.homepage = "https://github.com/beenhero/omniauth-weibo-oauth2"
|
10
|
+
gem.license = "MIT"
|
10
11
|
|
11
12
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
13
|
gem.files = `git ls-files`.split("\n")
|
@@ -15,6 +16,6 @@ Gem::Specification.new do |gem|
|
|
15
16
|
gem.require_paths = ["lib"]
|
16
17
|
gem.version = OmniAuth::WeiboOauth2::VERSION
|
17
18
|
|
18
|
-
gem.add_dependency 'omniauth', '~> 1.
|
19
|
-
gem.add_dependency 'omniauth-oauth2', '
|
19
|
+
gem.add_dependency 'omniauth', '~> 1.5'
|
20
|
+
gem.add_dependency 'omniauth-oauth2', '>= 1.4.0'
|
20
21
|
end
|
metadata
CHANGED
@@ -1,51 +1,51 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-weibo-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bin He
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.4.0
|
41
41
|
description: OmniAuth Oauth2 strategy for weibo.com.
|
42
42
|
email: beenhero@gmail.com
|
43
43
|
executables: []
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
-
- .gitignore
|
48
|
-
- .travis.yml
|
47
|
+
- ".gitignore"
|
48
|
+
- ".travis.yml"
|
49
49
|
- Gemfile
|
50
50
|
- LICENSE.md
|
51
51
|
- README.md
|
@@ -55,7 +55,8 @@ files:
|
|
55
55
|
- lib/omniauth/strategies/weibo.rb
|
56
56
|
- omniauth-weibo-oauth2.gemspec
|
57
57
|
homepage: https://github.com/beenhero/omniauth-weibo-oauth2
|
58
|
-
licenses:
|
58
|
+
licenses:
|
59
|
+
- MIT
|
59
60
|
metadata: {}
|
60
61
|
post_install_message:
|
61
62
|
rdoc_options: []
|
@@ -63,17 +64,17 @@ require_paths:
|
|
63
64
|
- lib
|
64
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
66
|
requirements:
|
66
|
-
- -
|
67
|
+
- - ">="
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: '0'
|
69
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
71
|
requirements:
|
71
|
-
- -
|
72
|
+
- - ">="
|
72
73
|
- !ruby/object:Gem::Version
|
73
74
|
version: '0'
|
74
75
|
requirements: []
|
75
76
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.6.12
|
77
78
|
signing_key:
|
78
79
|
specification_version: 4
|
79
80
|
summary: OmniAuth Oauth2 strategy for weibo.com.
|