quovo 1.0.3 → 1.0.4

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: 398cce62ff51e5d66813740023fe251d1c5facdc
4
- data.tar.gz: e129102cd9c3df882b2a586716a0ad8ecb559514
3
+ metadata.gz: 05b9a24b4183e4fe22c85e547e1aac50521aa6b9
4
+ data.tar.gz: 670c9a0628d8e4fe8b00ee7f2df6c8e541f5110c
5
5
  SHA512:
6
- metadata.gz: 839329cd6df5ed129db2c97afb94b8771155a45bf11a993117d4181cab20c09f5697bb8135770db629f0a926e5a6c7a2b683fc3273848068bb4227a2f0c8dbba
7
- data.tar.gz: 000b8cab076fd0ae5b988471b2246868845eaf3520f8aff402eec8177464fbc6190be876613dc74641377802c90de763ad9654613e179b9a63274b1de2cc3388
6
+ metadata.gz: c09b69804689789b76378da23df02c4af570e725fc3dfcfdd93e75d0bec28a6e90ce1421d49413695745a0c739ec616c0b46f973f81c2dca85ac7fdad54e1b8d
7
+ data.tar.gz: 865f6e351f80eadcd77d514d5b43677a134ad86ca1bf54170dde3ef646eb4e3f80c98a0d20dd60e8cb8b13cf1b58a7f91e8e2f5c6ff3da7ec72886889ac6798a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v1.0.4
2
+ [FEATURE] Allow count param for history api.
3
+ [FIX] Fix caching expiration date for token
4
+
1
5
  ### v1.0.3
2
6
  [FIX] Pass params to url for api GET requests.
3
7
 
@@ -7,7 +7,7 @@ module Quovo
7
7
 
8
8
  def for_user(id, params = {})
9
9
  id.require!(as: :id)
10
- params.permit!(:start_date, :end_date, :start_id, :end_id)
10
+ params.permit!(:start_date, :end_date, :start_id, :end_id, :count)
11
11
  api(:get, "/users/#{id}/history", params)
12
12
  .fetch('history')
13
13
  .cast(Transaction)
@@ -16,7 +16,7 @@ module Quovo
16
16
 
17
17
  def for_account(id, params = {})
18
18
  id.require!(as: :id)
19
- params.permit!(:start_date, :end_date, :start_id, :end_id)
19
+ params.permit!(:start_date, :end_date, :start_id, :end_id, :count)
20
20
  api(:get, "/accounts/#{id}/history", params)
21
21
  .fetch('history')
22
22
  .cast(Transaction)
@@ -25,7 +25,7 @@ module Quovo
25
25
 
26
26
  def for_portfolio(id, params = {})
27
27
  id.require!(as: :id)
28
- params.permit!(:start_date, :end_date, :start_id, :end_id)
28
+ params.permit!(:start_date, :end_date, :start_id, :end_id, :count)
29
29
  api(:get, "/portfolios/#{id}/history", params)
30
30
  .fetch('history')
31
31
  .cast(Transaction)
data/lib/quovo/token.rb CHANGED
@@ -64,7 +64,7 @@ module Quovo
64
64
  def write_cache(token, expires)
65
65
  storage.write(STORAGE_KEY, [token, expires.utc.iso8601].join(SPLITTER))
66
66
  @token = token
67
- @date = expires
67
+ @expires = expires
68
68
  end
69
69
  end
70
70
  end
data/lib/quovo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Quovo
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quovo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Gorkunov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-07 00:00:00.000000000 Z
12
+ date: 2016-07-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Quovo RESTful API client, configurable, thread-safe and well-tested
15
15
  email: