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 +4 -4
- data/bps-stan.gemspec +2 -1
- data/lib/bps/publisher/stan.rb +2 -0
- data/lib/bps/subscriber/stan.rb +2 -0
- data/spec/bps/publisher/stan_spec.rb +1 -1
- data/spec/bps/subscriber/stan_spec.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1853700be0e0fcb14b119b30931fa9afcb0fe5e6f3d4ed9593d99804bc22f31f
|
4
|
+
data.tar.gz: 25d4b37a35c2120b8d016742ce8f5378c8fd1b54abb492ee857850e66fb2ecb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/bps/publisher/stan.rb
CHANGED
data/lib/bps/subscriber/stan.rb
CHANGED
@@ -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('
|
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('
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
74
|
+
rubygems_version: 3.3.3
|
74
75
|
signing_key:
|
75
76
|
specification_version: 4
|
76
77
|
summary: BPS adapter for nats-streaming
|