dwolla-ruby 2.4.1 → 2.4.2
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 +4 -0
- data/lib/dwolla.rb +12 -10
- data/lib/dwolla/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDFlZTc3ODI4YmRhYmNlODZmMTE3YzI5Y2RkYzMzY2IxNzRmYjc4ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmIyNzNlOTI0YjI5Y2E1MmQ3NjUwNTU0OTY3OTE0ODllYjIyYjc0Ng==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGU5YjQ0NmZhZTlmZTBkOTlhYTIwOTU3YmI5MmIxYzFlODlkOWQzYjhlNjll
|
10
|
+
OTcyNGQwYTVlMGFhY2MzYjAwMWMzODQyMWFhMDNmNDliN2M5YmE0OGYyY2Zl
|
11
|
+
NDU3ZGVhNTJhOTk0YTliM2M0MzM0OGQ2NjRjNDZmNjQ5ZjlhMjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGUzMjNlZTRjMjI2YWQ2MmJiYjAwN2FkNTAzYmY2Zjg0ZmM2Mjc1NmU1YzNj
|
14
|
+
ODU3ODhmMzNlZTFjMjQ1MzBkNTNlNDllZTQ0YmU4NDk3MmFhMmRlMzNkNTkx
|
15
|
+
YzBlYWVkMWRlZWEzZWE4MTFkZTA1MTlkNjQyOTA1Zjk5MWExYzQ=
|
data/README.md
CHANGED
data/lib/dwolla.rb
CHANGED
@@ -109,19 +109,21 @@ module Dwolla
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def self.request(method, url, params={}, headers={}, oauth=true, parse_response=true, custom_url=false)
|
112
|
-
# if oauth is nil, assume default
|
113
|
-
if oauth.nil?
|
114
|
-
oauth = true
|
115
|
-
elsif not oauth.is_a?(TrueClass)
|
116
|
-
params[:oauth_token] = oauth
|
117
|
-
end
|
112
|
+
# if oauth is nil, assume default [true]
|
113
|
+
oauth = true if oauth.nil?
|
118
114
|
|
119
115
|
# figure out which auth to use
|
120
116
|
if oauth and not params[:oauth_token]
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
117
|
+
if not oauth.is_a?(TrueClass) # was token passed in the oauth param?
|
118
|
+
params = {
|
119
|
+
:oauth_token => oauth
|
120
|
+
}.merge(params)
|
121
|
+
else
|
122
|
+
raise AuthenticationError.new('No OAuth Token Provided.') unless token
|
123
|
+
params = {
|
124
|
+
:oauth_token => token
|
125
|
+
}.merge(params)
|
126
|
+
end
|
125
127
|
elsif oauth and params[:oauth_token]
|
126
128
|
raise AuthenticationError.new('No OAuth Token Provided.') unless params[:oauth_token]
|
127
129
|
else not oauth
|
data/lib/dwolla/version.rb
CHANGED