dwolla-ruby 2.6.6 → 2.6.7
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 +4 -4
- data/README.md +6 -1
- data/dwolla-ruby.gemspec +1 -1
- data/lib/dwolla/oauth.rb +2 -3
- data/lib/dwolla/transactions.rb +0 -1
- data/lib/dwolla/version.rb +1 -1
- data/test/test_oauth.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9c4d8a2134b572c7e022874b010a080c61d0a0c
|
4
|
+
data.tar.gz: 2265fda6fb9d81bf04a66c24db4587d6a73e0957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1193203366e14b5704a0867881bf93fb26c0eb68bc5c25ec0d0d44334046f7834b05b48231db18331245f4e9cc8b62c54b0acca258c41a39540dc5c1e65f4030
|
7
|
+
data.tar.gz: 5035dc560095fa475e352b6b04c0b84e8f9e1b0a030b264d2b3f68be488e02fe72408b63779215790bd909008b921ea4c6715f23a8841b4370ecaa2993bb0e77
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
Official Ruby wrapper for Dwolla's API
|
5
5
|
|
6
6
|
## Version
|
7
|
-
2.6.
|
7
|
+
2.6.7
|
8
8
|
|
9
9
|
[](https://travis-ci.org/Dwolla/dwolla-ruby)
|
10
10
|
|
@@ -50,6 +50,11 @@ Dwolla::Contacts.get(nil, "your_token")
|
|
50
50
|
|
51
51
|
## Changelog
|
52
52
|
|
53
|
+
2.6.7
|
54
|
+
* Removed `pin` as required argument for certain transactional operations due to compliance with Dwolla Direct.
|
55
|
+
* Updated `rest_client` version constraint due to security concerns.
|
56
|
+
* Refactored OAuth URL generation function.
|
57
|
+
|
53
58
|
2.6.6
|
54
59
|
* Added new `verified_account` parameter to authorization URL.
|
55
60
|
|
data/dwolla-ruby.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.test_files = `git ls-files -- test/*`.split("\n")
|
18
18
|
s.require_paths = %w{lib}
|
19
19
|
|
20
|
-
s.add_dependency('rest-client', '~> 1.
|
20
|
+
s.add_dependency('rest-client', '~> 1.7.3')
|
21
21
|
s.add_dependency('multi_json', '>= 1.0.4', '< 2')
|
22
22
|
s.add_dependency('addressable', '>= 2')
|
23
23
|
|
data/lib/dwolla/oauth.rb
CHANGED
@@ -6,11 +6,10 @@ module Dwolla
|
|
6
6
|
params = {
|
7
7
|
:scope => scope,
|
8
8
|
:response_type => 'code',
|
9
|
-
:client_id => Dwolla::api_key
|
9
|
+
:client_id => Dwolla::api_key,
|
10
|
+
:verified_account => verified_account
|
10
11
|
}
|
11
12
|
|
12
|
-
if verified_account then params[:verified_account] = true end
|
13
|
-
|
14
13
|
params['redirect_uri'] = redirect_uri unless redirect_uri.nil?
|
15
14
|
|
16
15
|
uri = Addressable::URI.new
|
data/lib/dwolla/transactions.rb
CHANGED
@@ -22,7 +22,6 @@ module Dwolla
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.create(params={}, token=nil)
|
25
|
-
raise MissingParameterError.new('No PIN Provided.') unless params[:pin]
|
26
25
|
raise MissingParameterError.new('No Destination ID Provided.') unless params[:destinationId]
|
27
26
|
raise MissingParameterError.new('No Amount Provided.') unless params[:amount]
|
28
27
|
|
data/lib/dwolla/version.rb
CHANGED
data/test/test_oauth.rb
CHANGED
@@ -6,7 +6,7 @@ class OAuthTest < Test::Unit::TestCase
|
|
6
6
|
def test_get_auth_url
|
7
7
|
Dwolla::api_key = 'abcd'
|
8
8
|
Dwolla::scope = 'efgh'
|
9
|
-
assert Dwolla::OAuth.get_auth_url == "https://www.dwolla.com/oauth/v2/authenticate?client_id=abcd&response_type=code&scope=efgh"
|
9
|
+
assert Dwolla::OAuth.get_auth_url == "https://www.dwolla.com/oauth/v2/authenticate?client_id=abcd&response_type=code&scope=efgh&verified_account=false"
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_get_token
|
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.6.
|
4
|
+
version: 2.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Schonfeld
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.7.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.7.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: multi_json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|