dwolla_v2 3.0.0.beta1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7963f8175eae7eb4b236c230b324b288e41a2686
4
- data.tar.gz: 597f2b2e59fbec611faedfae85c298e3e31930a3
3
+ metadata.gz: 04ea7cc2d529112d20b1f698f4d16a594cadc794
4
+ data.tar.gz: 488cfbf4e246fc946618c50d902c22d3aadcce6b
5
5
  SHA512:
6
- metadata.gz: aa074f34b265f8bc1445b9319d98f1440977a59562941e2b1d8d6229305640893d3d2d691663738daf0db395e2addee711e9e6dc170b5e8e33db4b8396882c6f
7
- data.tar.gz: 309c1016afee59fccd4a3052d3493c0d80009d49c7423078fbffef10c4760cd36c0e54d81804197e348e4bd275132e02515d3a232af58d3a66f95744fbb93b70
6
+ metadata.gz: 2fae9c35b16b1bdbdac7ff47510474e8aa60358c0001ee6ed88df034e8edf25ddf8c50f992b567ca589dc417c888b603013cf70ed62f10c1cbf29f81dd5433fe
7
+ data.tar.gz: 0cad24dc527142f703765fa37c0a423fe8f695edebe0d0cd3594f59b9d085902b5214be03f4034d82e55f0526329f65019799376fac8839cac537efc8a3bf8de
data/README.md CHANGED
@@ -41,6 +41,10 @@ $dwolla = DwollaV2::Client.new(
41
41
  )
42
42
  ```
43
43
 
44
+ ### Integrations Authorization
45
+
46
+ Check out our [Integrations Authorization Guide](https://developers.dwolla.com/integrations/authorization).
47
+
44
48
  ### Configure Faraday (optional)
45
49
 
46
50
  DwollaV2 uses [Faraday][faraday] to make HTTP requests. You can configure your own
@@ -183,6 +187,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
183
187
 
184
188
  ## Changelog
185
189
 
190
+ - **3.0.0** - Add integrations auth functions
186
191
  - **3.0.0.beta1** - Add token management functionality to `DwollaV2::Client`
187
192
  - **2.2.1** - Update dependencies
188
193
  - **2.2.0** - Change token url from `www.dwolla.com/oauth/v2/token` to `accounts.dwolla.com/token`
@@ -18,7 +18,7 @@ module DwollaV2
18
18
  attr_reader :id, :secret, :auths, :tokens
19
19
  alias_method :key, :id
20
20
 
21
- def_delegators :token, :get, :post, :delete
21
+ def_delegators :current_token, :get, :post, :delete
22
22
 
23
23
  def initialize opts
24
24
  opts[:id] ||= opts[:key]
@@ -70,6 +70,21 @@ module DwollaV2
70
70
  end
71
71
  end
72
72
 
73
+ def auth(params = {})
74
+ DwollaV2::Auth.new(self, params)
75
+ end
76
+
77
+ def refresh_token(params = {})
78
+ unless params.is_a?(Hash) && params.has_key?(:refresh_token)
79
+ raise ArgumentError.new(":refresh_token is required")
80
+ end
81
+ auths.refresh(params, params)
82
+ end
83
+
84
+ def token(params = {})
85
+ tokens.new(params)
86
+ end
87
+
73
88
  def auth_url
74
89
  ENVIRONMENTS[environment][:auth_url]
75
90
  end
@@ -88,7 +103,7 @@ module DwollaV2
88
103
 
89
104
  private
90
105
 
91
- def token
106
+ def current_token
92
107
  @token_manager.get_token
93
108
  end
94
109
  end
@@ -1,3 +1,3 @@
1
1
  module DwollaV2
2
- VERSION = "3.0.0.beta1"
2
+ VERSION = "3.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwolla_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Ausman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-21 00:00:00.000000000 Z
11
+ date: 2019-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -182,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">"
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: 1.3.1
187
+ version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
190
  rubygems_version: 2.5.2.3