fastly_nsq 0.9.1 → 0.9.2

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: 82323caa352afb4cd70860068b6e35014e0e2195
4
- data.tar.gz: d8be12a7bdab6ded9532be24c7af4dfd4370be2f
3
+ metadata.gz: 969066c461be43f2864dc8bfd70ba8668cd1e86d
4
+ data.tar.gz: e66bb9e002de48ea781de9ffdbec314224224480
5
5
  SHA512:
6
- metadata.gz: 27569f50dc01685db343786c4221875ebf22b06e4d899abb5a331b2facea81758c11a5205dfc28f480aeed1e9d4bf575ea81ea886d8ae5df0dbddccf65293888
7
- data.tar.gz: ef3c400449f5e9322e51e8ef2955e2729b8f7921fb8eabd170ca2621daa7e00fd05636d0a40d6763f3021c7ff0cea30474f7a3f841be2bff35401aad933520eb
6
+ metadata.gz: 1ab5ab413df231d6066e73cbebb5ea3685fc3ffcc3fa1ec3b51dc2377c8392a9f6361c01179368ae370e4451fbd804e9c50115d00fe97d32353d0b4a1e96f9dc
7
+ data.tar.gz: 94a2835acc738b23b58e40dd0c745c6214495ff6a8e1d013ac1ba8c7bf8765890050c4793f1559548243cc3c79ff933dbbd1988ee56ade25f255356ae6234532
@@ -33,7 +33,7 @@ module FastlyNsq
33
33
  end
34
34
 
35
35
  class Producer
36
- def initialize(topic:, nsqd: nil, tls_v1: nil, tls_options: nil)
36
+ def initialize(topic:, nsqlookupd: nil, tls_v1: nil, tls_options: nil)
37
37
  end
38
38
 
39
39
  def write(string)
@@ -26,7 +26,7 @@ module FastlyNsq
26
26
 
27
27
  def params
28
28
  {
29
- nsqd: ENV.fetch('NSQD_TCP_ADDRESS'),
29
+ nsqlookupd: ENV.fetch('NSQLOOKUPD_HTTP_ADDRESS').split(',').map(&:strip),
30
30
  topic: topic,
31
31
  }.merge(tls_options)
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module FastlyNsq
2
- VERSION = '0.9.1'.freeze
2
+ VERSION = '0.9.2'.freeze
3
3
  end
@@ -57,7 +57,7 @@ RSpec.describe FastlyNsq::FakeBackend::Message do
57
57
  topic = 'death_star'
58
58
  content = 'hello'
59
59
  producer = FastlyNsq::FakeBackend::Producer.new(
60
- nsqd: ENV.fetch('NSQD_TCP_ADDRESS'),
60
+ nsqlookupd: ENV.fetch('NSQLOOKUPD_HTTP_ADDRESS'),
61
61
  topic: topic,
62
62
  )
63
63
  producer.write(content)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastly_nsq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy O'Neil
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-01-04 00:00:00.000000000 Z
14
+ date: 2017-01-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: awesome_print