omniauth-37signals 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Guardfile CHANGED
@@ -7,5 +7,5 @@ end
7
7
 
8
8
  guard 'bundler' do
9
9
  watch('Gemfile')
10
- watch('omniauth-github.gemspec')
10
+ watch('omniauth-37signals.gemspec')
11
11
  end
data/Rakefile CHANGED
@@ -1,3 +1,8 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+ require "rspec/core/rake_task"
3
4
 
5
+ RSpec::Core::RakeTask.new do |t|
6
+ end
7
+
8
+ task :default => :spec
@@ -1,6 +1,6 @@
1
1
  module OmniAuth
2
2
  module ThirtySevenSignals
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
6
6
 
@@ -7,9 +7,7 @@ module OmniAuth
7
7
  option :client_options, {
8
8
  :site => 'https://launchpad.37signals.com',
9
9
  :authorize_url => '/authorization/new',
10
- :token_url => '/authorization/token',
11
- # :header_format => 'Token %s',
12
- # :param_name => 'Authorization',
10
+ :token_url => '/authorization/token'
13
11
  }
14
12
 
15
13
  option :authorize_params, {
@@ -23,27 +21,6 @@ module OmniAuth
23
21
  super
24
22
  end
25
23
 
26
- # def callback_phase
27
- # if request.params['error'] || request.params['error_reason']
28
- # raise CallbackError.new(request.params['error'], request.params['error_description'] || request.params['error_reason'], request.params['error_uri'])
29
- # end
30
-
31
- # self.access_token = build_access_token
32
- # self.access_token = client.auth_code.refresh_token(access_token.refresh_token) if access_token.expired?
33
-
34
- # rescue ::OAuth2::Error, CallbackError => e
35
- # fail!(e.response.body, e)
36
- # rescue ::MultiJson::DecodeError => e
37
- # fail!(:invalid_response, e)
38
- # rescue ::Timeout::Error, ::Errno::ETIMEDOUT => e
39
- # fail!(:timeout, e)
40
- # end
41
-
42
- # def build_access_token
43
- # verifier = request.params['code']
44
- # client.get_token({:code => verifier, :client_id => client.id, :client_secret => client.secret, :type => 'web_server', :redirect_uri => "http://localhost:4567/auth/37signals/callback"})
45
- # end
46
-
47
24
  def build_access_token
48
25
  token_params = {
49
26
  :code => request.params['code'],
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_dependency 'omniauth', '~> 1.0'
19
19
  gem.add_dependency 'omniauth-oauth2', '~> 1.0'
20
- gem.add_dependency 'multi_json', '~> 1.0.3'
20
+ gem.add_dependency 'multi_json', '>= 1.0.0', '<= 1.1.0'
21
21
  gem.add_development_dependency 'rspec', '~> 2.7'
22
22
  gem.add_development_dependency 'rack-test'
23
23
  gem.add_development_dependency 'simplecov'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-37signals
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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: 2011-11-11 00:00:00.000000000Z
12
+ date: 2012-02-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
16
- requirement: &2156180580 !ruby/object:Gem::Requirement
16
+ requirement: &2153358320 !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: *2156180580
24
+ version_requirements: *2153358320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: omniauth-oauth2
27
- requirement: &2156180060 !ruby/object:Gem::Requirement
27
+ requirement: &2153357780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,21 +32,24 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2156180060
35
+ version_requirements: *2153357780
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: multi_json
38
- requirement: &2156179600 !ruby/object:Gem::Requirement
38
+ requirement: &2153357200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ~>
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: 1.0.0
44
+ - - <=
42
45
  - !ruby/object:Gem::Version
43
- version: 1.0.3
46
+ version: 1.1.0
44
47
  type: :runtime
45
48
  prerelease: false
46
- version_requirements: *2156179600
49
+ version_requirements: *2153357200
47
50
  - !ruby/object:Gem::Dependency
48
51
  name: rspec
49
- requirement: &2156179140 !ruby/object:Gem::Requirement
52
+ requirement: &2153356180 !ruby/object:Gem::Requirement
50
53
  none: false
51
54
  requirements:
52
55
  - - ~>
@@ -54,10 +57,10 @@ dependencies:
54
57
  version: '2.7'
55
58
  type: :development
56
59
  prerelease: false
57
- version_requirements: *2156179140
60
+ version_requirements: *2153356180
58
61
  - !ruby/object:Gem::Dependency
59
62
  name: rack-test
60
- requirement: &2156178740 !ruby/object:Gem::Requirement
63
+ requirement: &2153355260 !ruby/object:Gem::Requirement
61
64
  none: false
62
65
  requirements:
63
66
  - - ! '>='
@@ -65,10 +68,10 @@ dependencies:
65
68
  version: '0'
66
69
  type: :development
67
70
  prerelease: false
68
- version_requirements: *2156178740
71
+ version_requirements: *2153355260
69
72
  - !ruby/object:Gem::Dependency
70
73
  name: simplecov
71
- requirement: &2156178280 !ruby/object:Gem::Requirement
74
+ requirement: &2153354800 !ruby/object:Gem::Requirement
72
75
  none: false
73
76
  requirements:
74
77
  - - ! '>='
@@ -76,10 +79,10 @@ dependencies:
76
79
  version: '0'
77
80
  type: :development
78
81
  prerelease: false
79
- version_requirements: *2156178280
82
+ version_requirements: *2153354800
80
83
  - !ruby/object:Gem::Dependency
81
84
  name: webmock
82
- requirement: &2156177860 !ruby/object:Gem::Requirement
85
+ requirement: &2153354360 !ruby/object:Gem::Requirement
83
86
  none: false
84
87
  requirements:
85
88
  - - ! '>='
@@ -87,7 +90,7 @@ dependencies:
87
90
  version: '0'
88
91
  type: :development
89
92
  prerelease: false
90
- version_requirements: *2156177860
93
+ version_requirements: *2153354360
91
94
  description: OmniAuth strategy for 37signals.
92
95
  email:
93
96
  - william.barrett@tallgreentree.com