omniauth-paypal 1.2.2 → 1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjBmMzczNjVkOTgxNjI5MDZlN2E0ZTc3ZGZhNzYxNTZiNTQxN2E3YQ==
5
- data.tar.gz: !binary |-
6
- MmQ4NTJlNjBhMjU3YWFiMTdmOWE1ZjZkMzE0ZWI3YTc2YzBjZjEzMA==
2
+ SHA1:
3
+ metadata.gz: 3008b279fa14574f6f362dddcfb4e2724d7a4f6c
4
+ data.tar.gz: 7a418f7d47b5e437aa42f5611d0e38ce71bd83bd
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- Yjk1YzU4NTMyOGRmNWU1M2M1NTQ3MzQzMTFmMDEzMTBmZTk5YjJlYTA5YmU3
10
- NDI4MWMzMWFlOTYxYjQyZjFiY2Q2OTY2ZWNkYTEzMTZhZjRhOTI5ZDA5YWE4
11
- YjBhNjU5M2M5YWEzMThlOTk4YTU1ZjIwM2ZlNWMxMjg1N2I4ZTk=
12
- data.tar.gz: !binary |-
13
- ZTljMjdlODQ5ZDg2OWNiY2NiNzYzYzJiMjE4MDUzYmMwNmRkMTczMzg2OWEx
14
- ZjkyMTQ2MWQyNjFmYTBlZGRlYzBiZjNhMDRlZjdmYmJhNDBmY2FjOTgyMmI3
15
- N2IzMjFjMzlmYTQ4ZGQ2ZTlkMDE0ODIzYjdmNTM5ZTEyMGRlNTA=
6
+ metadata.gz: 52b127d39d07c1cf6a488ed0a41240784456ac938b546ba9bb5d89df3d3bb06a13329e6519fcf19234ed70841c57743da009e0e07f98ec058d79380dd6e7c7d8
7
+ data.tar.gz: 66c273055bfddfa520d4e154464354975861a1a9014732c3058f0f70c97667bea00c0d17b83037af96a5703945eaafe38979854f8113f62ec4d9a61e7e3a4062
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'omniauth-oauth2', "~>1.1.1", :git => 'git://github.com/intridea/omniauth-oauth2.git'
5
+ gem 'omniauth-oauth2', "~> 1.2.0"
6
6
  gem 'json'
@@ -1,41 +1,35 @@
1
- GIT
2
- remote: git://github.com/intridea/omniauth-oauth2.git
3
- revision: 8a7a97ecbdb71c04b96bfa47dbc465d5d931f694
4
- specs:
5
- omniauth-oauth2 (1.1.1)
6
- oauth2 (~> 0.9.0)
7
- omniauth (~> 1.0)
8
-
9
1
  PATH
10
2
  remote: .
11
3
  specs:
12
- omniauth-paypal (1.2.1)
13
- omniauth-oauth2 (~> 1.1.0)
4
+ omniauth-paypal (1.2.2)
5
+ omniauth-oauth2 (~> 1.2.0)
14
6
 
15
7
  GEM
16
8
  remote: https://rubygems.org/
17
9
  specs:
18
10
  diff-lcs (1.2.4)
19
- faraday (0.8.8)
20
- multipart-post (~> 1.2.0)
21
- hashie (2.0.5)
22
- httpauth (0.2.0)
11
+ faraday (0.9.0)
12
+ multipart-post (>= 1.2, < 3)
13
+ hashie (3.3.1)
23
14
  json (1.8.0)
24
- jwt (0.1.8)
25
- multi_json (>= 1.5)
26
- multi_json (1.8.0)
15
+ jwt (1.0.0)
16
+ multi_json (1.10.1)
27
17
  multi_xml (0.5.5)
28
- multipart-post (1.2.0)
29
- oauth2 (0.9.2)
30
- faraday (~> 0.8)
31
- httpauth (~> 0.2)
32
- jwt (~> 0.1.4)
33
- multi_json (~> 1.0)
18
+ multipart-post (2.0.0)
19
+ oauth2 (1.0.0)
20
+ faraday (>= 0.8, < 0.10)
21
+ jwt (~> 1.0)
22
+ multi_json (~> 1.3)
34
23
  multi_xml (~> 0.5)
35
24
  rack (~> 1.2)
36
- omniauth (1.1.4)
37
- hashie (>= 1.2, < 3)
38
- rack
25
+ omniauth (1.2.2)
26
+ hashie (>= 1.2, < 4)
27
+ rack (~> 1.0)
28
+ omniauth-oauth2 (1.2.0)
29
+ faraday (>= 0.8, < 0.10)
30
+ multi_json (~> 1.3)
31
+ oauth2 (~> 1.0)
32
+ omniauth (~> 1.2)
39
33
  rack (1.5.2)
40
34
  rake (10.1.0)
41
35
  rspec (2.14.1)
@@ -52,7 +46,7 @@ PLATFORMS
52
46
 
53
47
  DEPENDENCIES
54
48
  json
55
- omniauth-oauth2 (~> 1.1.1)!
49
+ omniauth-oauth2 (~> 1.2.0)
56
50
  omniauth-paypal!
57
51
  rake
58
52
  rspec (~> 2.14)
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module PayPal
3
- VERSION = "1.2.2"
3
+ VERSION = "1.3"
4
4
  end
