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 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
@@ -4,6 +4,7 @@
4
4
  .config
5
5
  .yardoc
6
6
  Gemfile.lock
7
+ Gemfile.187.lock
7
8
  InstalledFiles
8
9
  _yardoc
9
10
  coverage
@@ -14,4 +15,5 @@ rdoc
14
15
  spec/reports
15
16
  test/tmp
16
17
  test/version_tmp
17
- tmp
18
+ tmp
19
+ vendor
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, :test do
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.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Mixi
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -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|
@@ -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
- gem.add_development_dependency 'rspec', '~> 2.7'
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
@@ -1,8 +1,10 @@
1
1
  $:.unshift File.expand_path('..', __FILE__)
2
2
  $:.unshift File.expand_path('../../lib', __FILE__)
3
3
 
4
- require 'simplecov'
5
- SimpleCov.start
4
+ if RUBY_VERSION >= '1.9.0'
5
+ require 'simplecov'
6
+ SimpleCov.start
7
+ end
6
8
 
7
9
  require 'rspec'
8
10
  require 'rack/test'
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.0.0
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: 2012-12-03 00:00:00.000000000 Z
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: 1.8.24
83
+ rubygems_version: 2.2.5
159
84
  signing_key:
160
- specification_version: 3
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