omniauth-gocardless 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,18 @@
1
- pkg/*
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.swp
data/README.md CHANGED
@@ -29,10 +29,10 @@ To authorize against your gocardless sandbox environment set the site url to `ht
29
29
  client_options: {site: 'https://sandbox.gocardless.com'}
30
30
  end
31
31
 
32
- To set a fixed redirect_uri e.g. if you call from different subdomains you can set it like this:
32
+ To set a callback host e.g. if you call from different subdomains you can set it like this:
33
33
 
34
34
  Rails.application.config.middleware.use OmniAuth::Builder do
35
35
  provider :gocardless, '<client_id>', '<client_secret>', scope: 'manage_merchant',
36
- redirect_uri: 'https://cobot.me/'
36
+ callback_host: 'https://www.cobot.me'
37
37
  end
38
38
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Gocardless
3
- VERSION = '1.0.1'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ module OmniAuth
3
3
  module Strategies
4
4
  class Gocardless < OmniAuth::Strategies::OAuth2
5
5
  option :name, 'gocardless'
6
- option :redirect_uri, nil
6
+ option :callback_host, nil
7
7
  option :client_options, {
8
8
  :site => 'https://gocardless.com',
9
9
  :authorize_url => '/oauth/authorize',
@@ -27,7 +27,7 @@ module OmniAuth
27
27
  end
28
28
 
29
29
  def callback_url
30
- options[:redirect_uri] || super
30
+ (options[:callback_host] || full_host) + script_name + callback_path
31
31
  end
32
32
 
33
33
  def raw_info
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-gocardless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-05 00:00:00.000000000 Z
12
+ date: 2013-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2
@@ -51,7 +51,6 @@ extra_rdoc_files: []
51
51
  files:
52
52
  - .gitignore
53
53
  - Gemfile
54
- - Gemfile.lock
55
54
  - MIT_LICENSE.txt
56
55
  - README.md
57
56
  - Rakefile
@@ -71,12 +70,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
70
  - - ! '>='
72
71
  - !ruby/object:Gem::Version
73
72
  version: '0'
73
+ segments:
74
+ - 0
75
+ hash: 1862944291817077566
74
76
  required_rubygems_version: !ruby/object:Gem::Requirement
75
77
  none: false
76
78
  requirements:
77
79
  - - ! '>='
78
80
  - !ruby/object:Gem::Version
79
81
  version: '0'
82
+ segments:
83
+ - 0
84
+ hash: 1862944291817077566
80
85
  requirements: []
81
86
  rubyforge_project:
82
87
  rubygems_version: 1.8.23
@@ -84,4 +89,3 @@ signing_key:
84
89
  specification_version: 3
85
90
  summary: OmniAuth strategy for GoCardless
86
91
  test_files: []
87
- has_rdoc:
@@ -1,38 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- omniauth-gocardless (1.0.0)
5
- omniauth-oauth2
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- faraday (0.8.6)
11
- multipart-post (~> 1.1)
12
- hashie (1.2.0)
13
- httpauth (0.2.0)
14
- jwt (0.1.5)
15
- multi_json (>= 1.0)
16
- multi_json (1.6.1)
17
- multipart-post (1.2.0)
18
- oauth2 (0.8.1)
19
- faraday (~> 0.8)
20
- httpauth (~> 0.1)
21
- jwt (~> 0.1.4)
22
- multi_json (~> 1.0)
23
- rack (~> 1.2)
24
- omniauth (1.1.3)
25
- hashie (~> 1.2)
26
- rack
27
- omniauth-oauth2 (1.1.1)
28
- oauth2 (~> 0.8.0)
29
- omniauth (~> 1.0)
30
- rack (1.5.2)
31
- rake (10.0.3)
32
-
33
- PLATFORMS
34
- ruby
35
-
36
- DEPENDENCIES
37
- omniauth-gocardless!
38
- rake