jetstream_bridge 5.0.2 → 7.0.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.
@@ -140,7 +140,7 @@ module JetstreamBridge
140
140
  return if @connection_initialized
141
141
 
142
142
  config.validate!
143
- connect_and_ensure_stream!
143
+ connect_and_provision!
144
144
  @connection_initialized = true
145
145
  Logging.info('JetStream Bridge started successfully', tag: 'JetstreamBridge')
146
146
  end
@@ -197,10 +197,10 @@ module JetstreamBridge
197
197
  config.use_dlq
198
198
  end
199
199
 
200
- # Establishes a connection and ensures stream topology.
200
+ # Establishes a connection and provisions stream topology.
201
201
  #
202
202
  # @return [Object] JetStream context
203
- def connect_and_ensure_stream!
203
+ def connect_and_provision!
204
204
  config.validate!
205
205
  provision = config.auto_provision
206
206
  Connection.connect!(verify_js: provision)
@@ -208,7 +208,7 @@ module JetstreamBridge
208
208
  raise ConnectionNotEstablishedError, 'JetStream connection not available' unless jts
209
209
 
210
210
  if provision
211
- Provisioner.new(config: config).ensure_stream!(jts: jts)
211
+ Provisioner.new(config: config).provision_stream!(jts: jts)
212
212
  else
213
213
  Logging.info(
214
214
  'auto_provision=false: skipping stream provisioning and JetStream account_info. ' \
@@ -222,16 +222,11 @@ module JetstreamBridge
222
222
 
223
223
  # Provision stream/consumer using management credentials (out of band from runtime).
224
224
  #
225
- # @param ensure_consumer [Boolean] Whether to create/align the consumer along with the stream.
225
+ # @param provision_consumer [Boolean] Whether to create/align the consumer along with the stream.
226
226
  # @return [Object] JetStream context
227
- def provision!(ensure_consumer: true)
227
+ def provision!(provision_consumer: true)
228
228
  config.validate!
229
- Provisioner.new(config: config).ensure!(ensure_consumer: ensure_consumer)
230
- end
231
-
232
- # Backwards-compatible alias for the previous method name
233
- def ensure_topology!
234
- connect_and_ensure_stream!
229
+ Provisioner.new(config: config).provision!(provision_consumer: provision_consumer)
235
230
  end
236
231
 
237
232
  # Active health check for monitoring and readiness probes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetstream_bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Attara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-28 00:00:00.000000000 Z
11
+ date: 2026-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -121,6 +121,7 @@ files:
121
121
  - CHANGELOG.md
122
122
  - LICENSE
123
123
  - README.md
124
+ - docs/API.md
124
125
  - docs/ARCHITECTURE.md
125
126
  - docs/GETTING_STARTED.md
126
127
  - docs/PRODUCTION.md
@@ -135,7 +136,9 @@ files:
135
136
  - lib/generators/jetstream_bridge/migrations/templates/create_jetstream_inbox_events.rb.erb
136
137
  - lib/generators/jetstream_bridge/migrations/templates/create_jetstream_outbox_events.rb.erb
137
138
  - lib/jetstream_bridge.rb
139
+ - lib/jetstream_bridge/config_helpers.rb
138
140
  - lib/jetstream_bridge/consumer/consumer.rb
141
+ - lib/jetstream_bridge/consumer/consumer_state.rb
139
142
  - lib/jetstream_bridge/consumer/dlq_publisher.rb
140
143
  - lib/jetstream_bridge/consumer/inbox/inbox_message.rb
141
144
  - lib/jetstream_bridge/consumer/inbox/inbox_processor.rb