nsq-env 1.0.1 → 1.1.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: f9c01a0a6ab8a6efa5bdb189b38aac7643fec58d
4
- data.tar.gz: 7b10aa0e24ad7fa7bc0aa91198c49c5e6b97ef12
3
+ metadata.gz: b1441fb8bec51ce0c93f20dd8d11c01c7a01c447
4
+ data.tar.gz: fef8316538b01db943c6c29748f2ced079028b63
5
5
  SHA512:
6
- metadata.gz: da8a44acc297cbd17da4114944fb8e8d6b87716ac9e555032a151bfd7c3922d7d31fefe65e556ae3f8019d8faf3a3a9922edd515009cdbd1b3e029ce1e6b0785
7
- data.tar.gz: 9a6a865c673b8611037a5dea2689e325ceaa9e8eaab252409e89403fd09098dbc3f96cea8079abbb27c7ebe7774cb91f7f3cecd0a46f214efeb44e6172c1c7a3
6
+ metadata.gz: 4e9ce88c8a6dd4ee34bf58d6c84ba3d3e4f8abc35ae9a12a30e1352539cc02f6199bcac1a7f026e70ef8db96063c4d33ac22e24ea3075f4150ed84bd549a782c
7
+ data.tar.gz: 155d82f1b901e7fb5865b426af459c26feadaf5a03e6d5db0cf2361b1643072b1cb75144301746186ba37a5dfa52f8c5826bc52cad3992a0520dde605582ee3a
@@ -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[:nsqd] = ENV["NSQD_HOSTS"].split(',')
8
+ opts[:nsqd] = NsqEnv::nsqds
9
9
 
10
10
  opts.merge! TLSContext.env if ENV["NSQD_TLS"] == "true"
11
11
 
@@ -0,0 +1,5 @@
1
+ module NsqEnv
2
+ def self.nsqds
3
+ ENV["NSQD_HOSTS"].split(',')
4
+ end
5
+ end
data/lib/nsq-env.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "nsq-env/utils"
1
2
  require "nsq-env/producer"
2
3
  require "nsq-env/consumer"
3
4
  require "nsq-env/tls_context"
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: 1.0.1
4
+ version: 1.1.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-06-12 00:00:00.000000000 Z
11
+ date: 2018-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nsq-ruby
@@ -44,6 +44,7 @@ files:
44
44
  - lib/nsq-env/consumer.rb
45
45
  - lib/nsq-env/producer.rb
46
46
  - lib/nsq-env/tls_context.rb
47
+ - lib/nsq-env/utils.rb
47
48
  homepage: http://github.com/Scalingo/nsq-env-ruby
48
49
  licenses:
49
50
  - BSD-3-Clause