increase 1.112.0 → 1.113.0

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: ab47a83661eaa0b20115313010e718057acdd46c4278298dad624c55078d22e4
4
- data.tar.gz: c7ab0d7e91fff5a7235af31cc33dd8540da71378a9b24353b65d6b7765cca9ef
3
+ metadata.gz: 731993c0b5b6755c6b2c7bb78148d2bef80e89d39410041bca084475d134fd6d
4
+ data.tar.gz: b4a00caf232b77479598c82d1ade0d9a585a8b24e19497473967daabc80b8e0d
5
5
  SHA512:
6
- metadata.gz: 6500c9a6fb771270a953badef8aa6cc21cf93e1cc9a56cb37eb66bdd067a9af94bafe1535c2b24a8dc670753365242bd9ca1f08b72d6a000e77b623a577f3bc4
7
- data.tar.gz: 60552038c05b4f957a830d9dd8474cc5ddb76d1960986fbd48ca8207f6cca6a721e0f49ac3bc1bebdfa354a31e8ddbe5708c171dd8cd20dd30b0633ff85f9ebe
6
+ metadata.gz: 7a13ce32b059b969d27e515bf4e06fd978aaf4fc40d68b810d8282525e96d0e0324b4e8cd59da9cd7dfce7166216937bcc657b05e8f0a51051497b0c1823a758
7
+ data.tar.gz: 8136762ea8bfbaf41dd1c8e32a07dc804245a70abeee12f7a9262f3dfc76d61c561c514285453c681d4be7b2eb245e9b81e6cbc9dde7b20d8a20267a2ed06059
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.113.0 (2025-10-23)
4
+
5
+ Full Changelog: [v1.112.0...v1.113.0](https://github.com/Increase/increase-ruby/compare/v1.112.0...v1.113.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f6e1c26](https://github.com/Increase/increase-ruby/commit/f6e1c262384c439eeeb7d9914b51d51e6aa5b89b))
10
+ * handle thread interrupts in the core HTTP client ([cbddb16](https://github.com/Increase/increase-ruby/commit/cbddb162a4273e627d3df4acde3a9eeac3652715))
11
+
3
12
  ## 1.112.0 (2025-10-22)
4
13
 
5
14
  Full Changelog: [v1.111.0...v1.112.0](https://github.com/Increase/increase-ruby/compare/v1.111.0...v1.112.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.112.0"
18
+ gem "increase", "~> 1.113.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -128,40 +128,48 @@ module Increase
128
128
  url, deadline = request.fetch_values(:url, :deadline)
129
129
 
130
130
  req = nil
131
- eof = false
132
131
  finished = false
133
- closing = nil
134
132
 
135
133
  # rubocop:disable Metrics/BlockLength
136
134
  enum = Enumerator.new do |y|
137
135
  next if finished
138
136
 
139
137
  with_pool(url, deadline: deadline) do |conn|
140
- req, closing = self.class.build_request(request) do
141
- self.class.calibrate_socket_timeout(conn, deadline)
142
- end
143
-
144
- self.class.calibrate_socket_timeout(conn, deadline)
145
- unless conn.started?
146
- conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT
147
- conn.start
148
- end
138
+ eof = false
139
+ closing = nil
140
+ ::Thread.handle_interrupt(Object => :never) do
141
+ ::Thread.handle_interrupt(Object => :immediate) do
142
+ req, closing = self.class.build_request(request) do
143
+ self.class.calibrate_socket_timeout(conn, deadline)
144
+ end
149
145
 
150
- self.class.calibrate_socket_timeout(conn, deadline)
151
- conn.request(req) do |rsp|
152
- y << [req, rsp]
153
- break if finished
154
-
155
- rsp.read_body do |bytes|
156
- y << bytes.force_encoding(Encoding::BINARY)
157
- break if finished
146
+ self.class.calibrate_socket_timeout(conn, deadline)
147
+ unless conn.started?
148
+ conn.keep_alive_timeout = self.class::KEEP_ALIVE_TIMEOUT
149
+ conn.start
150
+ end
158
151
 
159
152
  self.class.calibrate_socket_timeout(conn, deadline)
153
+ conn.request(req) do |rsp|
154
+ y << [req, rsp]
155
+ break if finished
156
+
157
+ rsp.read_body do |bytes|
158
+ y << bytes.force_encoding(Encoding::BINARY)
159
+ break if finished
160
+
161
+ self.class.calibrate_socket_timeout(conn, deadline)
162
+ end
163
+ eof = true
164
+ end
165
+ end
166
+ ensure
167
+ begin
168
+ conn.finish if !eof && conn&.started?
169
+ ensure
170
+ closing&.call
160
171
  end
161
- eof = true
162
172
  end
163
- ensure
164
- conn.finish if !eof && conn&.started?
165
173
  end
166
174
  rescue Timeout::Error
167
175
  raise Increase::Errors::APITimeoutError.new(url: url, request: req)
@@ -174,8 +182,6 @@ module Increase
174
182
  body = Increase::Internal::Util.fused_enum(enum, external: true) do
175
183
  finished = true
176
184
  loop { enum.next }
177
- ensure
178
- closing&.call
179
185
  end
180
186
  [Integer(response.code), response, body]
181
187
  end
@@ -256,7 +256,7 @@ module Increase
256
256
  # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount.
257
257
  FULL = :full
258
258
 
259
- # No balance check will performed; a zero-dollar Pending Transaction will be created.
259
+ # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created.
260
260
  NONE = :none
261
261
 
262
262
  # @!method self.values
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.112.0"
4
+ VERSION = "1.113.0"
5
5
  end
@@ -375,7 +375,7 @@ module Increase
375
375
  # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount.
376
376
  FULL = T.let(:full, Increase::CheckTransfer::BalanceCheck::TaggedSymbol)
377
377
 
378
- # No balance check will performed; a zero-dollar Pending Transaction will be created.
378
+ # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created.
379
379
  NONE = T.let(:none, Increase::CheckTransfer::BalanceCheck::TaggedSymbol)
380
380
 
381
381
  sig do
@@ -151,7 +151,7 @@ module Increase
151
151
  # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount.
152
152
  FULL: :full
153
153
 
154
- # No balance check will performed; a zero-dollar Pending Transaction will be created.
154
+ # No balance check will performed when the check transfer is initiated. A zero-dollar Pending Transaction will be created. The balance will still be checked when the Inbound Check Deposit is created.
155
155
  NONE: :none
156
156
 
157
157
  def self?.values: -> ::Array[Increase::Models::CheckTransfer::balance_check]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.112.0
4
+ version: 1.113.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-22 00:00:00.000000000 Z
11
+ date: 2025-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool