carnivore-nsq 0.1.12 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 700c179d22a74cd68a9fe8f3dbb0eada60fb714d
4
- data.tar.gz: ebe7fad4aa9f113ec0c2da015219e0528824bf34
3
+ metadata.gz: b0b0185fa30c41067795125360e7079687ffc928
4
+ data.tar.gz: 03621ccff5cd21972a5fa6a9729c24d59c5fe47d
5
5
  SHA512:
6
- metadata.gz: 73d5c47b4129593fb4d23a3c7529b8ec23b077c16d8aa702ec117553cf1a76fe6494d12eaf527ed48093273d5f7bb3ccdb376cb43c58b9c597fa52f950c9acc2
7
- data.tar.gz: 46632fa13da1eb9c77ac3e6a7c0fe259ab8e467a2ab8d4b9fc0ef6c5c964ac579950ce8aa229333aba0cbabe527f57d43abc2bd408708e08317f40c7b7460ef2
6
+ metadata.gz: 40066b6881fcd356b2973fa71994c23fa1c893b99caa1e6932b4e77dcfba7dc6c07726e39a8a71e7ce46c71d3e0c02c10893ae444f1e8f8150485c62e6916bb3
7
+ data.tar.gz: 2d2942cb1bcd108006ad0b54c6776c96795d043d306deac3b4ecaeac5d86555f1f12fc8d145284eb0ad50ffdb34b50f61f14d4c8d3687fc42325bccb14168511
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.1.14
2
+ * Wrap message fetching within future
3
+
1
4
  ## v0.1.12
2
5
  * Add better connection recovery support
3
6
 
@@ -121,10 +121,7 @@ module Carnivore
121
121
  #
122
122
  # @return [String]
123
123
  def receive(*_)
124
- if(consumer.queue.empty?)
125
- waiter.wait
126
- end
127
- msg = consumer.queue.pop
124
+ Celluloid::Future.new{ consumer.queue.pop }.value
128
125
  end
129
126
 
130
127
  # Send message
@@ -1,6 +1,6 @@
1
1
  module Carnivore
2
2
  module Nsq
3
3
  # current library version
4
- VERSION = Gem::Version.new('0.1.12')
4
+ VERSION = Gem::Version.new('0.1.14')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore-nsq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carnivore