bps-stan 0.2.1 → 0.2.4

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: 1853700be0e0fcb14b119b30931fa9afcb0fe5e6f3d4ed9593d99804bc22f31f
4
+ data.tar.gz: 25d4b37a35c2120b8d016742ce8f5378c8fd1b54abb492ee857850e66fb2ecb0
5
5
  SHA512:
6
- metadata.gz: 9d471fe8d4d190b8adb39a4df7b29ab2d9d99de26818f22baa2e38a8ad3436ce093b4fae3421c5c2bae9891db4f8fcbbbb8828141b6ad4f2f47506abc86b8fae
7
- data.tar.gz: f2d33c064907929224c17838042392bc9b26cd5b482c176e7594d9d0f7ac42aab5995858a15c658320aa689f187efbc1cf5832b7eaa9d6fe25605898f0221183
6
+ metadata.gz: 15f3a5e1b8eb6b79b5b23d0e214ff63a30af934fcf86e7a430acfbc6e86961bcb09851e2df2c1e4729acd32ff8a8292376c7461b6cae19756440abc70a862568
7
+ data.tar.gz: d091d7447296f3cac1a75ed1594e834ed88c740c26f7e93c3447a1f26e8085355fa394229f31d7b122288ebb17c2072e70f0478dee79aaba73ddac9b1f94943a
data/bps-stan.gemspec CHANGED
@@ -15,8 +15,9 @@ Gem::Specification.new do |s|
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- spec/*`.split("\n")
17
17
  s.require_paths = ['lib']
18
- s.required_ruby_version = '>= 2.6.0'
18
+ s.required_ruby_version = '>= 2.7'
19
19
 
20
20
  s.add_dependency 'bps', s.version
21
21
  s.add_dependency 'nats-streaming', '~> 0.2.2'
22
+ s.metadata['rubygems_mfa_required'] = 'true'
22
23
  end
@@ -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.4
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: 2022-03-15 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.4
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.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nats-streaming
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -54,7 +54,8 @@ files:
54
54
  homepage: https://github.com/bsm/bps
55
55
  licenses:
56
56
  - Apache-2.0
57
- metadata: {}
57
+ metadata:
58
+ rubygems_mfa_required: 'true'
58
59
  post_install_message:
59
60
  rdoc_options: []
60
61
  require_paths:
@@ -63,14 +64,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
64
  requirements:
64
65
  - - ">="
65
66
  - !ruby/object:Gem::Version
66
- version: 2.6.0
67
+ version: '2.7'
67
68
  required_rubygems_version: !ruby/object:Gem::Requirement
68
69
  requirements:
69
70
  - - ">="
70
71
  - !ruby/object:Gem::Version
71
72
  version: '0'
72
73
  requirements: []
73
- rubygems_version: 3.1.4
74
+ rubygems_version: 3.3.3
74
75
  signing_key:
75
76
  specification_version: 4
76
77
  summary: BPS adapter for nats-streaming