Skip to content

Commit 6ce2c45

Browse files
release: 1.32.1 (#70)
* codegen metadata * codegen metadata * fix: properly mock time in ruby ci tests * release: 1.32.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 71e5a3c commit 6ce2c45

File tree

7 files changed

+18
-8
lines changed

7 files changed

+18
-8
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-
".": "1.32.0"
2+
".": "1.32.1"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 90
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-b0b2bad50557aa0fe95d42cd97c6b45e8c45f6f257950048545faafafc851a17.yml
33
openapi_spec_hash: 4e26fcff8efa06e31f3b2bfc191a7006
4-
config_hash: 2b42d138d85c524e65fa7e205d36cc4a
4+
config_hash: 32503026a45db991d0d102f25af40a77

CHANGELOG.md

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

3+
## 1.32.1 (2026-02-26)
4+
5+
Full Changelog: [v1.32.0...v1.32.1](https://github.com/knocklabs/knock-ruby/compare/v1.32.0...v1.32.1)
6+
7+
### Bug Fixes
8+
9+
* properly mock time in ruby ci tests ([e77a038](https://github.com/knocklabs/knock-ruby/commit/e77a038cbe1d018e470c1bebe33b0c8f371c74fb))
10+
311
## 1.32.0 (2026-02-19)
412

513
Full Changelog: [v1.31.0...v1.32.0](https://github.com/knocklabs/knock-ruby/compare/v1.31.0...v1.32.0)

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-
knockapi (1.32.0)
14+
knockapi (1.32.1)
1515
cgi
1616
connection_pool
1717

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 "knockapi", "~> 1.32.0"
20+
gem "knockapi", "~> 1.32.1"
2121
```
2222

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

lib/knockapi/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Knockapi
4-
VERSION = "1.32.0"
4+
VERSION = "1.32.1"
55
end

test/knockapi/client_test.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,21 @@ def test_client_retry_after_seconds
100100
end
101101

102102
def test_client_retry_after_date
103+
time_now = Time.now
104+
103105
stub_request(:get, "http://localhost/v1/users/user_id").to_return_json(
104106
status: 500,
105-
headers: {"retry-after" => (Time.now + 10).httpdate},
107+
headers: {"retry-after" => (time_now + 10).httpdate},
106108
body: {}
107109
)
108110

109111
knock = Knockapi::Client.new(base_url: "http://localhost", api_key: "My API Key", max_retries: 1)
110112

113+
Thread.current.thread_variable_set(:time_now, time_now)
111114
assert_raises(Knockapi::Errors::InternalServerError) do
112-
Thread.current.thread_variable_set(:time_now, Time.now)
113115
knock.users.get("user_id")
114-
Thread.current.thread_variable_set(:time_now, nil)
115116
end
117+
Thread.current.thread_variable_set(:time_now, nil)
116118

117119
assert_requested(:any, /./, times: 2)
118120
assert_in_delta(10, Thread.current.thread_variable_get(:mock_sleep).last, 1.0)

0 commit comments

Comments
 (0)