snaptrade 1.17.0 → 1.17.1

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: 0d361d25457738bb75aec4e104636296b5687eae562d1745d56fe2d75a69f1f0
4
- data.tar.gz: b19760a33f2d4a06b6a576181e9f588ee545a411784676ef011c3dd8bb826092
3
+ metadata.gz: 11e9f2aea1f755578213104aa1cc126b653d6292c05c7e3e6288bebcfc8da73b
4
+ data.tar.gz: b0940810de615ff56c4ef53edb152743c36b48d7a9e1a6ba9f7d2d242322a80c
5
5
  SHA512:
6
- metadata.gz: 97e66f8f1a80c7bea1303b5501a2e933452b023cee32bb4c93ec34fd3186bfcc70110f02e238405cd8750ee684ce1b4d60eab1a5d9e8eb3884cec9260f7299d1
7
- data.tar.gz: bfbd78b247ee5465892d6256677a4f2ce0b1a067dc524f5354f29ee9a58d88705c755d6fd61c9e1280dc842810dc64230e6245763e41189890302bc79e9ecd62
6
+ metadata.gz: 88953372bdf7e1b38de4a9e3bfdffe2b3cebdd3967afc8f60292fc5ab451ab79429c16dbbbbdae0eb378acded553ffb3551149fa078416ed1cc128bb9a0dd1d8
7
+ data.tar.gz: ea4851e753695c173cbb9a9779334d3137b38c676388358d82015961c4d7d2852c7debf02cf33f24c1b801b0c8e9230c7742c780c2e2c9785bb3652b96040cbe
data/Gemfile.lock CHANGED
@@ -24,25 +24,32 @@ GEM
24
24
  multipart-post (~> 2)
25
25
  faraday-net_http (3.0.2)
26
26
  io-console (0.6.0)
27
- irb (1.6.4)
28
- reline (>= 0.3.0)
27
+ irb (1.8.1)
28
+ rdoc
29
+ reline (>= 0.3.8)
29
30
  method_source (1.0.0)
30
31
  multipart-post (2.3.0)
31
32
  parallel (1.23.0)
32
- parser (3.2.2.1)
33
+ parser (3.2.2.3)
33
34
  ast (~> 2.4.1)
35
+ racc
34
36
  pry (0.14.2)
35
37
  coderay (~> 1.1)
36
38
  method_source (~> 1.0)
37
39
  pry-byebug (3.10.1)
38
40
  byebug (~> 11.0)
39
41
  pry (>= 0.13, < 0.15)
42
+ psych (5.1.0)
43
+ stringio
44
+ racc (1.7.1)
40
45
  rainbow (3.1.1)
41
46
  rake (13.0.6)
42
- regexp_parser (2.8.0)
43
- reline (0.3.4)
47
+ rdoc (6.5.0)
48
+ psych (>= 4.0.0)
49
+ regexp_parser (2.8.1)
50
+ reline (0.3.8)
44
51
  io-console (~> 0.5)
45
- rexml (3.2.5)
52
+ rexml (3.2.6)
46
53
  rspec (3.12.0)
47
54
  rspec-core (~> 3.12.0)
48
55
  rspec-expectations (~> 3.12.0)
@@ -52,10 +59,10 @@ GEM
52
59
  rspec-expectations (3.12.3)
53
60
  diff-lcs (>= 1.2.0, < 2.0)
54
61
  rspec-support (~> 3.12.0)
55
- rspec-mocks (3.12.5)
62
+ rspec-mocks (3.12.6)
56
63
  diff-lcs (>= 1.2.0, < 2.0)
57
64
  rspec-support (~> 3.12.0)
58
- rspec-support (3.12.0)
65
+ rspec-support (3.12.1)
59
66
  rubocop (1.12.1)
60
67
  parallel (~> 1.10)
61
68
  parser (>= 3.0.0.0)
@@ -65,14 +72,15 @@ GEM
65
72
  rubocop-ast (>= 1.2.0, < 2.0)
66
73
  ruby-progressbar (~> 1.7)
67
74
  unicode-display_width (>= 1.4.0, < 3.0)
