coyodlee 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/examples/demo.rb +1 -0
- data/lib/coyodlee/connection.rb +1 -1
- data/lib/coyodlee/uri_builder.rb +3 -3
- data/lib/coyodlee/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32da7271636e926fc318b2d7ead7b114a394b09e6b82d16def501405a4001309
|
4
|
+
data.tar.gz: ab272c6b024445316a743e824dbab644f7e763b6f614a497e3cec0406e3ca89b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a318894e1e83addebc596017b946f7caf1170ac340c8b283ce6e02a0685fc804b9e1bb08aaf63cf42758aa0ef21915a8e2a949708f720a37619e20431204c988
|
7
|
+
data.tar.gz: f8dc4255bdc3b577cc00262342ed77f1c183ea5e594039bda10f3963172c34a1dca731985aabfaab67c04bb0b5d37a684df6f045fd61472b8e0ede871c134512
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ This library works with Ruby 2.3+.
|
|
19
19
|
|
20
20
|
## Setup
|
21
21
|
|
22
|
-
In sandbox mode, set ```Coyodlee.host``` to ```developer.api.yodlee.com
|
22
|
+
In sandbox mode, set ```Coyodlee.host``` to ```developer.api.yodlee.com``` and `Coyodlee.cobrand_name` to `restserver`.
|
23
23
|
|
24
24
|
Export the following environment variables:
|
25
25
|
|
@@ -53,6 +53,7 @@ require 'coyodlee'
|
|
53
53
|
|
54
54
|
Coyodlee.setup do |config|
|
55
55
|
config.host = 'developer.api.yodlee.com'
|
56
|
+
config.cobrand_name = 'restserver'
|
56
57
|
config.cobrand_login = ENV['YODLEE_COBRAND_LOGIN']
|
57
58
|
config.cobrand_password = ENV['YODLEE_COBRAND_PASSWORD']
|
58
59
|
end
|
data/examples/demo.rb
CHANGED
data/lib/coyodlee/connection.rb
CHANGED
@@ -216,7 +216,7 @@ module Coyodlee
|
|
216
216
|
class Connection
|
217
217
|
class << self
|
218
218
|
def create
|
219
|
-
new RequestBuilder.new(UriBuilder.new(host: Coyodlee.host))
|
219
|
+
new RequestBuilder.new(UriBuilder.new(host: Coyodlee.host, cobrand_name: Coyodlee.cobrand_name))
|
220
220
|
end
|
221
221
|
end
|
222
222
|
|
data/lib/coyodlee/uri_builder.rb
CHANGED
@@ -2,8 +2,8 @@ module Coyodlee
|
|
2
2
|
class UriBuilder
|
3
3
|
attr_reader :host
|
4
4
|
|
5
|
-
def initialize(host:,
|
6
|
-
@
|
5
|
+
def initialize(host:, cobrand_name: 'restserver', version: 'v1')
|
6
|
+
@cobrand_name = cobrand_name
|
7
7
|
@version = version
|
8
8
|
@host = host
|
9
9
|
@path_prefix = 'ysl'
|
@@ -16,7 +16,7 @@ module Coyodlee
|
|
16
16
|
else
|
17
17
|
resource_path
|
18
18
|
end
|
19
|
-
path = [@path_prefix, @
|
19
|
+
path = [@path_prefix, @cobrand_name, @version, revised_resource_path]
|
20
20
|
.compact
|
21
21
|
.join('/')
|
22
22
|
.prepend('/')
|
data/lib/coyodlee/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coyodlee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Dyba
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yajl-ruby
|