omniauth-oauth 1.1.0 → 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
- SHA1:
3
- metadata.gz: d51821d2156b46cf7954f1ac30678998f5f2a93b
4
- data.tar.gz: 8b8fceab109adc5085bb894c5c18fd7eeac5cb0d
2
+ SHA256:
3
+ metadata.gz: 1dfca9af1de8c628340193490f5c0e33a3075ce7baab4b72b6e4d07709204b71
4
+ data.tar.gz: 9294cf2611fee8dea9cfd28765c904b2150c6b271f9ae1840eff9e03cc1d97d5
5
5
  SHA512:
6
- metadata.gz: 9ed599e75401adf88aef86315b2dc00d035e77a91cea8c5922ad2c46c14dc312570884202e75b22c5985fe4c303058d8fbd123db252ba0bf28eff79a78dc5404
7
- data.tar.gz: 4f9ea2ffcf4ac1731605358d5420b0870843082fa96f7628508e0c6bac6e4b116c7bd2426ed39d822a50bb49c1dda5f85d0d4777d4c4b488609fcf316606c52d
6
+ metadata.gz: a5b01f08e32d842622a5711071f9925e13f891c70b7f0ca96e0dcdca3957858a2555c821669c809fc29628c95213bd9dca0204374d9e4ab193a7b650dc0a5552
7
+ data.tar.gz: 0a4de26cf1b884da55b1567ca2cfb42b90db8e0fc32e45fe39cc1b588b980f5ebee344bfc8cee54cc128e0f6b99127601708294357975de5ca5d8c2a2e0e8580
@@ -4,11 +4,12 @@ env:
4
4
  - JRUBY_OPTS="$JRUBY_OPTS --debug"
5
5
  language: ruby
6
6
  rvm:
7
- - 1.8.7
8
- - 1.9.3
9
- - 2.0.0
10
- - 2.1
11
- - 2.2
7
+ - 2.3
8
+ - 2.4
9
+ - 2.5
10
+ - 2.6
11
+ - 2.7
12
+ - 3.0
12
13
  - jruby-18mode
13
14
  - jruby-19mode
14
15
  - jruby-head
@@ -18,5 +19,6 @@ matrix:
18
19
  allow_failures:
19
20
  - rvm: jruby-head
20
21
  - rvm: ruby-head
22
+ - rvm: rbx-2 # TODO: Fix
21
23
  fast_finish: true
22
24
  sudo: false
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module OAuth
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -8,9 +8,8 @@ Gem::Specification.new do |gem|
8
8
  gem.homepage = "https://github.com/intridea/omniauth-oauth"
9
9
  gem.license = "MIT"
10
10
 
11
- gem.add_dependency "omniauth", "~> 1.0"
11
+ gem.add_dependency "omniauth", ">= 1.0", "< 3"
12
12
  gem.add_dependency "oauth"
13
- gem.add_development_dependency "bundler", "~> 1.9"
14
13
 
15
14
  gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
16
15
  gem.files = `git ls-files`.split("\n")
@@ -2,7 +2,7 @@ $LOAD_PATH.unshift File.expand_path("..", __FILE__)
2
2
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
3
3
  require "simplecov"
4
4
  SimpleCov.start do
5
- minimum_coverage(89.8)
5
+ minimum_coverage(89.79)
6
6
  end
7
7
  require "rspec"
8
8
  require "rack/test"
@@ -10,6 +10,8 @@ require "webmock/rspec"
10
10
  require "omniauth"
11
11
  require "omniauth-oauth"
12
12
 
13
+ OmniAuth.config.request_validation_phase = nil
14
+
13
15
  RSpec.configure do |config|
14
16
  config.include WebMock::API
15
17
  config.include Rack::Test::Methods
@@ -34,7 +34,7 @@ describe "OmniAuth::Strategies::OAuth" do
34
34
  describe "/auth/{name}" do
35
35
  context "successful" do
36
36
  before do
37
- get "/auth/example.org"
37
+ post "/auth/example.org"
38
38
  end
39
39
 
40
40
  it "should redirect to authorize_url" do
@@ -43,7 +43,7 @@ describe "OmniAuth::Strategies::OAuth" do
43
43
  end
44
44
 
45
45
  it "should redirect to authorize_url with authorize_params when set" do
46
- get "/auth/example.org_with_authorize_params"
46
+ post "/auth/example.org_with_authorize_params"
47
47
  expect(last_response).to be_redirect
48
48
  expect([
49
49
  "https://api.example.org/oauth/authorize?abc=def&oauth_token=yourtoken",
@@ -56,7 +56,7 @@ describe "OmniAuth::Strategies::OAuth" do
56
56
  end
57
57
 
58
58
  it "should pass request_params to get_request_token" do
59
- get "/auth/example.org_with_request_params"
59
+ post "/auth/example.org_with_request_params"
60
60
  expect(WebMock).to have_requested(:post, "https://api.example.org/oauth/request_token").
61
61
  with { |req| req.body == "scope=http%3A%2F%2Ffoobar.example.org" }
62
62
  end
@@ -66,7 +66,7 @@ describe "OmniAuth::Strategies::OAuth" do
66
66
  before do
67
67
  stub_request(:post, "https://api.example.org/oauth/request_token").
68
68
  to_raise(::Net::HTTPFatalError.new('502 "Bad Gateway"', nil))
69
- get "/auth/example.org"
69
+ post "/auth/example.org"
70
70
  end
71
71
 
72
72
  it "should call fail! with :service_unavailable" do
@@ -78,7 +78,7 @@ describe "OmniAuth::Strategies::OAuth" do
78
78
  before do
79
79
  stub_request(:post, "https://api.example.org/oauth/request_token").
80
80
  to_raise(::OpenSSL::SSL::SSLError.new("SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"))
81
- get "/auth/example.org"
81
+ post "/auth/example.org"
82
82
  end
83
83
 
84
84
  it "should call fail! with :service_unavailable" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -9,22 +9,28 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-22 00:00:00.000000000 Z
12
+ date: 2021-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '1.0'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '3'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: '1.0'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '3'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: oauth
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -39,20 +45,6 @@ dependencies:
39
45
  - - ">="
40
46
  - !ruby/object:Gem::Version
41
47
  version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: bundler
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '1.9'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '1.9'
56
48
  description: A generic OAuth (1.0/1.0a) strategy for OmniAuth.
57
49
  email:
58
50
  - michael@intridea.com
@@ -94,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
86
  - !ruby/object:Gem::Version
95
87
  version: '0'
96
88
  requirements: []
97
- rubyforge_project:
98
- rubygems_version: 2.4.5
89
+ rubygems_version: 3.0.3
99
90
  signing_key:
100
91
  specification_version: 4
101
92
  summary: A generic OAuth (1.0/1.0a) strategy for OmniAuth.