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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd36bfbc92332a3061593e8f97ff36ae8e500e6cff0a0408645944f5deb66444
4
- data.tar.gz: 0c89b4b5f778bcad7bf9bd718ffbcc76a89a83254e79416461c35c3c0a13253f
3
+ metadata.gz: 32da7271636e926fc318b2d7ead7b114a394b09e6b82d16def501405a4001309
4
+ data.tar.gz: ab272c6b024445316a743e824dbab644f7e763b6f614a497e3cec0406e3ca89b
5
5
  SHA512:
6
- metadata.gz: '02364475824bf945d1dbbd627b5c12eaa0595995df949373ec022c7d8721d5f386238f235ce85087bba80770a587120f83c9b17f50e3c0966da875f3d9282044'
7
- data.tar.gz: c3483ffd64ee816641ca8ae38433488672d2dccd5006020b70d09d927e2f40a82be9b91d79c5b5e435bac7fa5e3b54354d3bb02d647ad257bc34c00fdd753fda
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
@@ -7,6 +7,7 @@ require 'pry'
7
7
 
8
8
  Coyodlee.setup do |config|
9
9
  config.host = 'developer.api.yodlee.com'
10
+ config.cobrand_name = 'restserver'
10
11
  config.cobrand_login = ENV['YODLEE_COBRAND_LOGIN']
11
12
  config.cobrand_password = ENV['YODLEE_COBRAND_PASSWORD']
12
13
  end
@@ -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
 
@@ -2,8 +2,8 @@ module Coyodlee
2
2
  class UriBuilder
3
3
  attr_reader :host
4
4
 
5
- def initialize(host:, cobrand: 'restserver', version: 'v1')
6
- @cobrand = cobrand
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, @cobrand, @version, revised_resource_path]
19
+ path = [@path_prefix, @cobrand_name, @version, revised_resource_path]
20
20
  .compact
21
21
  .join('/')
22
22
  .prepend('/')
@@ -1,3 +1,3 @@
1
1
  module Coyodlee
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.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-09 00:00:00.000000000 Z
11
+ date: 2018-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby