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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d33f4b0012bbd8206468ce9cafacc937ea641df
4
- data.tar.gz: dc02c22b62c50c4e2576289898c6e7488440886e
3
+ metadata.gz: aee5389ac85e9d1b8d5b33ffa3a573f1250c5ac0
4
+ data.tar.gz: 665fb563de617913418faa93cdb4b47c802d1e7f
5
5
  SHA512:
6
- metadata.gz: f5a975ad05436b7aa18b8925253a3a4b66bf9d39b4cc743cbdfdab677e112a65758f14bc3e61da5948ecb4bc767f649242feb864c1cb5cc6186a694804b58e1a
7
- data.tar.gz: 266eb8a5b6982654070ef896536cf3910e2c07d2f0332ef9c8573ac5de69085ecf4fddb88d08f15533022a8dcf3691008d77cf3d1e9ccf67f08e53c31325374a
6
+ metadata.gz: 9f1b5dd059b581a8c5d8626a2d946f16b8f965cb96acb50fe6ec29d0aea0c783792731d0c9a02de2d773e69ce5252e31abbba67c81b4d98323794563576bbd1c
7
+ data.tar.gz: 99b8a5c8568d24efe5973934467686d91a6376bb58d41f88e5b9628c96f074decb0311eecf3fece16aaef82a98a22ac6ce3435ec6d584bec9c572875a2086f8e
@@ -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[:nsqlookupd] = ENV["NSQLOOKUPD_URLS"].split(",")
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
@@ -3,5 +3,4 @@ require "nsq-env/consumer"
3
3
  require "nsq-env/tls_context"
4
4
 
5
5
  ENV["NSQLOOKUPD_URLS"] ||= "http://localhost:4161"
6
- ENV["NSQD_HOST"] ||= "localhost"
7
- ENV["NSQD_PORT"] ||= "4150"
6
+ ENV["NSQD_HOSTS"] ||= "localhost:4150"
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.2.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-01-15 00:00:00.000000000 Z
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`