increase 1.96.0 → 1.97.1

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: 5d7c93b95c241278e985c95451c6bdc77b0ae320ca07901741fc414258dd1813
4
- data.tar.gz: 12282e3ad63ca1318714353ab4e477de3197f3b40ad0636aa4626692d2b2b480
3
+ metadata.gz: b4164ac348b03339e237cc464a24153096f59c32f2c0c5eff8f5431af2a00b4d
4
+ data.tar.gz: 21285af08b0d08014976b024f8ecb0e4208b7d6cb4a5e8c04b70a22ea6fac667
5
5
  SHA512:
6
- metadata.gz: 5af934f753635227d9935d70b829d730229cab9fd63da16e213fbefb7ded297b77d34a736f5543b04f830d0a670a7babdcce43e93af8bbcfe5ffbdf2941b3d40
7
- data.tar.gz: 141e2b041e8a3fcf4df2d57e8272488eead2dfc4048c5707a18f38dac2fd1312e6c26ff31326837a9b675290493db458fad4aab12d5f09b6226a573c5a7dfbcb
6
+ metadata.gz: '032691321b86574e6eb08138146cf3ecb0a50f133bdb10a34972aa63c06530119bf4af7b8a4b6fae2d3623019e44d9ed392a8e55fcc34d64073c895098f1015a'
7
+ data.tar.gz: 7a04cfe2a9c4e2e42f9b22933c42fafafb7c36e78dc3a640298e4bbc5b0a07d91aa1f74b962a3d9758f52b5bae434ed14ea3613aeffc73e6e41d72b69cca3edf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.97.1 (2025-09-30)
4
+
5
+ Full Changelog: [v1.97.0...v1.97.1](https://github.com/Increase/increase-ruby/compare/v1.97.0...v1.97.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * coroutine leaks from connection pool ([78dc815](https://github.com/Increase/increase-ruby/commit/78dc8152fc1d9ca7f849cf0d9cce6c49e5d80f96))
10
+
11
+ ## 1.97.0 (2025-09-29)
12
+
13
+ Full Changelog: [v1.96.0...v1.97.0](https://github.com/Increase/increase-ruby/compare/v1.96.0...v1.97.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([f06a2da](https://github.com/Increase/increase-ruby/commit/f06a2da6b5ff662026549228b579a75001825fa1))
18
+
3
19
  ## 1.96.0 (2025-09-29)
4
20
 
5
21
  Full Changelog: [v1.95.1...v1.96.0](https://github.com/Increase/increase-ruby/compare/v1.95.1...v1.96.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.96.0"
18
+ gem "increase", "~> 1.97.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -134,9 +134,9 @@ module Increase
134
134
 
135
135
  # rubocop:disable Metrics/BlockLength
136
136
  enum = Enumerator.new do |y|
137
- with_pool(url, deadline: deadline) do |conn|
138
- next if finished
137
+ next if finished
139
138
 
139
+ with_pool(url, deadline: deadline) do |conn|
140
140
  req, closing = self.class.build_request(request) do
141
141
  self.class.calibrate_socket_timeout(conn, deadline)
142
142
  end
@@ -149,7 +149,7 @@ module Increase
149
149
 
150
150
  self.class.calibrate_socket_timeout(conn, deadline)
151
151
  conn.request(req) do |rsp|
152
- y << [conn, req, rsp]
152
+ y << [req, rsp]
153
153
  break if finished
154
154
 
155
155
  rsp.read_body do |bytes|
@@ -160,6 +160,8 @@ module Increase
160
160
  end
161
161
  eof = true
162
162
  end
163
+ ensure
164
+ conn.finish if !eof && conn&.started?
163
165
  end
164
166
  rescue Timeout::Error
165
167
  raise Increase::Errors::APITimeoutError.new(url: url, request: req)
@@ -168,16 +170,11 @@ module Increase
168
170
  end
169
171
  # rubocop:enable Metrics/BlockLength
170
172
 
171
- conn, _, response = enum.next
173
+ _, response = enum.next
172
174
  body = Increase::Internal::Util.fused_enum(enum, external: true) do
173
175
  finished = true
174
- tap do
175
- enum.next
176
- rescue StopIteration
177
- nil
178
- end
176
+ loop { enum.next }
179
177
  ensure
180
- conn.finish if !eof && conn&.started?
181
178
  closing&.call
182
179
  end
183
180
  [Integer(response.code), response, body]
@@ -14,7 +14,7 @@ module Increase
14
14
  required :name, String
15
15
 
16
16
  # @!attribute account_id
17
- # The entity, if `compliance_category` is `commingled_cash`.
17
+ # The account, if `compliance_category` is `commingled_cash`.
18
18
  #
19
19
  # @return [String, nil]
20
20
  optional :account_id, String
@@ -34,7 +34,7 @@ module Increase
34
34
  # @!method initialize(name:, account_id: nil, compliance_category: nil, entity_id: nil, request_options: {})
35
35
  # @param name [String] The name you choose for the account.
36
36
  #
37
- # @param account_id [String] The entity, if `compliance_category` is `commingled_cash`.
37
+ # @param account_id [String] The account, if `compliance_category` is `commingled_cash`.
38
38
  #
39
39
  # @param compliance_category [Symbol, Increase::Models::BookkeepingAccountCreateParams::ComplianceCategory] The account compliance category.
40
40
  #
@@ -9,7 +9,7 @@ module Increase
9
9
  #
10
10
  # @param name [String] The name you choose for the account.
11
11
  #
12
- # @param account_id [String] The entity, if `compliance_category` is `commingled_cash`.
12
+ # @param account_id [String] The account, if `compliance_category` is `commingled_cash`.
13
13
  #
14
14
  # @param compliance_category [Symbol, Increase::Models::BookkeepingAccountCreateParams::ComplianceCategory] The account compliance category.
15
15
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.96.0"
4
+ VERSION = "1.97.1"
5
5
  end
@@ -18,7 +18,7 @@ module Increase
18
18
  sig { returns(String) }
19
19
  attr_accessor :name
20
20
 
21
- # The entity, if `compliance_category` is `commingled_cash`.
21
+ # The account, if `compliance_category` is `commingled_cash`.
22
22
  sig { returns(T.nilable(String)) }
23
23
  attr_reader :account_id
24
24
 
@@ -63,7 +63,7 @@ module Increase
63
63
  def self.new(
64
64
  # The name you choose for the account.
65
65
  name:,
66
- # The entity, if `compliance_category` is `commingled_cash`.
66
+ # The account, if `compliance_category` is `commingled_cash`.
67
67
  account_id: nil,
68
68
  # The account compliance category.
69
69
  compliance_category: nil,
@@ -17,7 +17,7 @@ module Increase
17
17
  def create(
18
18
  # The name you choose for the account.
19
19
  name:,
20
- # The entity, if `compliance_category` is `commingled_cash`.
20
+ # The account, if `compliance_category` is `commingled_cash`.
21
21
  account_id: nil,
22
22
  # The account compliance category.
23
23
  compliance_category: nil,
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.96.0
4
+ version: 1.97.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-29 00:00:00.000000000 Z
11
+ date: 2025-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool