dwolla-ruby 2.6.3 → 2.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDY2YmU4NzA4ZDQyNmFjMjlmNjAyOWM2MDYzYzNkNTQ1NDAwYjY5Ng==
5
+ data.tar.gz: !binary |-
6
+ NzcyMTVmZjU2NzkwOTI4YzFiODJiODcwODMwZmJjMjI0MDY3NTliYg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MjQxYWRjMTgwNjQ2YjYzNDUxOWYyZjhiODk3ODU5ZDM0ODA0N2EwN2MzZmIy
10
+ NGFmM2VmMzkxYmJjYWE5ZDQ5Yzc3NmU3ZGEyMjczNzAyOGNjMjY2ZmUzMTRi
11
+ ODMyNGQzOGVmODQ0ODZlZWVhYTAwZDkyYzA3YzE0MGIwNGI1ODk=
12
+ data.tar.gz: !binary |-
13
+ Nzc2OWM4NzVjYzk3NTI1YmM1ZjNhM2VkMWI3YjViMjA0MzBiYWJjMWU5ZTBj
14
+ MmMzZGQxZjJiMGQwYzFlMzM2OGZjNTY4MTkwNmI1YzA1Y2NmOWMwYjFjM2Uz
15
+ OTQ4MjYzNzQwMWVlNGY4NDE3MmJhYmMwOGQzMTViZWE5NTRjN2U=
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  Official Ruby wrapper for Dwolla's API
3
3
 
4
4
  ## Version
5
- 2.6.3
5
+ 2.6.4
6
6
 
7
7
  [![Build Status](https://travis-ci.org/Dwolla/dwolla-ruby.svg?branch=master)](https://travis-ci.org/Dwolla/dwolla-ruby)
8
8
 
@@ -48,6 +48,9 @@ Dwolla::Contacts.get(nil, "your_token")
48
48
 
49
49
  ## Changelog
50
50
 
51
+ 2.6.4
52
+ * Fixed bug with refresh token call. Parameters were not being JSON encoded. Now OAuth `get_token` and `refresh_auth` calls use POST instead of GET.
53
+
51
54
  2.6.3
52
55
  * Fixed webhook validation, cleaned up OpenSSL Digest calls (thanks, @michaelblinn)!
53
56
 
data/lib/dwolla/oauth.rb CHANGED
@@ -37,7 +37,7 @@ module Dwolla
37
37
  # TODO: Revisit this
38
38
  (params = params.merge({:redirect_uri => redirect_uri})) unless redirect_uri.nil?
39
39
 
40
- resp = Dwolla.request(:get, token_url, params, {}, false, false, true)
40
+ resp = Dwolla.request(:post, token_url, params, {}, false, false, true)
41
41
 
42
42
  # TODO: Revisit this to make it more unit test friendly, fails ['error_description'] due to
43
43
  # key not existing, same on L58
@@ -55,7 +55,7 @@ module Dwolla
55
55
  :refresh_token => refresh_token
56
56
  }
57
57
 
58
- resp = Dwolla.request(:get, token_url, params, {}, false, false, true)
58
+ resp = Dwolla.request(:post, token_url, params, {}, false, false, true)
59
59
 
60
60
  return "No data received." unless resp.is_a?(Hash)
61
61
  raise APIError.new(resp['error_description']) unless resp.has_key?('access_token') and resp.has_key?('refresh_token')
@@ -1,3 +1,3 @@
1
1
  module Dwolla
2
- VERSION = "2.6.3"
2
+ VERSION = "2.6.4"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwolla-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
5
- prerelease:
4
+ version: 2.6.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Michael Schonfeld
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-02-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rest-client
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: multi_json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -41,7 +37,6 @@ dependencies:
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
41
  - - ! '>='
47
42
  - !ruby/object:Gem::Version
@@ -52,7 +47,6 @@ dependencies:
52
47
  - !ruby/object:Gem::Dependency
53
48
  name: addressable
54
49
  requirement: !ruby/object:Gem::Requirement
55
- none: false
56
50
  requirements:
57
51
  - - ! '>='
58
52
  - !ruby/object:Gem::Version
@@ -60,7 +54,6 @@ dependencies:
60
54
  type: :runtime
61
55
  prerelease: false
62
56
  version_requirements: !ruby/object:Gem::Requirement
63
- none: false
64
57
  requirements:
65
58
  - - ! '>='
66
59
  - !ruby/object:Gem::Version
@@ -68,7 +61,6 @@ dependencies:
68
61
  - !ruby/object:Gem::Dependency
69
62
  name: mocha
70
63
  requirement: !ruby/object:Gem::Requirement
71
- none: false
72
64
  requirements:
73
65
  - - ! '>='
74
66
  - !ruby/object:Gem::Version
@@ -76,7 +68,6 @@ dependencies:
76
68
  type: :development
77
69
  prerelease: false
78
70
  version_requirements: !ruby/object:Gem::Requirement
79
- none: false
80
71
  requirements:
81
72
  - - ! '>='
82
73
  - !ruby/object:Gem::Version
@@ -84,7 +75,6 @@ dependencies:
84
75
  - !ruby/object:Gem::Dependency
85
76
  name: test-unit
86
77
  requirement: !ruby/object:Gem::Requirement
87
- none: false
88
78
  requirements:
89
79
  - - ! '>='
90
80
  - !ruby/object:Gem::Version
@@ -92,7 +82,6 @@ dependencies:
92
82
  type: :development
93
83
  prerelease: false
94
84
  version_requirements: !ruby/object:Gem::Requirement
95
- none: false
96
85
  requirements:
97
86
  - - ! '>='
98
87
  - !ruby/object:Gem::Version
@@ -100,7 +89,6 @@ dependencies:
100
89
  - !ruby/object:Gem::Dependency
101
90
  name: rake
102
91
  requirement: !ruby/object:Gem::Requirement
103
- none: false
104
92
  requirements:
105
93
  - - ! '>='
106
94
  - !ruby/object:Gem::Version
@@ -108,7 +96,6 @@ dependencies:
108
96
  type: :development
109
97
  prerelease: false
110
98
  version_requirements: !ruby/object:Gem::Requirement
111
- none: false
112
99
  requirements:
113
100
  - - ! '>='
114
101
  - !ruby/object:Gem::Version
@@ -169,27 +156,26 @@ files:
169
156
  homepage: https://github.com/dwolla/dwolla-ruby
170
157
  licenses:
171
158
  - MIT
159
+ metadata: {}
172
160
  post_install_message:
173
161
  rdoc_options: []
174
162
  require_paths:
175
163
  - lib
176
164
  required_ruby_version: !ruby/object:Gem::Requirement
177
- none: false
178
165
  requirements:
179
166
  - - ! '>='
180
167
  - !ruby/object:Gem::Version
181
168
  version: '0'
182
169
  required_rubygems_version: !ruby/object:Gem::Requirement
183
- none: false
184
170
  requirements:
185
171
  - - ! '>='
186
172
  - !ruby/object:Gem::Version
187
173
  version: '0'
188
174
  requirements: []
189
175
  rubyforge_project: dwolla-ruby
190
- rubygems_version: 1.8.23
176
+ rubygems_version: 2.1.10
191
177
  signing_key:
192
- specification_version: 3
178
+ specification_version: 4
193
179
  summary: Official Ruby Wrapper for Dwolla's API
194
180
  test_files:
195
181
  - test/test_accounts.rb