amq-client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -193,6 +193,9 @@ module AMQ
193
193
  # @endgroup
194
194
 
195
195
 
196
+ def to_s
197
+ "#<#{self.class.name} @consumer_tag=#{@consumer_tag} @queue=#{@queue.name} @channel=#{@channel.id}>"
198
+ end
196
199
 
197
200
 
198
201
  #
@@ -115,7 +115,7 @@ module AMQ
115
115
  @auto_delete = auto_delete
116
116
  @arguments = arguments
117
117
 
118
- nowait = true if !block && !@name.empty?
118
+ nowait = true if !block && !@name.empty? && nowait.nil?
119
119
  @connection.send_frame(Protocol::Queue::Declare.encode(@channel.id, @name, passive, durable, exclusive, auto_delete, nowait, arguments))
120
120
 
121
121
  if !nowait
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AMQ
4
4
  module Client
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amq-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: