dwolla-ruby 2.2.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +5 -1
- data/lib/dwolla.rb +19 -2
- data/lib/dwolla/oauth.rb +2 -2
- data/lib/dwolla/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWIzOTYzOTkyM2QxMjljZDVhYTFhMWJjYzY0ZThlYWY5MGE4YjY0Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTEzZDJjMDExNTA5ZmZjMDlkOGE0OTJjZjgyZTg0YjQwMjk1ZjVhNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDk3MmVkMGM4NmQzNDRkYjRiMjhiODk1ZTVjMmE5OTAyMGEyOTkyOGU4OGZi
|
10
|
+
YzA2MzBhNTczYjUwNzMzYTJhODE0MThmZjNjMjU3Y2EzMzFkZGFkZjE1NjI5
|
11
|
+
MDIzZjllN2JiMTYzMzE4MmU4MDhiYjVjNzgyNDk5ZjI5OGIyMjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTg0N2JkZjFjODIwYWM2YWM3YzUyMjM3ZGEzZTIyYTA1NzQ1MmMyZGIxNTk0
|
14
|
+
ZTk3Y2ZmODc0NGU0YmY5NjkyZWEzODIzZjc3MmNiYWZiM2RjMDg0ODEyYjU0
|
15
|
+
ZWNlN2M3YWNkMWFlYTVjNjFjZDdiNGM4YmRhOGE4NGM0YzczNDQ=
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[](https://travis-ci.org/Dwolla/dwolla-ruby)
|
5
5
|
|
6
6
|
## Version
|
7
|
-
2.
|
7
|
+
2.3.0
|
8
8
|
|
9
9
|
## Requirements
|
10
10
|
- [Ruby](http://www.ruby-lang.org/)
|
@@ -32,6 +32,10 @@ This repo includes various usage examples, including:
|
|
32
32
|
|
33
33
|
## Changelog
|
34
34
|
|
35
|
+
2.3.0
|
36
|
+
|
37
|
+
* Add support for "sandbox" / UAT mode
|
38
|
+
|
35
39
|
2.1.1
|
36
40
|
|
37
41
|
* Oops. POST request wasn't actually sending any params.
|
data/lib/dwolla.rb
CHANGED
@@ -32,10 +32,11 @@ module Dwolla
|
|
32
32
|
@@api_key = nil
|
33
33
|
@@api_secret = nil
|
34
34
|
@@token = nil
|
35
|
-
@@api_base = '
|
35
|
+
@@api_base = '/oauth/rest'
|
36
36
|
@@verify_ssl_certs = true
|
37
37
|
@@api_version = nil
|
38
38
|
@@debug = false
|
39
|
+
@@sandbox = false
|
39
40
|
|
40
41
|
def self.api_key=(api_key)
|
41
42
|
@@api_key = api_key
|
@@ -53,6 +54,14 @@ module Dwolla
|
|
53
54
|
@@api_secret
|
54
55
|
end
|
55
56
|
|
57
|
+
def self.sandbox=(sandbox)
|
58
|
+
@@sandbox = sandbox
|
59
|
+
end
|
60
|
+
|
61
|
+
def self.sandbox
|
62
|
+
@@sandbox
|
63
|
+
end
|
64
|
+
|
56
65
|
def self.debug
|
57
66
|
@@debug
|
58
67
|
end
|
@@ -85,8 +94,16 @@ module Dwolla
|
|
85
94
|
@@token
|
86
95
|
end
|
87
96
|
|
97
|
+
def self.hostname
|
98
|
+
if not @@sandbox
|
99
|
+
return 'https://www.dwolla.com'
|
100
|
+
else
|
101
|
+
return 'http://uat.dwolla.com'
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
88
105
|
def self.endpoint_url(endpoint)
|
89
|
-
@@api_base + endpoint
|
106
|
+
self.hostname + @@api_base + endpoint
|
90
107
|
end
|
91
108
|
|
92
109
|
def self.request(method, url, params={}, headers={}, oauth=true, parse_response=true, custom_url=false)
|
data/lib/dwolla/oauth.rb
CHANGED
@@ -33,11 +33,11 @@ module Dwolla
|
|
33
33
|
private
|
34
34
|
|
35
35
|
def self.auth_url
|
36
|
-
|
36
|
+
Dwolla.hostname + '/oauth/v2/authenticate'
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.token_url
|
40
|
-
|
40
|
+
Dwolla.hostname + '/oauth/v2/token'
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
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: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Schonfeld
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project: dwolla-ruby
|
179
|
-
rubygems_version: 2.0.
|
179
|
+
rubygems_version: 2.0.6
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: Official Ruby Wrapper for Dwolla's API
|