omniauth-weibo-oauth2 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.travis.yml +7 -0
- data/Gemfile +12 -1
- data/LICENSE.md +21 -0
- data/README.md +17 -7
- data/Rakefile +7 -0
- data/lib/omniauth-weibo-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/weibo.rb +5 -1
- metadata +13 -10
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NjVlNjI1N2Y4MTMwNjcyNzBmZmRiZTA3ZTJlNDM5OWE3ZjBkNTUzYQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NzFiNmNjYTZkZDQyM2VjMzUzNTg2NjE3ZmZiNzlhMjY0OWMyZmRkZQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OGU3Y2FhMGI0MGRkMjYyMzA1YmM5YWY0MmNkNzQ3MmY4ZjBlMWY2NDU4MTU0
|
10
|
+
ZDdiMmVlZTM1Y2QxMjdiMTg1ODIyMGE0MmQ3MjViYjQ4MTUwYmRiNTQ4Nzhj
|
11
|
+
OGEyMDRiNzExZTkyNmMyMjBjZjVlYWViNTVmMzI5YjUyZGNjODg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MDdkNTBhNWUyMThhZTg5ZTQyMTliNGFjNmNmYTMxN2U5Zjg0MzkwZTJmZTI2
|
14
|
+
OTIxNjZkOTljNjRhMTVjNzQzY2Y3NDRjYmJkYTRlM2RiYTE2NGUxMmUxN2Ux
|
15
|
+
YTg0YmI4ODQ1ZDZhN2VjYjczMDE2NjhkMmU2MTE3OGE5MzgzYmU=
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -1,2 +1,13 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in omniauth-weibo-oauth2.gemspec
|
2
4
|
gemspec
|
5
|
+
|
6
|
+
group :development, :test do
|
7
|
+
gem 'guard'
|
8
|
+
gem 'guard-rspec'
|
9
|
+
gem 'guard-bundler'
|
10
|
+
gem 'rb-fsevent'
|
11
|
+
gem 'growl'
|
12
|
+
gem 'rake'
|
13
|
+
end
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2012-2017 Bin He
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
# Status
|
2
|
+
[![Gem Version](https://img.shields.io/gem/v/omniauth-weibo-oauth2.svg)][gem]
|
3
|
+
[![Security Check](https://hakiri.io/github/beenhero/omniauth-weibo-oauth2/master.svg)][security]
|
4
|
+
[![Percentage of issues still open](https://isitmaintained.com/badge/open/beenhero/omniauth-weibo-oauth2.svg)][OpenIssues]
|
5
|
+
[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/beenhero/omniauth-weibo-oauth2.svg)][IssueResolution]
|
6
|
+
[![Build Status](https://travis-ci.org/NeverMin/omniauth-weibo-oauth2.svg?branch=master)][travis]
|
7
|
+
|
8
|
+
[gem]: https://rubygems.org/gems/omniauth-weibo-oauth2
|
9
|
+
[security]: https://hakiri.io/github/beenhero/omniauth-weibo-oauth2/master
|
10
|
+
[OpenIssues]: https://isitmaintained.com/project/beenhero/omniauth-weibo-oauth2
|
11
|
+
[IssueResolution]: https://isitmaintained.com/project/beenhero/omniauth-weibo-oauth2
|
12
|
+
[travis]: https://travis-ci.org/NeverMin/omniauth-weibo-oauth2
|
13
|
+
|
14
|
+
|
15
|
+
|
1
16
|
# OmniAuth Weibo OAuth2
|
2
17
|
|
3
18
|
Weibo OAuth2 Strategy for OmniAuth 1.0.
|
@@ -97,11 +112,6 @@ gem push omniauth-weibo-oauth2-VERSION.gem
|
|
97
112
|
5. Create new Pull Request
|
98
113
|
|
99
114
|
## License
|
115
|
+
Copyright (c) 2012-2017 by Bin He, See [LICENSE][] for details.
|
100
116
|
|
101
|
-
|
102
|
-
|
103
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
104
|
-
|
105
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
106
|
-
|
107
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
117
|
+
[license]: LICENSE.md
|
data/Rakefile
ADDED
@@ -37,6 +37,10 @@ module OmniAuth
|
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
|
+
def callback_url
|
41
|
+
full_host + script_name + callback_path
|
42
|
+
end
|
43
|
+
|
40
44
|
def raw_info
|
41
45
|
access_token.options[:mode] = :query
|
42
46
|
access_token.options[:param_name] = 'access_token'
|
@@ -92,7 +96,7 @@ module OmniAuth
|
|
92
96
|
'client_secret' => client.secret,
|
93
97
|
'code' => request.params['code'],
|
94
98
|
'grant_type' => 'authorization_code',
|
95
|
-
'redirect_uri' =>
|
99
|
+
'redirect_uri' => callback_url
|
96
100
|
}.merge(token_params.to_hash(symbolize_keys: true))
|
97
101
|
client.get_token(params, deep_symbolize(options.auth_token_params))
|
98
102
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
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.4
|
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-09-
|
11
|
+
date: 2017-09-30 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
19
|
version: '1.0'
|
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
26
|
version: '1.0'
|
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
33
|
version: '1.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
40
|
version: '1.0'
|
41
41
|
description: OmniAuth Oauth2 strategy for weibo.com.
|
@@ -44,9 +44,12 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
-
-
|
47
|
+
- .gitignore
|
48
|
+
- .travis.yml
|
48
49
|
- Gemfile
|
50
|
+
- LICENSE.md
|
49
51
|
- README.md
|
52
|
+
- Rakefile
|
50
53
|
- lib/omniauth-weibo-oauth2.rb
|
51
54
|
- lib/omniauth-weibo-oauth2/version.rb
|
52
55
|
- lib/omniauth/strategies/weibo.rb
|
@@ -60,17 +63,17 @@ require_paths:
|
|
60
63
|
- lib
|
61
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
65
|
requirements:
|
63
|
-
- -
|
66
|
+
- - ! '>='
|
64
67
|
- !ruby/object:Gem::Version
|
65
68
|
version: '0'
|
66
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
70
|
requirements:
|
68
|
-
- -
|
71
|
+
- - ! '>='
|
69
72
|
- !ruby/object:Gem::Version
|
70
73
|
version: '0'
|
71
74
|
requirements: []
|
72
75
|
rubyforge_project:
|
73
|
-
rubygems_version: 2.
|
76
|
+
rubygems_version: 2.2.2
|
74
77
|
signing_key:
|
75
78
|
specification_version: 4
|
76
79
|
summary: OmniAuth Oauth2 strategy for weibo.com.
|