omniauth-dropbox-oauth2 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module DropboxOauth2
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
- end
5
+ end
@@ -27,6 +27,14 @@ module OmniAuth
27
27
  def raw_info
28
28
  @raw_info ||= MultiJson.decode(access_token.get('/1/account/info').body)
29
29
  end
30
+
31
+ def callback_url
32
+ if @authorization_code_from_signed_request
33
+ ''
34
+ else
35
+ options[:callback_url] || super
36
+ end
37
+ end
30
38
  end
31
39
  end
32
- end
40
+ end
@@ -11,8 +11,6 @@ Gem::Specification.new do |gem|
11
11
  gem.description = 'Dropbox OAuth2 strategy for OmniAuth 1.x'
12
12
  gem.summary = gem.description
13
13
 
14
- gem.license = "MIT"
15
-
16
14
  gem.add_dependency "omniauth-oauth2"
17
15
 
18
16
  gem.add_development_dependency 'rake'
metadata CHANGED
@@ -1,41 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-dropbox-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Bernardo Amorim
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-08-14 00:00:00.000000000 Z
12
+ date: 2014-01-08 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: omniauth-oauth2
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  description: Dropbox OAuth2 strategy for OmniAuth 1.x
@@ -53,27 +58,27 @@ files:
53
58
  - lib/tasks/.keep
54
59
  - omniauth-dropbox-oauth2.gemspec
55
60
  homepage: https://github.com/bamorim/omniauth-dropbox-oauth2
56
- licenses:
57
- - MIT
58
- metadata: {}
61
+ licenses: []
59
62
  post_install_message:
60
63
  rdoc_options: []
61
64
  require_paths:
62
65
  - lib
63
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
64
68
  requirements:
65
- - - '>='
69
+ - - ! '>='
66
70
  - !ruby/object:Gem::Version
67
71
  version: '0'
68
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
69
74
  requirements:
70
- - - '>='
75
+ - - ! '>='
71
76
  - !ruby/object:Gem::Version
72
77
  version: '0'
73
78
  requirements: []
74
79
  rubyforge_project:
75
- rubygems_version: 2.0.3
80
+ rubygems_version: 1.8.23
76
81
  signing_key:
77
- specification_version: 4
82
+ specification_version: 3
78
83
  summary: Dropbox OAuth2 strategy for OmniAuth 1.x
79
84
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: c5ed11539bf046bda18750b3adeb8f65b59da216
4
- data.tar.gz: fda41aa35547d48d381cc3f940fa13678963074c
5
- SHA512:
6
- metadata.gz: 82064f64501a029476602ab78cfb79fa4aa5ecfcee46e0cbc02a0edf1a0bb3acaecba2560c7a3d1dd2092fd82b86a89517e889e1834cd3456b68e84608f7f153
7
- data.tar.gz: 370997d8cb09b2ac6390a9e90075724e6787c52c5bef2219ab5f0b055fa48b2743b7ff0e4ccf440195a45629a1b478f8c7d1655de55533533b745dfcf95bb466