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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 729f67df8ee052a37b39db77bb84fc0e954b5c47
4
- data.tar.gz: 03e11773729ff900ad4edb07be8c8e13fc001316
3
+ metadata.gz: 34d25ec93bea77d3d2003a6aa2072dfa427f9e37
4
+ data.tar.gz: 89be10c650c34a5585147ef113f20c8f562b36f6
5
5
  SHA512:
6
- metadata.gz: 4e17fffddb77d20eb90a87b88974e8d65a48fe07b8efb6c193bcac18cd51320ffbc253f1c78a47ed07fb59b70049d632a583580940215a11d27f1160c466c8de
7
- data.tar.gz: 630038ac3b8270b536dfed054e3a26a9ba7de3bfd5d563a8e0ff094154431fc6b322ad27d573ce3fbe5a7f2c8bd907e2cd1382eda42587d777037e4b2d58b8aa
6
+ metadata.gz: 19d5f076d435e34138b5beb42214e1a2cc22e3f6145e8030d64d644a91b250de0f3b7e34dda04d49a020e0bc3347b7cfdcb5b8942910cafec095286da1dbb310
7
+ data.tar.gz: b997b90fa32ffa10c1e27ae5095acea1793ae9d4ecb160856de82a4a53a64cdcc60f9c352a8c114e50a50c13c3ff024174cbcdc573caa4411d18f17e95aba385
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- Includes:
2
+ Include:
3
3
  - 'Gemfile'
4
4
  - 'Rakefile'
5
5
  - 'omniauth-oauth2.gemspec'
@@ -76,3 +76,7 @@ CaseIndentation:
76
76
 
77
77
  Lambda:
78
78
  Enabled: false
79
+
80
+ FileName:
81
+ Exclude:
82
+ - 'lib/omniauth-oauth2.rb'
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, :rbx, :ruby_18, :ruby_19]
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', '~> 2.14'
19
- gem 'rubocop', '>= 0.16', :platforms => [:ruby_19, :ruby_20, :ruby_21]
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](https://badge.fury.io/rb/omniauth-oauth2.png)][gem]
4
- [![Build Status](https://secure.travis-ci.org/intridea/omniauth-oauth2.png?branch=master)][travis]
5
- [![Dependency Status](https://gemnasium.com/intridea/omniauth-oauth2.png?travis)][gemnasium]
6
- [![Code Climate](https://codeclimate.com/github/intridea/omniauth-oauth2.png)][codeclimate]
7
- [![Coverage Status](https://coveralls.io/repos/intridea/omniauth-oauth2/badge.png?branch=master)][coveralls]
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
@@ -8,10 +8,10 @@ task :test => :spec
8
8
 
9
9
  begin
10
10
  require 'rubocop/rake_task'
11
- Rubocop::RakeTask.new
11
+ RuboCop::RakeTask.new
12
12
  rescue LoadError
13
13
  task :rubocop do
14
- $stderr.puts 'Rubocop is disabled'
14
+ $stderr.puts 'RuboCop is disabled'
15
15
  end
16
16
  end
17
17
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module OAuth2
3
- VERSION = '1.1.2'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -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.9.3'
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{An abstract OAuth2 strategy for OmniAuth.}
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.license = 'MIT'
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 = ['lib']
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 OmniAuth::Test::StrategyMacros, :type => :strategy
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 |env|
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.stub(:request) do
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.1.2
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-01-16 00:00:00.000000000 Z
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.9.3
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.9.3
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.0
133
+ rubygems_version: 2.2.2
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: An abstract OAuth2 strategy for OmniAuth.