nats_wave 1.1.2 → 1.1.4

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: 9bfb2eac0b9830d1f8dc6d13b2393760070b2736255d79625c650c11bda480f3
4
+ data.tar.gz: 391d0c565b7cb0e3000d36820558ac538db59f4ba6199b23dc1c5e6248d4952a
5
5
  SHA512:
6
- metadata.gz: 27ef2fa2fd9e16b7114822f77743e55292bedc0ba7d19769306a912a9596ecdd77059b10d90a9968120681397ca06dd8471affacebbba157ad656f093b6a5aae
7
- data.tar.gz: c06175802835a414b246e46ca3f45c65dcc8ddebe49ae112675db897acf153f2c9a0e10e224c8c42243c4933bc0a304443624ec87fe9b2448dbdee7d01c30549
6
+ metadata.gz: 5e9cf9c585178821e015b57661ecee82b87d97672b0abeb72df096fcb00764ebc2d4f249c66fcdb183347f27b0d9b15de9bc7c01d804d61257bc9c51467e7d7e
7
+ data.tar.gz: 6be91c8236c2c23236408d0a3400516db0f8f5bd4d80b843a181a9d449dd75a64b2bf4a5d9ea851df7bdbf7cbb9a03deefc67fb7c32dae8cd3d0b9843c505384
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.4)
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.4'
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.4"
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
@@ -27,6 +27,8 @@ module NatsWave
27
27
  subscribe_to_subject(subscription[:subject],
28
28
  subscription[:handler])
29
29
  end
30
+
31
+ NatsWave.logger.info "Subscribed to #{@config.subscriptions.size} subjects"
30
32
  end
31
33
 
32
34
  def subscribe(subjects:, model_mappings: {}, handler: nil)
@@ -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.4'
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Dabo