snaptrade 2.0.8 → 2.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04f7cd9225084196a73d45818af2dcfd77da44e2a670188ea35c2351ee017cbc
4
- data.tar.gz: 3c09c5bb26e5b203370852fc0b6920344d2870f366b4b504f97e9accd1a3ee33
3
+ metadata.gz: 0130fc8648616d97147b5551e18bb8398f9aff59da30dfea88bc6b0ac4e47d8a
4
+ data.tar.gz: b54d55b20054ff17e6cc0ab9e0b3cdcf73c8c1ce0a2e944b87e20a79a2b6c211
5
5
  SHA512:
6
- metadata.gz: 3925aafa36bbea3f8e433ab4cf684ef385c8e235c482e85515972c6cfb6fd1fb95c076ebf3f9e069f5e0c7a0a81bbd41e3c28e5de628063ef25fb15863ea7454
7
- data.tar.gz: 6b68b1f02c7f48723110cb5d005b2d2ed0fcb653dbd2325cb86c2c56c24106dc3bb5d098e401b6891803bc0ed644e3a74e356b3444b15f52bca8e54ae2c500cd
6
+ metadata.gz: 9ab9d690927682bf09ba21c79c4bcde054e997e37127c92b7d49e756b0cb618099802fc1f1b9735b8869353f8497be0f2ff292cb7f424304eb4a692b2647bae5
7
+ data.tar.gz: 5c07cce9b0b3f463d2290693d8d8d836ca782400c8d126713f2ef5794e84ba630ec2a394d04656d1815068713068fc1b3daaf2dad683cbcfe476a01a5d5e47ae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.7)
4
+ snaptrade (2.0.10)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -9,42 +9,40 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.2)
12
- base64 (0.1.1)
13
12
  byebug (11.1.3)
14
13
  coderay (1.1.3)
15
14
  debug (1.8.0)
16
15
  irb (>= 1.5.0)
17
16
  reline (>= 0.3.1)
18
17
  diff-lcs (1.5.0)
19
- faraday (2.7.11)
20
- base64
21
- faraday-net_http (>= 2.0, < 3.1)
22
- ruby2_keywords (>= 0.0.4)
18
+ faraday (2.9.0)
19
+ faraday-net_http (>= 2.0, < 3.2)
23
20
  faraday-multipart (1.0.4)
24
21
  multipart-post (~> 2)
25
- faraday-net_http (3.0.2)
22
+ faraday-net_http (3.1.0)
23
+ net-http
26
24
  io-console (0.6.0)
27
25
  irb (1.6.4)
28
26
  reline (>= 0.3.0)
29
27
  method_source (1.0.0)
30
- multipart-post (2.3.0)
28
+ multipart-post (2.4.0)
29
+ net-http (0.4.1)
30
+ uri
31
31
  parallel (1.23.0)
32
- parser (3.2.2.3)
32
+ parser (3.2.2.1)
33
33
  ast (~> 2.4.1)
34
- racc
35
34
  pry (0.14.2)
36
35
  coderay (~> 1.1)
37
36
  method_source (~> 1.0)
38
37
  pry-byebug (3.10.1)
39
38
  byebug (~> 11.0)
40
39
  pry (>= 0.13, < 0.15)
41
- racc (1.7.1)
42
40
  rainbow (3.1.1)
43
41
  rake (13.0.6)
44
- regexp_parser (2.8.1)
45
- reline (0.3.8)
42
+ regexp_parser (2.8.0)
43
+ reline (0.3.4)
46
44
  io-console (~> 0.5)
47
- rexml (3.2.6)
45
+ rexml (3.2.5)
48
46
  rspec (3.12.0)
49
47
  rspec-core (~> 3.12.0)
50
48
  rspec-expectations (~> 3.12.0)
@@ -54,10 +52,10 @@ GEM
54
52
  rspec-expectations (3.12.3)
55
53
  diff-lcs (>= 1.2.0, < 2.0)
56
54
  rspec-support (~> 3.12.0)
57
- rspec-mocks (3.12.6)
55
+ rspec-mocks (3.12.5)
58
56
  diff-lcs (>= 1.2.0, < 2.0)
59
57
  rspec-support (~> 3.12.0)
60
- rspec-support (3.12.1)
58
+ rspec-support (3.12.0)
61
59
  rubocop (1.12.1)
62
60
  parallel (~> 1.10)
63
61
  parser (>= 3.0.0.0)
@@ -67,14 +65,14 @@ GEM
67
65
  rubocop-ast (>= 1.2.0, < 2.0)
68
66
  ruby-progressbar (~> 1.7)
69
67
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.29.0)
68
+ rubocop-ast (1.28.1)
71
69
  parser (>= 3.2.1.0)
72
70
  ruby-progressbar (1.13.0)
73
- ruby2_keywords (0.0.5)
74
71
  unicode-display_width (2.4.2)
72
+ uri (0.13.0)
75
73
 
76
74
  PLATFORMS
77
- arm64-darwin-22
75
+ arm64-darwin-21
78
76
 
79
77
  DEPENDENCIES
80
78
  debug (~> 1.8)
@@ -86,4 +84,4 @@ DEPENDENCIES
86
84
  snaptrade!
87
85
 
88
86
  BUNDLED WITH
89
- 2.4.19
87
+ 2.3.7
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v2.0.8-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.8)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.10-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.10)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -71,7 +71,7 @@ Connect brokerage accounts to your app for live positions and trading
71
71
  Add to Gemfile:
72
72
 
73
73
  ```ruby
74
- gem 'snaptrade', '~> 2.0.8'
74
+ gem 'snaptrade', '~> 2.0.10'
75
75
  ```
76
76
 
77
77
  ## Getting Started<a id="getting-started"></a>
@@ -79,8 +79,10 @@ gem 'snaptrade', '~> 2.0.8'
79
79
  ```ruby
80
80
  require 'snaptrade'
81
81
 
82
- SnapTrade.client_id = "YOUR_CLIENT_ID"
83
- SnapTrade.consumer_key = "YOUR_CONSUMER_KEY"
82
+ configuration = SnapTrade::Configuration.new
83
+ configuration.client_id = ENV["SNAPTRADE_CLIENT_ID"]
84
+ configuration.consumer_key = ENV["SNAPTRADE_CONSUMER_KEY"]
85
+ snaptrade = SnapTrade::Client.new(configuration)
84
86
  result = snaptrade.account_information.get_all_user_holdings(
85
87
  user_id: "John.doe@snaptrade.com",
86
88
  user_secret: "USERSECRET123",
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.8'
11
+ VERSION = '2.0.10'
12
12
  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: 2.0.8
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-05 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -392,7 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
392
392
  - !ruby/object:Gem::Version
393
393
  version: '0'
394
394
  requirements: []
395
- rubygems_version: 3.4.10
395
+ rubygems_version: 3.3.7
396
396
  signing_key:
397
397
  specification_version: 4
398
398
  summary: SnapTrade Ruby Gem