68
- rubocop-ast (1.28.1)
75
+ rubocop-ast (1.29.0)
69
76
  parser (>= 3.2.1.0)
70
77
  ruby-progressbar (1.13.0)
71
78
  ruby2_keywords (0.0.5)
79
+ stringio (3.0.8)
72
80
  unicode-display_width (2.4.2)
73
81
 
74
82
  PLATFORMS
75
- arm64-darwin-21
83
+ arm64-darwin-22
76
84
 
77
85
  DEPENDENCIES
78
86
  debug (~> 1.8)
@@ -83,4 +91,4 @@ DEPENDENCIES
83
91
  snaptrade!
84
92
 
85
93
  BUNDLED WITH
86
- 2.3.7
94
+ 2.4.19
data/README.md CHANGED
@@ -9,7 +9,7 @@ For more information, please visit [https://snaptrade.com/](https://snaptrade.co
9
9
  Add to Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'snaptrade', '~> 1.17.0'
12
+ gem 'snaptrade', '~> 1.17.1'
13
13
  ```
14
14
 
15
15
  ## Getting Started
@@ -13,7 +13,7 @@
13
13
  require 'snaptrade'
14
14
 
15
15
  instance = SnapTrade::MonthlyDividends.new(
16
- date: Sun Jan 23 16:00:00 PST 2022,
16
+ date: Mon Jan 24 00:00:00 UTC 2022,
17
17
  dividends: null
18
18
  )
19
19
  ```
@@ -14,7 +14,7 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::NetContributions.new(
17
- date: Sun Jan 23 16:00:00 PST 2022,
17
+ date: Mon Jan 24 00:00:00 UTC 2022,
18
18
  contributions: 524.74,
19
19
  currency: CAD
20
20
  )
data/docs/PastValue.md CHANGED
@@ -14,7 +14,7 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::PastValue.new(
17
- date: Sun Jan 23 16:00:00 PST 2022,
17
+ date: Mon Jan 24 00:00:00 UTC 2022,
18
18
  value: 52.74,
19
19
  currency: CAD
20
20
  )
@@ -14,8 +14,8 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::SubPeriodReturnRate.new(
17
- period_start: Sun Jan 23 16:00:00 PST 2022,
18
- period_end: Sun Jan 23 16:00:00 PST 2022,
17
+ period_start: Mon Jan 24 00:00:00 UTC 2022,
18
+ period_end: Mon Jan 24 00:00:00 UTC 2022,
19
19
  rate_of_return: 0.012312367452
20
20
  )
21
21
  ```
@@ -14,7 +14,7 @@ require 'snaptrade'
14
14
 
15
15
  instance = SnapTrade::TransactionsStatus.new(
16
16
  initial_sync_completed: null,
17
- last_successful_sync: Sun Jan 23 16:00:00 PST 2022
17
+ last_successful_sync: Mon Jan 24 00:00:00 UTC 2022
18
18
  )
19
19
  ```
20
20
 
@@ -19,7 +19,7 @@ module SnapTrade
19
19
  path = request.path[request.path.index('/api/v1/')..-1]
20
20
  query = Faraday::Utils.build_query(request.params)
21
21
  sig_object = {
22
- "content" => request.body.nil? || request.body.empty? ? nil : JSON.parse(request.body),
22
+ "content" => request.body.nil? || request.body.empty? ? nil : Hash[JSON.parse(request.body).sort],
23
23
  "path" => path,
24
24
  "query" => query
25
25
  }
@@ -9,5 +9,5 @@ Contact: api@snaptrade.com
9
9
  =end
10
10
 
11
11
  module SnapTrade
12
- VERSION = '1.17.0'
12
+ VERSION = '1.17.1'
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-07 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -528,7 +528,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
528
528
  - !ruby/object:Gem::Version
529
529
  version: '0'
530
530
  requirements: []
531
- rubygems_version: 3.3.7
531
+ rubygems_version: 3.4.10
532
532
  signing_key:
533
533
  specification_version: 4
534
534
  summary: SnapTrade Ruby Gem