nsq-env 0.0.6 → 0.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: 8aa37ebd75945097e336678ccebaf266190742a2
4
- data.tar.gz: e95bba6284e60936e33aeadbcf76f447b7e0f919
3
+ metadata.gz: fd15bd47416f281952c079c647e0436185880d4b
4
+ data.tar.gz: 3b998163f74529106f84925eb867748b900bcde8
5
5
  SHA512:
6
- metadata.gz: 600a208a635c3826353bccd97ca9600289c74cefb02659b884f89b4862c09d202fc49ebdafbd14bd523c257886d788e20a7b6f13eb8a8287a545f399e30d8325
7
- data.tar.gz: c94ac10165128ac72f12a7ccce3065e3dd9ab5bffde195904d8b688d0863be323f36d5cc5e18ef21b3f87d76f1042f326f06cd3fa000c6918d43cbcba5755635
6
+ metadata.gz: 255831339bba3e3f63e10ed4900bea03dc211135fb88faeb858ffad70eaaed3746e8834c4ab563bf29d2e5683d7d66a6d1795dad46c093b0c210bd4ac461a51c
7
+ data.tar.gz: 3f67001e39bceed91015503b21c57cfe9415634ca954439863852cd9f4369f3b3ef60f4676541fcc9baabf5268fe2f6db46c3167442403dc520f5bba5f85bdf7
@@ -1,7 +1,7 @@
1
1
  require "krakow"
2
2
 
3
3
  module NsqEnv
4
- class Consumer < Krakow::Consumer
4
+ class Consumer < Nsq::Consumer
5
5
  def initialize(opts = {})
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]
@@ -1,13 +1,12 @@
1
1
  require "krakow"
2
2
 
3
3
  module NsqEnv
4
- class Producer < Krakow::Producer
4
+ class Producer < Nsq::Producer
5
5
  def initialize(opts = {})
6
6
  raise ArgumentError.new "opts should have a :topic key" if not opts[:topic]
7
7
 
8
8
  opts.merge!({
9
- :host => ENV["NSQD_HOST"],
10
- :port => ENV["NSQD_PORT"],
9
+ :nsqlookupd => ENV["NSQLOOKUPD_URLS"].split(","),
11
10
  })
12
11
  opts.merge! TLSContext.env if ENV["NSQD_TLS"] == "true"
13
12
 
@@ -2,18 +2,11 @@ module NsqEnv
2
2
  class TLSContext
3
3
  def self.env
4
4
  {
5
- :connection_options => {
6
- :features => {
7
- :tls_v1 => true
8
- },
9
- :config => {
10
- :ssl_context => {
11
- :ca_file => ENV["NSQD_TLS_CACERT"],
12
- :certificate => ENV["NSQD_TLS_CERT"],
13
- :key => ENV["NSQD_TLS_KEY"],
14
- }
15
- }
16
- }
5
+ :ssl_context => {
6
+ :key => ENV["NSQD_TLS_KEY"],
7
+ :certificate => ENV["NSQD_TLS_CERT"],
8
+ :ca_certificate => ENV["NSQD_TLS_CACERT"],
9
+ },
17
10
  }
18
11
  end
19
12
  end
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsq-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.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: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: krakow
14
+ name: nsq-ruby
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.0
19
+ version: '1.6'
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: 0.4.0
27
- - !ruby/object:Gem::Dependency
28
- name: celluloid
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.16.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.16.0
26
+ version: '1.6'
41
27
  description: |
42
28
  # Configure NSQ consumers and producers based on Krakow from environment
43
29
 
@@ -60,7 +46,7 @@ files:
60
46
  - lib/nsq-env/tls_context.rb
61
47
  homepage: http://github.com/Scalingo/nsq-env-ruby
62
48
  licenses:
63
- - BSD
49
+ - BSD-3-Clause
64
50
  metadata: {}
65
51
  post_install_message:
66
52
  rdoc_options: []
@@ -78,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
64
  version: '0'
79
65
  requirements: []
80
66
  rubyforge_project:
81
- rubygems_version: 2.4.5
67
+ rubygems_version: 2.5.1
82
68
  signing_key:
83
69
  specification_version: 4
84
70
  summary: Build consumers and producers with help of environment