nsq-env 0.2.0 → 1.0.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/producer.rb +1 -1
- data/lib/nsq-env.rb +1 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aee5389ac85e9d1b8d5b33ffa3a573f1250c5ac0
|
4
|
+
data.tar.gz: 665fb563de617913418faa93cdb4b47c802d1e7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f1b5dd059b581a8c5d8626a2d946f16b8f965cb96acb50fe6ec29d0aea0c783792731d0c9a02de2d773e69ce5252e31abbba67c81b4d98323794563576bbd1c
|
7
|
+
data.tar.gz: 99b8a5c8568d24efe5973934467686d91a6376bb58d41f88e5b9628c96f074decb0311eecf3fece16aaef82a98a22ac6ce3435ec6d584bec9c572875a2086f8e
|
data/lib/nsq-env/producer.rb
CHANGED
@@ -5,7 +5,7 @@ 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[:
|
8
|
+
opts[:nsqd] = ENV["NSQD_HOSTS"].split(',')
|
9
9
|
|
10
10
|
opts.merge! TLSContext.env if ENV["NSQD_TLS"] == "true"
|
11
11
|
|
data/lib/nsq-env.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: 1.0.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: 2018-
|
11
|
+
date: 2018-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nsq-ruby
|
@@ -30,9 +30,8 @@ description: |
|
|
30
30
|
## Environment variables
|
31
31
|
|
32
32
|
- `NSQLOOKUPD_URLS` (default to `http://localhost:4161`)
|
33
|
-
- `NSQD_HOST` (default to `localhost`)
|
34
|
-
- `NSQD_PORT` (default to `4150`)
|
35
33
|
- `NSQD_TLS` (default to `false`)
|
34
|
+
- `NSQD_HOSTS` (default to `localhost:4150`)
|
36
35
|
- `NSQD_TLS_CERT`
|
37
36
|
- `NSQD_TLS_KEY`
|
38
37
|
- `NSQD_TLS_CACERT`
|