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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4040d4ee269c2068d318a030a337992300946252
4
- data.tar.gz: 1f9cb798786b901af6a4a6f56f63feaa1524b47c
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjVlNjI1N2Y4MTMwNjcyNzBmZmRiZTA3ZTJlNDM5OWE3ZjBkNTUzYQ==
5
+ data.tar.gz: !binary |-
6
+ NzFiNmNjYTZkZDQyM2VjMzUzNTg2NjE3ZmZiNzlhMjY0OWMyZmRkZQ==
5
7
  SHA512:
6
- metadata.gz: 825f565429f22d40d722130ec49114069702fe8196b3cf7a1a41cfec0acf1783ca9c5e93b20b53ba78e7fe59a760a4388665779e21ef25f9c9ce3cb0438c75d5
7
- data.tar.gz: f9d353d2decb60c77f84ba401c74adef39a94c758362340e8d3182e1833316d07ab50d0f1da56fa0c55c787a73be97875c50ea8b9d4be888ce96e69524388dfd
8
+ metadata.gz: !binary |-
9
+ OGU3Y2FhMGI0MGRkMjYyMzA1YmM5YWY0MmNkNzQ3MmY4ZjBlMWY2NDU4MTU0
10
+ ZDdiMmVlZTM1Y2QxMjdiMTg1ODIyMGE0MmQ3MjViYjQ4MTUwYmRiNTQ4Nzhj
11
+ OGEyMDRiNzExZTkyNmMyMjBjZjVlYWViNTVmMzI5YjUyZGNjODg=
12
+ data.tar.gz: !binary |-
13
+ MDdkNTBhNWUyMThhZTg5ZTQyMTliNGFjNmNmYTMxN2U5Zjg0MzkwZTJmZTI2
14
+ OTIxNjZkOTljNjRhMTVjNzQzY2Y3NDRjYmJkYTRlM2RiYTE2NGUxMmUxN2Ux
15
+ YTg0YmI4ODQ1ZDZhN2VjYjczMDE2NjhkMmU2MTE3OGE5MzgzYmU=
@@ -0,0 +1,7 @@
1
+ before_install:
2
+ - gem update --system 2.1.11
3
+ language: ruby
4
+ rvm:
5
+ - "2.0.0"
6
+ - "2.1.0"
7
+ - "2.4.1"
data/Gemfile CHANGED
@@ -1,2 +1,13 @@
1
- source :rubygems
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
@@ -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
- Copyright (c) 2012 by Bin He
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
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ require File.join('bundler', 'gem_tasks')
3
+ require File.join('rspec', 'core', 'rake_task')
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task :default => :spec
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module WeiboOauth2
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
@@ -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' => options['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.3
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-24 00:00:00.000000000 Z
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
- - ".gitignore"
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.6.7
76
+ rubygems_version: 2.2.2
74
77
  signing_key:
75
78
  specification_version: 4
76
79
  summary: OmniAuth Oauth2 strategy for weibo.com.