combi 0.0.15 → 0.0.16

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: b4b7f86ff2d0ee05ef90a678b852c529bf126517
4
- data.tar.gz: d42e6f431566d2a2665a34ebd247b967c745e0d8
3
+ metadata.gz: 8dfbacc13cc058b63321ceda749d6ceea8c6a5c1
4
+ data.tar.gz: ea5082f27fa522b103e2fc8e92032e0a6fd91e90
5
5
  SHA512:
6
- metadata.gz: 1fc53639816bcaa94dd0f430f331960b78c12dd992abbc048c9c7d1ad110bdf2075f7990f4471abb170b5e47db4bc4aa88cd5e71542a56d34e65958a9dce9a02
7
- data.tar.gz: 9d21649b35a445d472d419e7e211324d5289cd30a62dae65663424ee5d1dd4c9be1e4e01d804b81425892d4cc1c1e3f759bd34c80dbfa34861a2d6df12e8f90a
6
+ metadata.gz: 53b03c8e8b8ed4a86ab0957702f0524f1047c738ae53ea6e83c1065144e6ad94c9cb5c6b0dc42b2fea0c04d91b478a9f9c9f7727cfb2eeb8e5d578f8fdf11e5c
7
+ data.tar.gz: 0b8fc533afb38fcfd4962a548218b8b7242c901511004ec47424c66396379aa6bfc38be04377907650ed779ca7d3dbc6ef6fae4227c6e9daa52e96c49bc2839a
@@ -52,7 +52,7 @@ module Combi
52
52
  correlation_id = Combi::Correlation.generate
53
53
  options[:correlation_id] = correlation_id
54
54
  waiter = EventedWaiter.wait_for(correlation_id, @response_store, options[:timeout])
55
- queue_service.ready do
55
+ queue_service.next_ready_only do
56
56
  log "Making request: #{name}.#{kind} #{message.inspect[0..500]}\t|| #{options.inspect[0..500]}"
57
57
  queue_service.call(kind, message, options)
58
58
  end
@@ -19,6 +19,10 @@ module Combi
19
19
  @ready_defer.callback &block
20
20
  end
21
21
 
22
+ def next_ready_only(&block)
23
+ @ready_defer.callback &block
24
+ end
25
+
22
26
  def log(message)
23
27
  return unless @debug_mode ||= ENV['DEBUG'] == 'true'
24
28
  puts "#{Time.now.to_f} #{self.class.name} #{message}"
@@ -1,3 +1,3 @@
1
1
  module Combi
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - German Del Zotto