bunny 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -1
- data/CHANGELOG +13 -0
- data/lib/bunny/client08.rb +1 -1
- data/lib/bunny/client09.rb +1 -1
- data/lib/bunny/subscription08.rb +3 -2
- data/lib/bunny/subscription09.rb +3 -2
- data/lib/bunny/version.rb +1 -1
- data/lib/qrack/client.rb +2 -1
- data/lib/qrack/subscription.rb +1 -1
- metadata +14 -3
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,2 +1,15 @@
|
|
1
|
+
= Version 0.7.3
|
2
|
+
|
3
|
+
* AMQP connection URI parser now respects port
|
4
|
+
|
5
|
+
= Version 0.7.2
|
6
|
+
|
7
|
+
* Fixes for irb tab completion
|
8
|
+
|
9
|
+
= Version 0.7.0
|
10
|
+
|
11
|
+
* Added :content_type option to Exchange#publish
|
12
|
+
* Lots of minor fixes
|
13
|
+
|
1
14
|
= Version 0.6.3
|
2
15
|
* Encoding of source files is set to UTF-8 on Ruby 1.9.
|
data/lib/bunny/client08.rb
CHANGED
@@ -151,7 +151,7 @@ Exchange
|
|
151
151
|
when channel.frame_buffer.size > 0
|
152
152
|
frame = channel.frame_buffer.shift
|
153
153
|
when (timeout = opts[:timeout]) && timeout > 0
|
154
|
-
Bunny::Timer::timeout(timeout, Qrack::
|
154
|
+
Bunny::Timer::timeout(timeout, Qrack::FrameTimeout) do
|
155
155
|
frame = Qrack::Transport::Frame.parse(buffer)
|
156
156
|
end
|
157
157
|
else
|
data/lib/bunny/client09.rb
CHANGED
@@ -125,7 +125,7 @@ module Bunny
|
|
125
125
|
when channel.frame_buffer.size > 0
|
126
126
|
frame = channel.frame_buffer.shift
|
127
127
|
when (timeout = opts[:timeout]) && timeout > 0
|
128
|
-
Bunny::Timer::timeout(timeout, Qrack::
|
128
|
+
Bunny::Timer::timeout(timeout, Qrack::FrameTimeout) do
|
129
129
|
frame = Qrack::Transport09::Frame.parse(buffer)
|
130
130
|
end
|
131
131
|
else
|
data/lib/bunny/subscription08.rb
CHANGED
@@ -50,8 +50,9 @@ Passes a hash of message information to the block, if one has been supplied. The
|
|
50
50
|
:exchange
|
51
51
|
:routing_key
|
52
52
|
|
53
|
-
If the :timeout option is specified then
|
54
|
-
|
53
|
+
If the :timeout option is specified then the subscription will
|
54
|
+
automatically cease if the given number of seconds passes with no
|
55
|
+
message arriving.
|
55
56
|
|
56
57
|
==== EXAMPLES
|
57
58
|
|
data/lib/bunny/subscription09.rb
CHANGED
@@ -54,8 +54,9 @@ module Bunny
|
|
54
54
|
# :exchange
|
55
55
|
# :routing_key
|
56
56
|
#
|
57
|
-
# If the :timeout option is specified then
|
58
|
-
#
|
57
|
+
# If the :timeout option is specified then the subscription will
|
58
|
+
# automatically cease if the given number of seconds passes with no
|
59
|
+
# message arriving.
|
59
60
|
#
|
60
61
|
# @example
|
61
62
|
# my_queue.subscribe(timeout: 5) { |msg| puts msg[:payload] }
|
data/lib/bunny/version.rb
CHANGED
data/lib/qrack/client.rb
CHANGED
@@ -6,6 +6,7 @@ module Qrack
|
|
6
6
|
|
7
7
|
class ClientTimeout < Timeout::Error; end
|
8
8
|
class ConnectionTimeout < Timeout::Error; end
|
9
|
+
class FrameTimeout < Timeout::Error; end
|
9
10
|
|
10
11
|
# Client ancestor class
|
11
12
|
class Client
|
@@ -130,7 +131,7 @@ module Qrack
|
|
130
131
|
|
131
132
|
begin
|
132
133
|
frame = next_frame(:timeout => opts[:timeout] || 0.1)
|
133
|
-
rescue Qrack::
|
134
|
+
rescue Qrack::FrameTimeout
|
134
135
|
return {:header => nil, :payload => :no_return, :return_details => nil}
|
135
136
|
end
|
136
137
|
|
data/lib/qrack/subscription.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 11
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 7
|
9
|
+
- 4
|
10
|
+
version: 0.7.4
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Chris Duncan
|
@@ -14,7 +19,7 @@ autorequire:
|
|
14
19
|
bindir: bin
|
15
20
|
cert_chain: []
|
16
21
|
|
17
|
-
date: 2011-07-
|
22
|
+
date: 2011-07-30 00:00:00 +04:00
|
18
23
|
default_executable:
|
19
24
|
dependencies: []
|
20
25
|
|
@@ -102,7 +107,7 @@ has_rdoc: true
|
|
102
107
|
homepage: http://github.com/ruby-amqp/bunny
|
103
108
|
licenses: []
|
104
109
|
|
105
|
-
post_install_message: "[\e[32mVersion 0.
|
110
|
+
post_install_message: "[\e[32mVersion 0.7.3\e[0m] AMQP connection URI parser now respects port\n"
|
106
111
|
rdoc_options:
|
107
112
|
- --main
|
108
113
|
- README.rdoc
|
@@ -113,12 +118,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
118
|
requirements:
|
114
119
|
- - ">="
|
115
120
|
- !ruby/object:Gem::Version
|
121
|
+
hash: 3
|
122
|
+
segments:
|
123
|
+
- 0
|
116
124
|
version: "0"
|
117
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
126
|
none: false
|
119
127
|
requirements:
|
120
128
|
- - ">="
|
121
129
|
- !ruby/object:Gem::Version
|
130
|
+
hash: 3
|
131
|
+
segments:
|
132
|
+
- 0
|
122
133
|
version: "0"
|
123
134
|
requirements: []
|
124
135
|
|