nsq-env 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nsq-env/consumer.rb +2 -4
- data/lib/nsq-env/producer.rb +2 -3
- data/lib/nsq-env/tls_context.rb +2 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d33f4b0012bbd8206468ce9cafacc937ea641df
|
4
|
+
data.tar.gz: dc02c22b62c50c4e2576289898c6e7488440886e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5a975ad05436b7aa18b8925253a3a4b66bf9d39b4cc743cbdfdab677e112a65758f14bc3e61da5948ecb4bc767f649242feb864c1cb5cc6186a694804b58e1a
|
7
|
+
data.tar.gz: 266eb8a5b6982654070ef896536cf3910e2c07d2f0332ef9c8573ac5de69085ecf4fddb88d08f15533022a8dcf3691008d77cf3d1e9ccf67f08e53c31325374a
|
data/lib/nsq-env/consumer.rb
CHANGED
@@ -6,10 +6,8 @@ module NsqEnv
|
|
6
6
|
raise ArgumentError.new "opts should have a :topic key" if not opts[:topic]
|
7
7
|
raise ArgumentError.new "opts should have a :channel key" if not opts[:channel]
|
8
8
|
|
9
|
-
opts.
|
10
|
-
|
11
|
-
:max_in_flight => 5,
|
12
|
-
})
|
9
|
+
opts[:nsqlookupd] = ENV["NSQLOOKUPD_URLS"].split(",")
|
10
|
+
opts[:max_in_flight] ||= 5
|
13
11
|
|
14
12
|
opts.merge! TLSContext.env if ENV["NSQD_TLS"] == "true"
|
15
13
|
|
data/lib/nsq-env/producer.rb
CHANGED
@@ -5,9 +5,8 @@ module NsqEnv
|
|
5
5
|
def initialize(opts = {})
|
6
6
|
raise ArgumentError.new "opts should have a :topic key" if not opts[:topic]
|
7
7
|
|
8
|
-
opts.
|
9
|
-
|
10
|
-
})
|
8
|
+
opts[:nsqlookupd] = ENV["NSQLOOKUPD_URLS"].split(",")
|
9
|
+
|
11
10
|
opts.merge! TLSContext.env if ENV["NSQD_TLS"] == "true"
|
12
11
|
|
13
12
|
super(opts)
|
data/lib/nsq-env/tls_context.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nsq-env
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Léo Unbekandt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nsq-ruby
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '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: '
|
26
|
+
version: '2.2'
|
27
27
|
description: |
|
28
28
|
# Configure NSQ consumers and producers based on Krakow from environment
|
29
29
|
|
@@ -35,6 +35,7 @@ description: |
|
|
35
35
|
- `NSQD_TLS` (default to `false`)
|
36
36
|
- `NSQD_TLS_CERT`
|
37
37
|
- `NSQD_TLS_KEY`
|
38
|
+
- `NSQD_TLS_CACERT`
|
38
39
|
email: leo@scalingo.com
|
39
40
|
executables: []
|
40
41
|
extensions: []
|
@@ -64,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
65
|
version: '0'
|
65
66
|
requirements: []
|
66
67
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.
|
68
|
+
rubygems_version: 2.6.13
|
68
69
|
signing_key:
|
69
70
|
specification_version: 4
|
70
71
|
summary: Build consumers and producers with help of environment
|