fastly_nsq 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastly_nsq/fake_backend.rb +4 -0
- data/lib/fastly_nsq/producer.rb +3 -0
- data/lib/fastly_nsq/version.rb +1 -1
- data/spec/lib/fastly_nsq/producer_spec.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d135e4ea62368b96e679f326fc80985b2b4e33ed
|
4
|
+
data.tar.gz: 919c882bb3589ccab69c38c79a01317e0f4e5534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c818f9865a029c2940c8ef40849d708cdad1bc0b17222379ac7fddb67e08e0e89706f48c3f549a245971d3b3b04d684d3ffb03937d7da69776d1bd9cfbc69d26
|
7
|
+
data.tar.gz: 691bf6c75ab856a2a156fa846210520c9ea9f94957e28b98b1efb2ad426f79dabd01457a5f89b0ad533de479c505713c019ff9e1a4fd0a815820666c1694aa27
|
data/lib/fastly_nsq/producer.rb
CHANGED
data/lib/fastly_nsq/version.rb
CHANGED
@@ -5,7 +5,7 @@ RSpec.describe FastlyNsq::Producer do
|
|
5
5
|
let(:producer) { FastlyNsq::Producer.new(topic: topic) }
|
6
6
|
|
7
7
|
describe 'when connector connects to a backend Producer' do
|
8
|
-
let(:backend) { instance_double FastlyNsq::FakeBackend::Producer, write: nil, terminate: nil }
|
8
|
+
let(:backend) { instance_double FastlyNsq::FakeBackend::Producer, write: nil, terminate: nil, connected?: true }
|
9
9
|
let(:connector) { double 'Connector', new: backend }
|
10
10
|
let(:producer) do
|
11
11
|
FastlyNsq::Producer.new topic: topic, connector: connector
|
@@ -33,6 +33,10 @@ RSpec.describe FastlyNsq::Producer do
|
|
33
33
|
self
|
34
34
|
end
|
35
35
|
|
36
|
+
def connected?
|
37
|
+
true
|
38
|
+
end
|
39
|
+
|
36
40
|
def terminate
|
37
41
|
raise 'Already terminated once' unless @@never_terminated
|
38
42
|
@@never_terminated = false
|
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.
|
4
|
+
version: 0.9.3
|
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-
|
14
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: awesome_print
|