bps-stan 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50e0141e0d0bdb22ecebc986da5d42a20c6fba2bbf33da60c1899fd46d6c6a08
4
- data.tar.gz: fe097b32c80fc2b7204a8d08b87cccd9c02cabc63b35c0ecc2222755a677b628
3
+ metadata.gz: 7108a7bf17771ebd494e2fc1cd438aff207e49b2492a3bfa43c8e55de3ec61ca
4
+ data.tar.gz: 4876378fbb7efa31e15ee93f633c4596919fde413ce1c4fa261b014a76589486
5
5
  SHA512:
6
- metadata.gz: 9d471fe8d4d190b8adb39a4df7b29ab2d9d99de26818f22baa2e38a8ad3436ce093b4fae3421c5c2bae9891db4f8fcbbbb8828141b6ad4f2f47506abc86b8fae
7
- data.tar.gz: f2d33c064907929224c17838042392bc9b26cd5b482c176e7594d9d0f7ac42aab5995858a15c658320aa689f187efbc1cf5832b7eaa9d6fe25605898f0221183
6
+ metadata.gz: ab1e0361768cfceae98e1709a9065fc33d82f21bc529fa6ef010d6964c7382249e8a3acc1a34a53c33c7bc97f3a10d17198009571e29104461f1d644b7049e48
7
+ data.tar.gz: 85cda889a293c0c48050139b2888cbd238e2924c1630c9484a83ee870bedc5d03ec7a2d5ae71f7c53ed28d60febb46cce28423aabcb1734db4e218b76b29bfb8
@@ -36,6 +36,8 @@ module BPS
36
36
  end
37
37
 
38
38
  def close
39
+ super
40
+
39
41
  # NATS/STAN does not survive multi-closes, so close only once:
40
42
  @client&.close
41
43
  @client = nil
@@ -26,6 +26,8 @@ module BPS
26
26
 
27
27
  # Close the subscriber.
28
28
  def close
29
+ super
30
+
29
31
  # NATS/STAN does not survive multi-closes, so close only once:
30
32
  @client&.close
31
33
  @client = nil
@@ -39,7 +39,7 @@ RSpec.describe 'STAN', stan: true do
39
39
  let(:cluster_id) { 'test-cluster' } # this is a default cluster for https://hub.docker.com/_/nats-streaming
40
40
  let(:client_id) { 'bps-test' }
41
41
 
42
- let(:nats_servers) { ENV.fetch('STAN_SERVERS', '127.0.0.1:4222').split(',') }
42
+ let(:nats_servers) { ENV.fetch('STAN_ADDRS', '127.0.0.1:4222').split(',') }
43
43
  let(:nats_servers_with_scheme) { nats_servers.map {|s| "nats://#{s}" } }
44
44
 
45
45
  let(:publisher_url) { "stan://#{CGI.escape(nats_servers.join(','))}/?cluster_id=#{cluster_id}&client_id=#{client_id}" }
@@ -39,7 +39,7 @@ RSpec.describe 'STAN', stan: true do
39
39
  let(:cluster_id) { 'test-cluster' } # this is a default cluster for https://hub.docker.com/_/nats-streaming
40
40
  let(:client_id) { 'bps-test' }
41
41
 
42
- let(:nats_servers) { ENV.fetch('STAN_SERVERS', '127.0.0.1:4222').split(',') }
42
+ let(:nats_servers) { ENV.fetch('STAN_ADDRS', '127.0.0.1:4222').split(',') }
43
43
  let(:nats_servers_with_scheme) { nats_servers.map {|s| "nats://#{s}" } }
44
44
 
45
45
  let(:subscriber_url) { "stan://#{CGI.escape(nats_servers.join(','))}/?cluster_id=#{cluster_id}&client_id=#{client_id}" }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bps-stan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-05 00:00:00.000000000 Z
11
+ date: 2021-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bps
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.1
19
+ version: 0.2.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.1
26
+ version: 0.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nats-streaming
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubygems_version: 3.1.4
73
+ rubygems_version: 3.2.15
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: BPS adapter for nats-streaming