nats_wave 1.1.2 → 1.1.3

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: 25d1f49db1fd66cbb5ea891eb4676334401502f53ec3209e7966961293a28b97
4
- data.tar.gz: 8705836ddb7d8860290dcc5d9394fb408835cd0e69588e5cdc809f7cae59262b
3
+ metadata.gz: 06abe6b70835efc0651808fa28d1ef6666983318a3413a6854d72617061dae22
4
+ data.tar.gz: f3458ee2131238f8b6768ca14ce8adefe0c603aca38fc2afe42be58646400366
5
5
  SHA512:
6
- metadata.gz: 27ef2fa2fd9e16b7114822f77743e55292bedc0ba7d19769306a912a9596ecdd77059b10d90a9968120681397ca06dd8471affacebbba157ad656f093b6a5aae
7
- data.tar.gz: c06175802835a414b246e46ca3f45c65dcc8ddebe49ae112675db897acf153f2c9a0e10e224c8c42243c4933bc0a304443624ec87fe9b2448dbdee7d01c30549
6
+ metadata.gz: 832f35b23463541446a6333ff2faaab74c3844bd996dd1f8d7490abededc686e4ef25de880f25ba8c901510d0cb4efda855668224e4d97fa0543e04da157e296
7
+ data.tar.gz: ebf010fb758e400548893c25427e8c3fb6bbeeddb72b1fb7816de8fb5462d14388c72d37fbf793fe3dd4d9f78010761fbdd86dbed83ef658144a4f3e1e9ef30e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nats_wave (1.1.2)
4
+ nats_wave (1.1.3)
5
5
  activerecord (>= 6.1, < 8.0)
6
6
  activesupport (>= 6.1, < 8.0)
7
7
  concurrent-ruby (~> 1.1)
@@ -24,8 +24,8 @@ NatsWave.configure do |config|
24
24
  # })
25
25
 
26
26
  # Subscriptions (example)
27
- # config.add_subscription('external.assets.*')
28
- # config.add_subscription('catalog.items.*')
27
+ config.add_subscription('external.assets.*')
28
+ config.add_subscription('catalog.items.*')
29
29
 
30
30
  # Custom subscription with handler
31
31
  # config.add_subscription('webhooks.external.*') do |message|
@@ -77,7 +77,7 @@ module NatsWave
77
77
  {
78
78
  service: @service_name,
79
79
  environment: ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'unknown',
80
- version: ENV['APP_VERSION'] || '1.1.2'
80
+ version: ENV['APP_VERSION'] || '1.1.3'
81
81
  }
82
82
  end
83
83
 
@@ -44,7 +44,6 @@ module NatsWave
44
44
  def start_subscriber
45
45
  ensure_connected!
46
46
  @subscriber.start if @subscriber
47
- NatsWave.logger.info "Subscribed to #{@config.subscriptions.size} subjects"
48
47
  end
49
48
 
50
49
  def health_check
@@ -18,7 +18,7 @@ module NatsWave
18
18
  def initialize(options = {})
19
19
  @nats_url = ENV['NATS_URL']
20
20
  @service_name = ENV['NATS_NATS_SERVICE_NAME']
21
- @version = ENV['NATS_SERVICE_VERSION'] || "1.1.2"
21
+ @version = ENV['NATS_SERVICE_VERSION'] || "1.1.3"
22
22
  @instance_id = ENV['NATS_INSTANCE_ID'] || Socket.gethostname
23
23
  @database_url = ENV['NATS_DATABASE_URL'] || nil
24
24
  @connection_pool_size = (ENV['NATS_CONNECTION_POOL_SIZE'] || 10).to_i
@@ -22,6 +22,7 @@ module NatsWave
22
22
 
23
23
  @running = true
24
24
  NatsWave.logger.info "Starting NATS subscriber for #{@config.service_name}"
25
+ NatsWave.logger.info "Subscribed to #{@config.subscriptions.size} subjects"
25
26
 
26
27
  @config.subscriptions.each do |subscription|
27
28
  subscribe_to_subject(subscription[:subject],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NatsWave
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nats_wave
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Dabo