dwolla-ruby 2.4.3 → 2.4.4
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 +9 -9
- data/README.md +5 -1
- data/examples/offsiteGateway.rb +1 -4
- data/lib/dwolla.rb +9 -0
- data/lib/dwolla/oauth.rb +1 -1
- 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
|
+
Njc2MjU0ZjBjNjU0OTBjYTlkZjdiZGZjZmQyZDk5ZGU1YTI1OTZhNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
7
|
-
|
6
|
+
NjRjYWY1Y2I1NmQwMDFiNmQ1NzVmODgyNjY0MWFhNWM2NmNiNzc0Yw==
|
7
|
+
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGRiMjQyZDlkNWNkMDBhM2ZiZjFiNzE0NTFmYjYwMjliYjk4NTQyZTllY2Y4
|
10
|
+
ZWExNjk2YWJlOTZkNTQwZDUyNmZjMDJlYjY0NWZkYWRlMGQ3ZjE2YzkyOGFj
|
11
|
+
NmZhNDhlMWNhYjIxODU4OTJkYzgzYWIzODA5MzhiYzcxZTNlZGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDkyNDc1MmQ2YTJjMTQ5MmM1NWY0OTcyYTI3MmRhMjVjZmU5ODc5MGZkYTRk
|
14
|
+
ZmI4Yjg5YzEzZmMzMDQwZjYxNTA4MjUzOTM3ZDJkYWJiNDk5MzhmZjQ3MzFj
|
15
|
+
ZDhjOTJjY2RhMWIxNjkwZmU4ZGIwNmE5NjY3MGVkMWM4MGM5NGQ=
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[](https://travis-ci.org/Dwolla/dwolla-ruby)
|
5
5
|
|
6
6
|
## Version
|
7
|
-
2.4.
|
7
|
+
2.4.4
|
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.4.4
|
36
|
+
|
37
|
+
* Globalize the OAuth scope variable
|
38
|
+
|
35
39
|
2.4.3
|
36
40
|
|
37
41
|
* Add missing files [accounts.rb]
|
data/examples/offsiteGateway.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
2
|
-
|
3
1
|
# Include the Dwolla gem
|
4
2
|
require 'rubygems'
|
5
3
|
require 'pp'
|
6
|
-
require '
|
4
|
+
require 'dwolla'
|
7
5
|
|
8
6
|
# Include any required keys
|
9
7
|
require './_keys.rb'
|
@@ -11,7 +9,6 @@ require './_keys.rb'
|
|
11
9
|
# Instantiate a new Dwolla User client
|
12
10
|
Dwolla::api_key = @api_key
|
13
11
|
Dwolla::api_secret = @api_secret
|
14
|
-
Dwolla::debug = false
|
15
12
|
|
16
13
|
# Clear out any previous session data
|
17
14
|
Dwolla::OffsiteGateway.clear_session
|
data/lib/dwolla.rb
CHANGED
@@ -39,6 +39,7 @@ module Dwolla
|
|
39
39
|
@@api_version = nil
|
40
40
|
@@debug = false
|
41
41
|
@@sandbox = false
|
42
|
+
@@scope = 'send|transactions|balance|request|contacts|accountinfofull|funding'
|
42
43
|
|
43
44
|
def self.api_key=(api_key)
|
44
45
|
@@api_key = api_key
|
@@ -96,6 +97,14 @@ module Dwolla
|
|
96
97
|
@@token
|
97
98
|
end
|
98
99
|
|
100
|
+
def self.scope=(scope)
|
101
|
+
@@scope = scope
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.scope
|
105
|
+
@@scope
|
106
|
+
end
|
107
|
+
|
99
108
|
def self.hostname
|
100
109
|
if not @@sandbox
|
101
110
|
return 'https://www.dwolla.com'
|
data/lib/dwolla/oauth.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Dwolla
|
2
2
|
class OAuth
|
3
|
-
def self.get_auth_url(redirect_uri=nil, scope=
|
3
|
+
def self.get_auth_url(redirect_uri=nil, scope=Dwolla::scope)
|
4
4
|
raise AuthenticationError.new('No Api Key Provided.') unless Dwolla::api_key
|
5
5
|
|
6
6
|
params = {
|
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.
|
4
|
+
version: 2.4.4
|
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-09-
|
11
|
+
date: 2013-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project: dwolla-ruby
|
181
|
-
rubygems_version: 2.
|
181
|
+
rubygems_version: 2.1.1
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Official Ruby Wrapper for Dwolla's API
|