omniauth-oauth2 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -1
- data/.travis.yml +1 -6
- data/Gemfile +3 -9
- data/README.md +5 -5
- data/Rakefile +2 -2
- data/lib/omniauth-oauth2/version.rb +1 -1
- data/omniauth-oauth2.gemspec +4 -4
- data/spec/helper.rb +1 -1
- data/spec/omniauth/strategies/oauth2_spec.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34d25ec93bea77d3d2003a6aa2072dfa427f9e37
|
4
|
+
data.tar.gz: 89be10c650c34a5585147ef113f20c8f562b36f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19d5f076d435e34138b5beb42214e1a2cc22e3f6145e8030d64d644a91b250de0f3b7e34dda04d49a020e0bc3347b7cfdcb5b8942910cafec095286da1dbb310
|
7
|
+
data.tar.gz: b997b90fa32ffa10c1e27ae5095acea1793ae9d4ecb160856de82a4a53a64cdcc60f9c352a8c114e50a50c13c3ff024174cbcdc573caa4411d18f17e95aba385
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -1,8 +1,3 @@
|
|
1
|
-
before_install:
|
2
|
-
- gem install bundler
|
3
|
-
- bundle --version
|
4
|
-
- gem update --system 2.1.11
|
5
|
-
- gem --version
|
6
1
|
bundler_args: --without development
|
7
2
|
language: ruby
|
8
3
|
rvm:
|
@@ -11,7 +6,7 @@ rvm:
|
|
11
6
|
- 1.9.3
|
12
7
|
- 2.0.0
|
13
8
|
- 2.1.0
|
14
|
-
- rbx
|
9
|
+
- rbx-2
|
15
10
|
- ruby-head
|
16
11
|
matrix:
|
17
12
|
include:
|
data/Gemfile
CHANGED
@@ -12,20 +12,14 @@ end
|
|
12
12
|
|
13
13
|
group :test do
|
14
14
|
gem 'coveralls', :require => false
|
15
|
-
gem 'json', :platforms => [:jruby, :
|
15
|
+
gem 'json', :platforms => [:jruby, :ruby_18, :ruby_19]
|
16
16
|
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
|
17
17
|
gem 'rack-test'
|
18
|
-
gem 'rspec', '~>
|
19
|
-
gem 'rubocop', '>= 0.
|
18
|
+
gem 'rspec', '~> 3.0.0'
|
19
|
+
gem 'rubocop', '>= 0.21', :platforms => [:ruby_19, :ruby_20, :ruby_21]
|
20
20
|
gem 'simplecov', :require => false
|
21
21
|
gem 'webmock'
|
22
22
|
end
|
23
23
|
|
24
|
-
platforms :rbx do
|
25
|
-
gem 'racc'
|
26
|
-
gem 'rubinius-coverage', '~> 2.0'
|
27
|
-
gem 'rubysl', '~> 2.0'
|
28
|
-
end
|
29
|
-
|
30
24
|
# Specify your gem's dependencies in omniauth-oauth2.gemspec
|
31
25
|
gemspec
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# OmniAuth OAuth2
|
2
2
|
|
3
|
-
[![Gem Version](
|
4
|
-
[![Build Status](
|
5
|
-
[![Dependency Status](
|
6
|
-
[![Code Climate](
|
7
|
-
[![Coverage Status](
|
3
|
+
[![Gem Version](http://img.shields.io/gem/v/omniauth-oauth2.svg)][gem]
|
4
|
+
[![Build Status](http://img.shields.io/travis/intridea/omniauth-oauth2.svg)][travis]
|
5
|
+
[![Dependency Status](http://img.shields.io/gemnasium/intridea/omniauth-oauth2.svg)][gemnasium]
|
6
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/intridea/omniauth-oauth2.svg)][codeclimate]
|
7
|
+
[![Coverage Status](http://img.shields.io/coveralls/intridea/omniauth-oauth2.svg)][coveralls]
|
8
8
|
|
9
9
|
[gem]: https://rubygems.org/gems/omniauth-oauth2
|
10
10
|
[travis]: http://travis-ci.org/intridea/omniauth-oauth2
|
data/Rakefile
CHANGED
data/omniauth-oauth2.gemspec
CHANGED
@@ -5,22 +5,22 @@ require 'omniauth-oauth2/version'
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.add_dependency 'faraday', ['>= 0.8', '< 0.10']
|
7
7
|
gem.add_dependency 'multi_json', '~> 1.3'
|
8
|
-
gem.add_dependency 'oauth2', '~> 0
|
8
|
+
gem.add_dependency 'oauth2', '~> 1.0'
|
9
9
|
gem.add_dependency 'omniauth', '~> 1.2'
|
10
10
|
|
11
11
|
gem.add_development_dependency 'bundler', '~> 1.0'
|
12
12
|
|
13
13
|
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
14
14
|
gem.email = ['michael@intridea.com', 'sferik@gmail.com']
|
15
|
-
gem.description = %q
|
15
|
+
gem.description = %q(An abstract OAuth2 strategy for OmniAuth.)
|
16
16
|
gem.summary = gem.description
|
17
17
|
gem.homepage = 'https://github.com/intridea/omniauth-oauth2'
|
18
|
-
gem.
|
18
|
+
gem.licenses = %w(MIT)
|
19
19
|
|
20
20
|
gem.executables = `git ls-files -- bin/*`.split("\n").collect { |f| File.basename(f) }
|
21
21
|
gem.files = `git ls-files`.split("\n")
|
22
22
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
23
23
|
gem.name = 'omniauth-oauth2'
|
24
|
-
gem.require_paths =
|
24
|
+
gem.require_paths = %w(lib)
|
25
25
|
gem.version = OmniAuth::OAuth2::VERSION
|
26
26
|
end
|
data/spec/helper.rb
CHANGED
@@ -22,7 +22,7 @@ RSpec.configure do |config|
|
|
22
22
|
config.expect_with :rspec do |c|
|
23
23
|
c.syntax = :expect
|
24
24
|
end
|
25
|
-
config.extend
|
25
|
+
config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
|
26
26
|
config.include Rack::Test::Methods
|
27
27
|
config.include WebMock::API
|
28
28
|
end
|
@@ -2,7 +2,7 @@ require 'helper'
|
|
2
2
|
|
3
3
|
describe OmniAuth::Strategies::OAuth2 do
|
4
4
|
def app
|
5
|
-
lambda do |
|
5
|
+
lambda do |_env|
|
6
6
|
[200, {}, ['Hello.']]
|
7
7
|
end
|
8
8
|
end
|
@@ -70,7 +70,7 @@ describe OmniAuth::Strategies::OAuth2 do
|
|
70
70
|
subject { fresh_strategy }
|
71
71
|
it 'calls fail with the client error received' do
|
72
72
|
instance = subject.new('abc', 'def')
|
73
|
-
instance.
|
73
|
+
allow(instance).to receive(:request) do
|
74
74
|
double('Request', :params => {'error_reason' => 'user_denied', 'error' => 'access_denied'})
|
75
75
|
end
|
76
76
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -51,14 +51,14 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
54
|
+
version: '1.0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '1.0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: omniauth
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.2.
|
133
|
+
rubygems_version: 2.2.2
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: An abstract OAuth2 strategy for OmniAuth.
|