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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c83d64f0d09e99f366c0f5ae59db04b44a5a684
4
- data.tar.gz: f541a4d0362e624c0d75bf115dbae8afd4677853
3
+ metadata.gz: 9d33f4b0012bbd8206468ce9cafacc937ea641df
4
+ data.tar.gz: dc02c22b62c50c4e2576289898c6e7488440886e
5
5
  SHA512:
6
- metadata.gz: 7a7509206664697478abeccea2eb06e66512c3fd069033b31154ac3423c82ff0e33c8bf341f4c34f4a2e3c8faa2fa598968f2cf8077ae85431754d9d49f367e3
7
- data.tar.gz: 9ab36060e525e805252dd11f8233553c4abfb9afdb5347c1ca495becbb09da68898edd88159094512adf06a17f6a22a4a52a7aa87914b00cccb3a966cfb451df
6
+ metadata.gz: f5a975ad05436b7aa18b8925253a3a4b66bf9d39b4cc743cbdfdab677e112a65758f14bc3e61da5948ecb4bc767f649242feb864c1cb5cc6186a694804b58e1a
7
+ data.tar.gz: 266eb8a5b6982654070ef896536cf3910e2c07d2f0332ef9c8573ac5de69085ecf4fddb88d08f15533022a8dcf3691008d77cf3d1e9ccf67f08e53c31325374a
@@ -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.merge!({
10
- :nsqlookupd => ENV["NSQLOOKUPD_URLS"].split(","),
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
 
@@ -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.merge!({
9
- :nsqlookupd => ENV["NSQLOOKUPD_URLS"].split(","),
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)
@@ -2,7 +2,8 @@ module NsqEnv
2
2
  class TLSContext
3
3
  def self.env
4
4
  {
5
- :ssl_context => {
5
+ :tls_v1 => true,
6
+ :tls_options => {
6
7
  :key => ENV["NSQD_TLS_KEY"],
7
8
  :certificate => ENV["NSQD_TLS_CERT"],
8
9
  :ca_certificate => ENV["NSQD_TLS_CACERT"],
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.1.1
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: 2016-06-03 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
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.5.1
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