Skip to content

Commit c92c41e

Browse files
release: 0.1.0-alpha.35 (#168)
* feat(api): api update * fix: better thread safety via early initializing SSL store during HTTP client creation * feat(api): api update * release: 0.1.0-alpha.35 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 72439e6 commit c92c41e

19 files changed

+186
-110
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.34"
2+
".": "0.1.0-alpha.35"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-b817e7a30a6366c063a8c9a334d5be281eb8d93e21acc8c8219d3bdc95043deb.yml
3-
openapi_spec_hash: d4cc4a5cba9f13986e38d148d330aa00
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-970ab04a97244c68824c0c52e06925cba14fb7dbfc36c03167c1afe74cd1b150.yml
3+
openapi_spec_hash: 315e7859c3f77311261fb824b74a8247
44
config_hash: f2846563903bf75ab0858872154df0f7

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 0.1.0-alpha.35 (2025-11-09)
4+
5+
Full Changelog: [v0.1.0-alpha.34...v0.1.0-alpha.35](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.34...v0.1.0-alpha.35)
6+
7+
### Features
8+
9+
* **api:** api update ([9ef0063](https://github.com/Finch-API/finch-api-ruby/commit/9ef0063aae5d7d717450833073f81fc6f9834566))
10+
* **api:** api update ([edeff3b](https://github.com/Finch-API/finch-api-ruby/commit/edeff3bdb90eb9cecbc26b3a6c0c569e594425dd))
11+
12+
13+
### Bug Fixes
14+
15+
* better thread safety via early initializing SSL store during HTTP client creation ([ed1ac81](https://github.com/Finch-API/finch-api-ruby/commit/ed1ac81b9f90890405a00c49b23239dbd1d088dd))
16+
317
## 0.1.0-alpha.34 (2025-11-04)
418

519
Full Changelog: [v0.1.0-alpha.33...v0.1.0-alpha.34](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.33...v0.1.0-alpha.34)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
finch-api (0.1.0.pre.alpha.34)
14+
finch-api (0.1.0.pre.alpha.35)
1515
connection_pool
1616

1717
GEM

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
1717
<!-- x-release-please-start-version -->
1818

1919
```ruby
20-
gem "finch-api", "~> 0.1.0.pre.alpha.34"
20+
gem "finch-api", "~> 0.1.0.pre.alpha.35"
2121
```
2222

2323
<!-- x-release-please-end -->

lib/finch_api.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
require "etc"
1010
require "json"
1111
require "net/http"
12+
require "openssl"
1213
require "pathname"
1314
require "rbconfig"
1415
require "securerandom"

lib/finch_api/internal/transport/pooled_net_requester.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ class PooledNetRequester
1616
class << self
1717
# @api private
1818
#
19+
# @param cert_store [OpenSSL::X509::Store]
1920
# @param url [URI::Generic]
2021
#
2122
# @return [Net::HTTP]
22-
def connect(url)
23+
def connect(cert_store:, url:)
2324
port =
2425
case [url.port, url.scheme]
2526
in [Integer, _]
@@ -33,6 +34,8 @@ def connect(url)
3334
Net::HTTP.new(url.host, port).tap do
3435
_1.use_ssl = %w[https wss].include?(url.scheme)
3536
_1.max_retries = 0
37+
38+
(_1.cert_store = cert_store) if _1.use_ssl?
3639
end
3740
end
3841

@@ -102,7 +105,7 @@ def build_request(request, &blk)
102105
pool =
103106
@mutex.synchronize do
104107
@pools[origin] ||= ConnectionPool.new(size: @size) do
105-
self.class.connect(url)
108+
self.class.connect(cert_store: @cert_store, url: url)
106109
end
107110
end
108111

@@ -192,6 +195,7 @@ def execute(request)
192195
def initialize(size: self.class::DEFAULT_MAX_CONNECTIONS)
193196
@mutex = Mutex.new
194197
@size = size
198+
@cert_store = OpenSSL::X509::Store.new.tap(&:set_default_paths)
195199
@pools = {}
196200
end
197201

lib/finch_api/models/hris/benefits/individual_benefit.rb

Lines changed: 68 additions & 26 deletions
Large diffs are not rendered by default.

lib/finch_api/models/introspection.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -346,20 +346,12 @@ class Entity < FinchAPI::Internal::Type::BaseModel
346346
# @return [String, nil]
347347
required :source_id, String, nil?: true
348348

349-
# @!attribute type
350-
# The type of entity
351-
#
352-
# @return [String, nil]
353-
required :type, String, nil?: true
354-
355-
# @!method initialize(id:, name:, source_id:, type:)
349+
# @!method initialize(id:, name:, source_id:)
356350
# @param id [String] The connection account ID for this entity
357351
#
358352
# @param name [String, nil] The name of the entity (payroll provider company name)
359353
#
360354
# @param source_id [String, nil] The source ID of the entity
361-
#
362-
# @param type [String, nil] The type of entity
363355
end
364356
end
365357
end

lib/finch_api/models/request_forwarding_forward_response.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,8 @@ class Request < FinchAPI::Internal::Type::BaseModel
7373
# @!attribute headers
7474
# The HTTP headers that were specified for the forwarded request.
7575
#
76-
# @return [Hash{Symbol=>Object, nil}, nil]
77-
optional :headers,
78-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true],
79-
nil?: true
76+
# @return [Hash{Symbol=>String}, nil]
77+
optional :headers, FinchAPI::Internal::Type::HashOf[String], nil?: true
8078

8179
# @!attribute params
8280
# The query parameters that were specified for the forwarded request.
@@ -99,7 +97,7 @@ class Request < FinchAPI::Internal::Type::BaseModel
9997
#
10098
# @param data [String, Hash{Symbol=>Object, nil}, nil] The body that was specified for the forwarded request.
10199
#
102-
# @param headers [Hash{Symbol=>Object, nil}, nil] The HTTP headers that were specified for the forwarded request.
100+
# @param headers [Hash{Symbol=>String}, nil] The HTTP headers that were specified for the forwarded request.
103101
#
104102
# @param params [Hash{Symbol=>Object, nil}, nil] The query parameters that were specified for the forwarded request.
105103

0 commit comments

Comments
 (0)