fastly_nsq 0.2.0 → 0.2.1

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: 325bb3dda2921106c66242e7d74c159e19b1d23a
4
- data.tar.gz: d6db3266246c089e744efb2f16fabd0cee8349a8
3
+ metadata.gz: cfbb2df1f2bb5e0a03516595b655c65c72238697
4
+ data.tar.gz: db467a7f87cf17d1dd6d69b577d8c8c051c87028
5
5
  SHA512:
6
- metadata.gz: cda98052c9c52f8aa1fe65a4dd0a6e311530e300adbf58d1e9bc794a652ed21852c3d6928ef1bf0b98c5e043700f68b2924d4a9de7915e1b008905a3c25097ec
7
- data.tar.gz: d58bb1d4976fd771677bf38857b3b292f4bb57fb3cd56fc26772b0761896b91dd7969712f1a9011c59b04a3307b5086b340d74e9bea64fb4a96a6e02c8f69388
6
+ metadata.gz: e07fc37bed4ef892de6ed12048c4ae9d8217b9f55f0ed08a1a3b16b118264be3e2a757b0fd9b35c433399b82ada9731ddaf026f204f507055fa283769fd9a780
7
+ data.tar.gz: 28044043d848e2143b517db10a5d2d6bbec39e244d18af1d313e38d5268ae0853e802d2c6c77aaeb8c77ee4bf560cfe02cae5447a8984bbb92459310a8264acd
@@ -22,6 +22,10 @@ module FakeMessageQueue
22
22
  queue.push(message)
23
23
  end
24
24
 
25
+ def terminate
26
+ # noop
27
+ end
28
+
25
29
  private
26
30
 
27
31
  def queue
@@ -41,6 +45,10 @@ module FakeMessageQueue
41
45
  queue.size
42
46
  end
43
47
 
48
+ def terminate
49
+ # noop
50
+ end
51
+
44
52
  private
45
53
 
46
54
  def queue
@@ -1,3 +1,3 @@
1
1
  module FastlyNsq
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -37,6 +37,13 @@ RSpec.describe FakeMessageQueue::Producer do
37
37
  expect(FakeMessageQueue.queue.size).to eq 1
38
38
  end
39
39
  end
40
+
41
+ describe '#terminate' do
42
+ it 'has a terminate method which is a noop' do
43
+ producer = instance_double('FakeMessageQueue::Producer')
44
+ allow(producer).to receive(:terminate)
45
+ end
46
+ end
40
47
  end
41
48
 
42
49
  RSpec.describe FakeMessageQueue::Message do
@@ -101,4 +108,11 @@ RSpec.describe FakeMessageQueue::Consumer do
101
108
  expect(popped_message). to eq message
102
109
  end
103
110
  end
111
+
112
+ describe '#terminate' do
113
+ it 'has a terminate method which is a noop' do
114
+ consumer = instance_double('FakeMessageQueue::Consumer')
115
+ allow(consumer).to receive(:terminate)
116
+ end
117
+ end
104
118
  end
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommy O'Neil