Skip to content

Commit 9079684

Browse files
committed
Release v4.4.0
- Update CHANGELOG.md with v4.4.0 release notes - Bump version to 4.4.0 in lib/jetstream_bridge/version.rb - Update Gemfile.lock
1 parent a5c3bab commit 9079684

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.4.0] - 2025-11-24
9+
10+
### Changed
11+
12+
- **RTT Measurement** - Enhanced NATS round-trip time measurement with fallback support
13+
- Added automatic unit normalization (seconds to milliseconds) for RTT values
14+
- Implemented fallback RTT measurement using `flush` for NATS clients without native `rtt` method
15+
- Supports both nats-pure and other NATS client implementations
16+
- Better compatibility across different NATS client versions
17+
18+
- **Rails Integration** - Improved Rake task detection reliability
19+
- Changed from `defined?(::Rake)` check to `$PROGRAM_NAME` inspection
20+
- More reliable detection of Rake execution context
21+
- Prevents false positives when Rake is loaded but not executing
22+
23+
### Fixed
24+
25+
- **Test Coverage** - Comprehensive test suite improvements
26+
- Added complete test coverage for Rails integration lifecycle methods
27+
- Added tests for test helper matchers (`have_published`, `be_publish_success`, `be_publish_failure`)
28+
- Added tests for fixture builders (`sample_event`, `sample_events`, `event`)
29+
- Added test for RTT fallback behavior when client lacks `rtt` method
30+
- Added spec file for `bridge_helpers` module
31+
832
## [4.3.0] - 2025-11-24
933

1034
### Added

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
jetstream_bridge (4.3.0)
4+
jetstream_bridge (4.4.0)
55
activerecord (>= 7.1.5.2, < 8.0)
66
activesupport (>= 7.1.5.2, < 8.0)
77
mutex_m

lib/jetstream_bridge/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
#
55
# Version constant for the gem.
66
module JetstreamBridge
7-
VERSION = '4.3.0'
7+
VERSION = '4.4.0'
88
end

spec/rails/integration_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def self.on_load(_name, &block)
178178
.to change { described_class.instance_variable_get(:@shutdown_hook_registered) }.from(nil).to(true)
179179

180180
expect { described_class.register_shutdown_hook! }
181-
.not_to change { described_class.instance_variable_get(:@shutdown_hook_registered) }
181+
.not_to(change { described_class.instance_variable_get(:@shutdown_hook_registered) })
182182
end
183183
end
184184

0 commit comments

Comments
 (0)