bunny 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,6 @@ script: "bundle exec rspec spec"
4
4
  rvm:
5
5
  - 1.8.7
6
6
  - 1.9.2
7
- - jruby
8
7
  - ree
9
8
  - 1.8.7-p174
10
9
  notifications:
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.
@@ -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::ClientTimeout) do
154
+ Bunny::Timer::timeout(timeout, Qrack::FrameTimeout) do
155
155
  frame = Qrack::Transport::Frame.parse(buffer)
156
156
  end
157
157
  else
@@ -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::ClientTimeout) do
128
+ Bunny::Timer::timeout(timeout, Qrack::FrameTimeout) do
129
129
  frame = Qrack::Transport09::Frame.parse(buffer)
130
130
  end
131
131
  else
@@ -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 Qrack::ClientTimeout is raised if method times out
54
- waiting to receive the next message from the queue.
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
 
@@ -54,8 +54,9 @@ module Bunny
54
54
  # :exchange
55
55
  # :routing_key
56
56
  #
57
- # If the :timeout option is specified then Qrack::ClientTimeout is raised if method times out
58
- # waiting to receive the next message from the queue.
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] }
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Bunny
4
- VERSION = "0.7.3"
4
+ VERSION = "0.7.4"
5
5
  end
@@ -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::ClientTimeout
134
+ rescue Qrack::FrameTimeout
134
135
  return {:header => nil, :payload => :no_return, :return_details => nil}
135
136
  end
136
137
 
@@ -57,7 +57,7 @@ module Qrack
57
57
 
58
58
  begin
59
59
  method = client.next_method(:timeout => timeout)
60
- rescue Qrack::ClientTimeout
60
+ rescue Qrack::FrameTimeout
61
61
  queue.unsubscribe
62
62
  break
63
63
  end
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
- version: 0.7.3
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-27 00:00:00 -07:00
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.6.3\e[0m] Encoding of source files is set to UTF-8 on Ruby 1.9.\n"
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