dwolla-ruby 2.6.6 → 2.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a407d20fe9792d058196bc9cf488123c8fb96c4
4
- data.tar.gz: 4a02484dca6a9a56cac21ff3725d0760274da90f
3
+ metadata.gz: b9c4d8a2134b572c7e022874b010a080c61d0a0c
4
+ data.tar.gz: 2265fda6fb9d81bf04a66c24db4587d6a73e0957
5
5
  SHA512:
6
- metadata.gz: a89c90a9a8db9d6991242731857c30ba852b54dbabda858642d40a360613b4087cc6afac1bbecf1b96ea94d4738f994b602f9637589b53f86613f8b98da8445c
7
- data.tar.gz: d6bc8183bc7d39c640ab59294e6ba10a317403f49dd2a65bd3726c618c5c31d5154f040715e44113e3a140eebba433c6474c2b49b0be547440d752172175c2c2
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.6
7
+ 2.6.7
8
8
 
9
9
  [![Build Status](https://travis-ci.org/Dwolla/dwolla-ruby.svg?branch=master)](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.4')
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Dwolla
2
- VERSION = "2.6.6"
2
+ VERSION = "2.6.7"
3
3
  end
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.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-04-30 00:00:00.000000000 Z
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: '1.4'
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: '1.4'
26
+ version: 1.7.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement