snaptrade 2.0.208 → 2.0.209

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: 83af16039e5748703d8edd54474c16fd8c00d92ca39dca3bba65a790b33206ef
4
- data.tar.gz: c5d5d0771abe811037a9efca492f1b0dd52f96a2deb7f0f88df23f625ee7c1cb
3
+ metadata.gz: a009156ebfbccb7558cd45becce68abd7b63622314e147a8f3d9c225425a3757
4
+ data.tar.gz: 0cbcf215d6d402960bd396bbed3b3a89ed0cef04d949d30da7b717744810f221
5
5
  SHA512:
6
- metadata.gz: 53e086c70e982c8cf6f87c11af20beb3d1d5c7f191ead27a3c18a8752e70248331c348b5157def566afdd10d864437d647066a511dc140beed84873ba22d7e5d
7
- data.tar.gz: 7f768a15737b19491c1e1ea59aedf4517825aae3ebd7e73e3f72c266bec4fc859571014c88473149d8ffef88cabbadaed29922590f00782504b3f133adf51f7f
6
+ metadata.gz: 737e2816f20b8660f392371a380bd035ae7d29f3b12d6a08860602e55079399eae07ec46b434b2080f24f35cea9b6fc644c86fe875b19e9cf8631051496a2009
7
+ data.tar.gz: 312ae2fb08e645ad3c082b1d5e82000eac30cac4fafcbca5a8a86b1fd688f4c84460db41182455bb6e2da34f3accf75dc12458c2734978966501d81653f056fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.208)
4
+ snaptrade (2.0.209)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
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.208-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.208)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.209-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.209)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -94,7 +94,7 @@ Connect brokerage accounts to your app for live positions and trading
94
94
  Add to Gemfile:
95
95
 
96
96
  ```ruby
97
- gem 'snaptrade', '~> 2.0.208'
97
+ gem 'snaptrade', '~> 2.0.209'
98
98
  ```
99
99
 
100
100
  ## Getting Started<a id="getting-started"></a>
@@ -16,7 +16,7 @@ module SnapTrade
16
16
  class ApiClientCustom
17
17
  def self.request_hook(request, configuration)
18
18
  request.params[:timestamp] = Time.now.to_i
19
- path = request.path[request.path.index('/api/v1/')..-1]
19
+ path = URI.parse(request.path).path
20
20
  query = Faraday::Utils.build_query(request.params)
21
21
  sig_object = {
22
22
  "content" => request.body.nil? || request.body.empty? ? nil : Hash[JSON.parse(request.body).sort],
@@ -146,7 +146,7 @@ module SnapTrade
146
146
  def initialize
147
147
  @scheme = 'https'
148
148
  @host = 'api.snaptrade.com'
149
- @base_path = '/api/v1'
149
+ @base_path = ''
150
150
  @server_index = 0
151
151
  @server_operation_index = {}
152
152
  @server_variables = {}
@@ -260,7 +260,7 @@ module SnapTrade
260
260
  def server_settings
261
261
  [
262
262
  {
263
- url: "https://api.snaptrade.com/api/v1",
263
+ url: "https://api.snaptrade.com",
264
264
  description: "SnapTrade Production API",
265
265
  }
266
266
  ]
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.208'
11
+ VERSION = '2.0.209'
12
12
  end
@@ -15,7 +15,7 @@ describe SnapTrade::Configuration do
15
15
  before(:each) do
16
16
  # uncomment below to setup host and base_path
17
17
  # require 'URI'
18
- # uri = URI.parse("https://api.snaptrade.com/api/v1")
18
+ # uri = URI.parse("https://api.snaptrade.com")
19
19
  # SnapTrade.configure do |c|
20
20
  # c.host = uri.host
21
21
  # c.base_path = uri.path
@@ -25,14 +25,14 @@ describe SnapTrade::Configuration do
25
25
  describe '#base_url' do
26
26
  it 'should have the default value' do
27
27
  # uncomment below to test default value of the base path
28
- # expect(config.base_url).to eq("https://api.snaptrade.com/api/v1")
28
+ # expect(config.base_url).to eq("https://api.snaptrade.com")
29
29
  end
30
30
 
31
31
  it 'should remove trailing slashes' do
32
32
  [nil, '', '/', '//'].each do |base_path|
33
33
  config.base_path = base_path
34
34
  # uncomment below to test trailing slashes
35
- # expect(config.base_url).to eq("https://api.snaptrade.com/api/v1")
35
+ # expect(config.base_url).to eq("https://api.snaptrade.com")
36
36
  end
37
37
  end
38
38
  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.208
4
+ version: 2.0.209
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-12 00:00:00.000000000 Z
11
+ date: 2026-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday