dwolla-ruby 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/lib/dwolla/requests.rb +4 -4
- data/lib/dwolla/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f39a230f6d602e791045db44602b31ccbfe6c7a
|
4
|
+
data.tar.gz: 6b7c5a7c0ce735966f8f55915e7927977270a300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c2cd535ae06a871ed4f89d4b873f6755e487238fc04843e534b37a6c9b82c9ceb5bfa8d5382ac446233e4568a516fa9d8168a4bd8daadaa30c8ed50490da96d
|
7
|
+
data.tar.gz: 4ef1fd88fa358d18096968eb0e1ee86a1d028372730528e0db5fb2916c4e561450b4f1de9887977c04adc3024177bb12bd7de40a3878eb4bc0e8874b8fe30d9a
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ This repository is for an old version of our API and is no longer actively maint
|
|
8
8
|
[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
|
9
9
|
|
10
10
|
## Version
|
11
|
-
3.0.
|
11
|
+
3.0.1
|
12
12
|
|
13
13
|
[![Build Status](https://travis-ci.org/Dwolla/dwolla-ruby.svg?branch=master)](https://travis-ci.org/Dwolla/dwolla-ruby)
|
14
14
|
|
@@ -39,7 +39,7 @@ This repo includes various usage examples, including:
|
|
39
39
|
|
40
40
|
## Concurrent requests
|
41
41
|
|
42
|
-
If making requests using any background processing library such as `Sidkiq` or `Resque`, we recommend that you manually pass in tokens to functions which take an OAuth token.
|
42
|
+
If making requests using any background processing library such as `Sidkiq` or `Resque`, we recommend that you manually pass in tokens to functions which take an OAuth token.
|
43
43
|
|
44
44
|
For example, we can do this with the `Contacts` class:
|
45
45
|
|
@@ -54,6 +54,9 @@ Dwolla::Contacts.get(nil, "your_token")
|
|
54
54
|
|
55
55
|
## Changelog
|
56
56
|
|
57
|
+
3.0.1
|
58
|
+
* [Match extract_authorization expectations](https://github.com/Dwolla/dwolla-ruby/pull/47)
|
59
|
+
|
57
60
|
3.0.0
|
58
61
|
* Pass token in Authorization header
|
59
62
|
|
@@ -64,7 +67,7 @@ Dwolla::Contacts.get(nil, "your_token")
|
|
64
67
|
* Fix loss of filter parameters issue in `Transactions#get`. (thanks, @jackchang!)
|
65
68
|
|
66
69
|
2.6.9
|
67
|
-
* Handling of network errors has improved. If there is any issue receiving an API response an `APIConnectionError` will now be thrown.
|
70
|
+
* Handling of network errors has improved. If there is any issue receiving an API response an `APIConnectionError` will now be thrown.
|
68
71
|
|
69
72
|
2.6.8
|
70
73
|
* Updated `rest_client` version constraint for better compatibility.
|
@@ -96,7 +99,7 @@ Dwolla::Contacts.get(nil, "your_token")
|
|
96
99
|
2.6.0
|
97
100
|
|
98
101
|
* **BREAKING CHANGE**: OAuth access tokens now expire. Instead of a string, `Dwolla::OAuth::get_token` now returns a hash with an `access_token`, `refresh_token`, and expiration times in seconds for both. In order to refresh authorization, use `Dwolla::OAuth.refresh_auth`
|
99
|
-
* **BREAKING CHANGE**: Guest send has been officially deprecated and removed from this gem.
|
102
|
+
* **BREAKING CHANGE**: Guest send has been officially deprecated and removed from this gem.
|
100
103
|
* All MassPay endpoints have been included in this release for batch payment support.
|
101
104
|
* Proper unit tests implemented for all endpoints.
|
102
105
|
|
@@ -110,7 +113,7 @@ Dwolla::Contacts.get(nil, "your_token")
|
|
110
113
|
|
111
114
|
2.5.3
|
112
115
|
|
113
|
-
* Updated offsite gateway to support UAT URL return when sandbox flag is toggled.
|
116
|
+
* Updated offsite gateway to support UAT URL return when sandbox flag is toggled.
|
114
117
|
|
115
118
|
2.5.2
|
116
119
|
|
data/lib/dwolla/requests.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Dwolla
|
2
2
|
class Requests
|
3
|
-
def self.get(id=nil, filters={}, token=
|
3
|
+
def self.get(id=nil, filters={}, token=true)
|
4
4
|
url = requests_url
|
5
5
|
|
6
6
|
if id.is_a?(Hash)
|
@@ -15,7 +15,7 @@ module Dwolla
|
|
15
15
|
Dwolla.request(:get, url, filters, {}, token)
|
16
16
|
end
|
17
17
|
|
18
|
-
def self.delete(id=nil, token=
|
18
|
+
def self.delete(id=nil, token=true)
|
19
19
|
raise MissingParameterError.new('No Request ID Provided.') if id.nil?
|
20
20
|
|
21
21
|
url = requests_url + id.to_s + '/cancel'
|
@@ -23,7 +23,7 @@ module Dwolla
|
|
23
23
|
Dwolla.request(:post, url, {}, {}, token)
|
24
24
|
end
|
25
25
|
|
26
|
-
def self.create(params={}, token=
|
26
|
+
def self.create(params={}, token=true)
|
27
27
|
raise MissingParameterError.new('No Source ID Provided.') unless params[:sourceId]
|
28
28
|
raise MissingParameterError.new('No Amount Provided.') unless params[:amount]
|
29
29
|
|
@@ -32,7 +32,7 @@ module Dwolla
|
|
32
32
|
Dwolla.request(:post, url, params, {}, token)
|
33
33
|
end
|
34
34
|
|
35
|
-
def self.fulfill(id=nil, params={}, token=
|
35
|
+
def self.fulfill(id=nil, params={}, token=true)
|
36
36
|
raise MissingParameterError.new('No Request ID Provided.') if id.nil?
|
37
37
|
raise MissingParameterError.new('No PIN Provided.') unless params[:pin]
|
38
38
|
|
data/lib/dwolla/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dwolla-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Schonfeld
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project: dwolla-ruby
|
183
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.6.13
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Official Ruby Wrapper for Dwolla's API
|