omniauth-mailchimp 1.0.2 → 1.0.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.
@@ -15,9 +15,23 @@ describe OmniAuth::Strategies::Mailchimp do
|
|
15
15
|
|
16
16
|
it_should_behave_like 'an oauth2 strategy'
|
17
17
|
|
18
|
-
|
19
|
-
it 'has correct
|
20
|
-
subject.
|
18
|
+
describe '#client' do
|
19
|
+
it 'has correct Mailchimp api site' do
|
20
|
+
subject.options.client_options.site.should eq('https://login.mailchimp.com')
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'has correct access token path' do
|
24
|
+
subject.options.client_options.token_url.should eq('/oauth2/token')
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'has correct authorize url' do
|
28
|
+
subject.options.client_options.authorize_url.should eq('/oauth2/authorize')
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '#callback_path' do
|
33
|
+
it 'should have the correct callback path' do
|
34
|
+
subject.callback_path.should eq('/auth/mailchimp/callback')
|
21
35
|
end
|
22
36
|
end
|
23
37
|
end
|
@@ -15,8 +15,8 @@ shared_examples 'an oauth2 strategy' do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
it 'should include top-level options that are marked as :authorize_options' do
|
18
|
-
@options = { :authorize_options => [:scope, :foo], :scope => '
|
19
|
-
subject.authorize_params['scope'].should eq('
|
18
|
+
@options = { :authorize_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
|
19
|
+
subject.authorize_params['scope'].should eq('bar')
|
20
20
|
subject.authorize_params['foo'].should eq('baz')
|
21
21
|
end
|
22
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-mailchimp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-02-27 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
16
|
-
requirement: &
|
16
|
+
requirement: &70173533935740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70173533935740
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: omniauth-oauth2
|
27
|
-
requirement: &
|
27
|
+
requirement: &70173533932860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70173533932860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70173533903520 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 2.6.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70173533903520
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
|
-
requirement: &
|
49
|
+
requirement: &70173533903100 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70173533903100
|
58
58
|
description: MailChimp OAuth2 strategy for OmniAuth 1.0
|
59
59
|
email:
|
60
60
|
- florian.mhun@gmail.com
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 1.8.
|
100
|
+
rubygems_version: 1.8.17
|
101
101
|
signing_key:
|
102
102
|
specification_version: 3
|
103
103
|
summary: MailChimp OAuth2 strategy for OmniAuth 1.0.
|