5
5
  end
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
17
17
  s.require_paths = ['lib']
18
18
 
19
- s.add_runtime_dependency 'omniauth-oauth2', '~> 1.1.0'
19
+ s.add_runtime_dependency 'omniauth-oauth2', '~> 1.2.0'
20
20
 
21
21
  s.add_development_dependency 'rspec', '~> 2.14'
22
22
  s.add_development_dependency 'rake'
23
- end
23
+ end
@@ -10,40 +10,40 @@ describe OmniAuth::Strategies::PayPal do
10
10
 
11
11
  describe '#client' do
12
12
  it 'has correct PayPal site' do
13
- subject.client.site.should eq('https://api.paypal.com')
13
+ expect(subject.client.site).to eq('https://api.paypal.com')
14
14
  end
15
15
 
16
16
  it 'has correct PayPal sandbox site' do
17
17
  @options = { :sandbox => true }
18
18
  subject.setup_phase
19
- subject.client.site.should eq('https://api.sandbox.paypal.com')
19
+ expect(subject.client.site).to eq('https://api.sandbox.paypal.com')
20
20
  end
21
21
 
22
22
  it 'has correct authorize url' do
23
- subject.client.options[:authorize_url].should eq('https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize')
23
+ expect(subject.client.options[:authorize_url]).to eq('https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize')
24
24
  end
25
25
 
26
26
  it 'has correct sandbox authorize url' do
27
27
  @options = { :sandbox => true }
28
28
  subject.setup_phase
29
- subject.client.options[:authorize_url].should eq('https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize')
29
+ expect(subject.client.options[:authorize_url]).to eq('https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize')
30
30
  end
31
31
 
32
32
  it 'has correct token url' do
33
- subject.client.options[:token_url].should eq('/v1/identity/openidconnect/tokenservice')
33
+ expect(subject.client.options[:token_url]).to eq('/v1/identity/openidconnect/tokenservice')
34
34
  end
35
35
 
36
36
  it 'runs the setup block if passed one' do
37
37
  counter = ''
38
38
  @options = { :setup => Proc.new { |env| counter = 'ok' } }
39
39
  subject.setup_phase
40
- counter.should eq "ok"
40
+ expect(counter).to eq("ok")
41
41
  end
42
42
  end
43
43
 
44
44
  describe '#callback_path' do
45
45
  it "has the correct callback path" do
46
- subject.callback_path.should eq('/auth/paypal/callback')
46
+ expect(subject.callback_path).to eq('/auth/paypal/callback')
47
47
  end
48
48
  end
49
49
 
@@ -3,35 +3,35 @@ shared_examples 'an oauth2 strategy' do
3
3
  describe '#client' do
4
4
  it 'should be initialized with symbolized client_options' do
5
5
  @options = { :client_options => { 'authorize_url' => 'https://example.com' } }
6
- subject.client.options[:authorize_url].should == 'https://example.com'
6
+ expect(subject.client.options[:authorize_url]).to eq('https://example.com')
7
7
  end
8
8
  end
9
9
 
10
10
  describe '#authorize_params' do
11
11
  it 'should include any authorize params passed in the :authorize_params option' do
12
12
  @options = { :authorize_params => { :foo => 'bar', :baz => 'zip' } }
13
- subject.authorize_params['foo'].should eq('bar')
14
- subject.authorize_params['baz'].should eq('zip')
13
+ expect(subject.authorize_params['foo']).to eq('bar')
14
+ expect(subject.authorize_params['baz']).to eq('zip')
15
15
  end
16
16
 
17
17
  it 'should include top-level options that are marked as :authorize_options' do
18
18
  @options = { :authorize_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
19
- subject.authorize_params['scope'].should eq('bar')
20
- subject.authorize_params['foo'].should eq('baz')
19
+ expect(subject.authorize_params['scope']).to eq('bar')
20
+ expect(subject.authorize_params['foo']).to eq('baz')
21
21
  end
22
22
  end
23
23
 
24
24
  describe '#token_params' do
25
25
  it 'should include any token params passed in the :token_params option' do
26
26
  @options = { :token_params => { :foo => 'bar', :baz => 'zip' } }
27
- subject.token_params['foo'].should eq('bar')
28
- subject.token_params['baz'].should eq('zip')
27
+ expect(subject.token_params['foo']).to eq('bar')
28
+ expect(subject.token_params['baz']).to eq('zip')
29
29
  end
30
30
 
31
31
  it 'should include top-level options that are marked as :token_options' do
32
32
  @options = { :token_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
33
- subject.token_params['scope'].should eq('bar')
34
- subject.token_params['foo'].should eq('baz')
33
+ expect(subject.token_params['scope']).to eq('bar')
34
+ expect(subject.token_params['foo']).to eq('baz')
35
35
  end
36
36
  end
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-paypal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - David W. Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-14 00:00:00.000000000 Z
11
+ date: 2014-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0
19
+ version: 1.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.0
26
+ version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description:
@@ -82,17 +82,17 @@ require_paths:
82
82
  - lib
83
83
  required_ruby_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ! '>='
85
+ - - '>='
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - ! '>='
90
+ - - '>='
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.1.10
95
+ rubygems_version: 2.0.14
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: PayPal Identity strategy for OmniAuth