omniauth-mixi 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -1
- data/.travis.yml +17 -2
- data/Gemfile +8 -1
- data/Gemfile.187 +23 -0
- data/README.md +2 -3
- data/lib/omniauth-mixi/version.rb +1 -1
- data/lib/omniauth/strategies/mixi.rb +4 -0
- data/omniauth-mixi.gemspec +1 -5
- data/spec/spec_helper.rb +4 -2
- metadata +18 -91
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 404cfec89e0ec22fa41b656de4eab1c5832004b5
|
4
|
+
data.tar.gz: f25c6a5535d8038e683b2f3a7d1e64b28049b3df
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5151ded13a60417fbc37e6d6d656a92b5f2ea46d79b1c5e000a64ead42aaca0431f8f9145132172288a9d0abed267385b9bfe1b8213f42e79b43ddb6da153cf3
|
7
|
+
data.tar.gz: 633121585890f8486a356db28d36a3238d50a40a2303bd1589442a35be032594f5b5120fd407f7e2d53cfb3322639e2fd0c772f95ab06255a0d4b13182e00a67
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,6 +1,21 @@
|
|
1
|
+
sudo: false
|
2
|
+
bundler_args: --without development
|
3
|
+
before_install: gem install bundler
|
4
|
+
cache: bundler
|
5
|
+
language: ruby
|
6
|
+
script:
|
7
|
+
- bundle exec rake
|
1
8
|
rvm:
|
2
|
-
- 1.8.7
|
3
9
|
- 1.9.2
|
4
10
|
- 1.9.3
|
11
|
+
- 2.0.0
|
12
|
+
- 2.1
|
13
|
+
- 2.2
|
5
14
|
- ruby-head
|
6
|
-
- jruby
|
15
|
+
- jruby
|
16
|
+
matrix:
|
17
|
+
include:
|
18
|
+
- rvm: 1.8.7
|
19
|
+
gemfile: Gemfile.187
|
20
|
+
allow_failure:
|
21
|
+
- rvm: ruby-head
|
data/Gemfile
CHANGED
@@ -4,10 +4,17 @@ gem 'rake'
|
|
4
4
|
# Specify your gem's dependencies in omniauth-mixi.gemspec
|
5
5
|
gemspec
|
6
6
|
|
7
|
-
group :development
|
7
|
+
group :development do
|
8
8
|
gem 'guard'
|
9
9
|
gem 'guard-rspec'
|
10
10
|
gem 'guard-bundler'
|
11
11
|
gem 'rb-fsevent'
|
12
12
|
gem 'growl'
|
13
|
+
end
|
14
|
+
|
15
|
+
group :test do
|
16
|
+
gem 'rspec', '~> 2.7'
|
17
|
+
gem 'rack-test'
|
18
|
+
gem 'simplecov'
|
19
|
+
gem 'webmock'
|
13
20
|
end
|
data/Gemfile.187
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
source 'http://rubygems.org'
|
2
|
+
|
3
|
+
gem 'addressable', '< 2.4.0'
|
4
|
+
gem 'jwt', '< 1.5.1'
|
5
|
+
|
6
|
+
gem 'rake'
|
7
|
+
# Specify your gem's dependencies in omniauth-mixi.gemspec
|
8
|
+
gemspec
|
9
|
+
|
10
|
+
group :development do
|
11
|
+
gem 'guard'
|
12
|
+
gem 'guard-rspec'
|
13
|
+
gem 'guard-bundler'
|
14
|
+
gem 'rb-fsevent'
|
15
|
+
gem 'growl'
|
16
|
+
end
|
17
|
+
|
18
|
+
group :test do
|
19
|
+
gem 'rspec', '~> 2.7'
|
20
|
+
gem 'rack-test'
|
21
|
+
gem 'simplecov'
|
22
|
+
gem 'webmock'
|
23
|
+
end
|
data/README.md
CHANGED
@@ -11,7 +11,6 @@ So let's say you're using Rails, you need to add the strategy to your `Gemfile`:
|
|
11
11
|
```ruby
|
12
12
|
gem 'omniauth-mixi'
|
13
13
|
```
|
14
|
-
(11/26/2012) This is not registered to Rubygems yet.
|
15
14
|
|
16
15
|
You can also pull them in directly from Github e.g.:
|
17
16
|
|
@@ -104,7 +103,7 @@ And, open http://localhost:9292/ in your browser, then you will see the authenti
|
|
104
103
|
|
105
104
|
## Supported Rubies
|
106
105
|
|
107
|
-
OmniAuth mixi is tested under 1.8.7, 1.9.2, 1.9.3 and JRuby.
|
106
|
+
OmniAuth mixi is tested under 1.8.7, 1.9.2, 1.9.3, 2.0.0, 2.1, 2.2 and JRuby.
|
108
107
|
|
109
108
|
[![CI Build
|
110
109
|
Status](https://secure.travis-ci.org/mixi-inc/omniauth-mixi.png)](http://travis-ci.org/mixi-inc/omniauth-mixi)
|
@@ -118,4 +117,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
118
117
|
|
119
118
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
120
119
|
|
121
|
-
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.
|
120
|
+
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.
|
@@ -49,6 +49,10 @@ module OmniAuth
|
|
49
49
|
access_token.get('/2/people/@me/@self?fields=@all').parsed['entry']
|
50
50
|
end
|
51
51
|
|
52
|
+
def callback_url
|
53
|
+
full_host + script_name + callback_path
|
54
|
+
end
|
55
|
+
|
52
56
|
def authorize_params
|
53
57
|
super.tap do |params|
|
54
58
|
%w[display state scope].each do |v|
|
data/omniauth-mixi.gemspec
CHANGED
@@ -17,8 +17,4 @@ Gem::Specification.new do |gem|
|
|
17
17
|
|
18
18
|
gem.add_dependency 'omniauth', '~> 1.0'
|
19
19
|
gem.add_dependency 'omniauth-oauth2', '~> 1.1'
|
20
|
-
|
21
|
-
gem.add_development_dependency 'rack-test'
|
22
|
-
gem.add_development_dependency 'simplecov'
|
23
|
-
gem.add_development_dependency 'webmock'
|
24
|
-
end
|
20
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,112 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-mixi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Yoichiro Tanaka
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: omniauth
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: omniauth-oauth2
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '1.1'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '1.1'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rspec
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '2.7'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.7'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rack-test
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: simplecov
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
86
|
-
type: :development
|
87
|
-
prerelease: false
|
88
|
-
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: webmock
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
41
|
description: OmniAuth strategy for mixi.
|
111
42
|
email:
|
112
43
|
- yoichiro@eisbahn.jp
|
@@ -114,10 +45,11 @@ executables: []
|
|
114
45
|
extensions: []
|
115
46
|
extra_rdoc_files: []
|
116
47
|
files:
|
117
|
-
- .gitignore
|
118
|
-
- .rspec
|
119
|
-
- .travis.yml
|
48
|
+
- ".gitignore"
|
49
|
+
- ".rspec"
|
50
|
+
- ".travis.yml"
|
120
51
|
- Gemfile
|
52
|
+
- Gemfile.187
|
121
53
|
- Guardfile
|
122
54
|
- README.md
|
123
55
|
- Rakefile
|
@@ -131,32 +63,27 @@ files:
|
|
131
63
|
- spec/spec_helper.rb
|
132
64
|
homepage: https://github.com/mixi-inc/omniauth-mixi
|
133
65
|
licenses: []
|
66
|
+
metadata: {}
|
134
67
|
post_install_message:
|
135
68
|
rdoc_options: []
|
136
69
|
require_paths:
|
137
70
|
- lib
|
138
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
72
|
requirements:
|
141
|
-
- -
|
73
|
+
- - ">="
|
142
74
|
- !ruby/object:Gem::Version
|
143
75
|
version: '0'
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
hash: 304646765529695186
|
147
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
77
|
requirements:
|
150
|
-
- -
|
78
|
+
- - ">="
|
151
79
|
- !ruby/object:Gem::Version
|
152
80
|
version: '0'
|
153
|
-
segments:
|
154
|
-
- 0
|
155
|
-
hash: 304646765529695186
|
156
81
|
requirements: []
|
157
82
|
rubyforge_project:
|
158
|
-
rubygems_version:
|
83
|
+
rubygems_version: 2.2.5
|
159
84
|
signing_key:
|
160
|
-
specification_version:
|
85
|
+
specification_version: 4
|
161
86
|
summary: OmniAuth strategy for mixi.
|
162
|
-
test_files:
|
87
|
+
test_files:
|
88
|
+
- spec/omniauth/strategies/mixi_spec.rb
|
89
|
+
- spec/spec_helper.rb
|