thrift-amqp-ruby 0.0.4 → 0.0.5

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: 2199918b9c4d1171b44b9fdadf93ebbed5aefd33
4
- data.tar.gz: c38f198961f7789d60d23f2feb610db2120e6489
3
+ metadata.gz: a69d7c06e7fcfb12fdcd862d3fd44759b925e0a1
4
+ data.tar.gz: 02fec0f826fa9ee852bc4ee07eec16e59a965d63
5
5
  SHA512:
6
- metadata.gz: 6f0c3fbb54ef8b3d5ac080dd995612aae73cc0debc20311c1f88dd29897952eaba72aa4297febe3a64183c9b9dc08ff9707d36b972030ca8aee2423e01852c78
7
- data.tar.gz: a80135ee5015289fc8111211f11f7046edea159987a0278c3929321bd84b4d2f82e5ecb4920cfe23d595a7b6248a86224d41a523283e897804221f2c598026f0
6
+ metadata.gz: 7eb45261cc2d12692cfaf6d511036ba6230c995afaf16e303011e76a8162ca61cb238ba60ee6225c8e0a939129c22360d2e26d01e4ba727fde14700ef399856e
7
+ data.tar.gz: ceb2eb790bbc306c3b92932312136635749074d9c4174b6a38bcc4b3a5ebf3d2309cb14666ad814cef2088c096fc8e325ecae79154a8684ce0237a9878865ffe
@@ -32,7 +32,7 @@ module Thrift
32
32
  def initialize(service_queue_name, opts={})
33
33
  @service_queue_name = service_queue_name
34
34
  @outbuf = Bytes.empty_byte_buffer
35
-
35
+ @timeout = opts[:timeout] || 100
36
36
  if opts[:connection].nil?
37
37
  if opts[:host].nil?
38
38
  raise ArgumentError, ":host key not provided in opts dict to make connection"
@@ -97,7 +97,7 @@ module Thrift
97
97
 
98
98
  operation = options.has_key?(:operation) ? options[:operation] : ""
99
99
  blocking = options.has_key?(:blocking) ? options[:blocking] : true
100
- msg_timeout = options.has_key?(:msg_timeout) ? options[:msg_timeout] : 10
100
+ msg_timeout = options.has_key?(:msg_timeout) ? options[:msg_timeout] : @timeout
101
101
  log_messages = options.has_key?(:log_messages) ? options[:log_messages] : false
102
102
 
103
103
  correlation_id = self.generate_uuid
@@ -1,7 +1,7 @@
1
1
  module Thrift
2
2
  module Amqp
3
3
  module Ruby
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thrift-amqp-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Montagne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-24 00:00:00.000000000 Z
11
+ date: 2015-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler