amqp 0.9.4 → 0.9.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.
data/.gitignore CHANGED
@@ -14,3 +14,4 @@ vendor
14
14
  .yardoc/*
15
15
  doc/*
16
16
  tmp/*
17
+ bin/*
@@ -1,7 +1,7 @@
1
- # https://github.com/travis-ci/travis-ci/wiki/.travis.yml-options
1
+ language: ruby
2
2
  bundler_args: --without development
3
- script: "bundle exec rake spec:ci"
4
3
  before_script: ./bin/ci/before_build.sh
4
+ script: "bundle exec rake spec:ci"
5
5
  rvm:
6
6
  - 1.8.7
7
7
  - rbx-18mode
data/CHANGELOG CHANGED
@@ -1,4 +1,8 @@
1
- = Version 0.9.0 (not yet released)
1
+ = Version 0.9.0 to 0.9.4
2
+
3
+ * [BUG] A couple of concurrency issues (race conditions) fixed for apps that actively close and/or reuse channels
4
+ * [BUG] AMQP::Queue#initialize with :nowait => true no longer fails with NoMethodError
5
+ * [FEATURE] Automatic recovery mode now works for publishers
2
6
 
3
7
 
4
8
  = Version 0.8.1
@@ -23,8 +23,8 @@ Gem::Specification.new do |s|
23
23
 
24
24
  # Dependencies
25
25
  s.add_dependency "eventmachine"
26
- s.add_dependency "amq-client", "~> 0.9.2"
27
- s.add_dependency "amq-protocol", ">= 0.9.0"
26
+ s.add_dependency "amq-client", "~> 0.9.3"
27
+ s.add_dependency "amq-protocol", ">= 0.9.1"
28
28
 
29
29
  begin
30
30
  require "changelog"
@@ -264,6 +264,9 @@ module AMQP
264
264
  self.open do
265
265
  @channel_is_open_deferrable.succeed
266
266
 
267
+ # re-establish prefetch
268
+ self.prefetch(@options[:prefetch], false) if @options[:prefetch]
269
+
267
270
  # exchanges must be recovered first because queue recovery includes recovery of bindings. MK.
268
271
  @exchanges.each { |name, e| e.auto_recover }
269
272
  @queues.each { |name, q| q.auto_recover }
@@ -284,6 +287,9 @@ module AMQP
284
287
  self.open do
285
288
  @channel_is_open_deferrable.succeed
286
289
 
290
+ # re-establish prefetch
291
+ self.prefetch(@options[:prefetch], false) if @options[:prefetch]
292
+
287
293
  # exchanges must be recovered first because queue recovery includes recovery of bindings. MK.
288
294
  @exchanges.each { |name, e| e.auto_recover }
289
295
  @queues.each { |name, q| q.auto_recover }
@@ -6,5 +6,5 @@ module AMQP
6
6
  #
7
7
  # @see AMQ::Protocol::VERSION
8
8
  # @return [String] AMQP gem version
9
- VERSION = '0.9.4'
9
+ VERSION = '0.9.5'
10
10
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amqp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 4
10
- version: 0.9.4
9
+ - 5
10
+ version: 0.9.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aman Gupta
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-02-15 00:00:00 Z
20
+ date: 2012-06-22 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: eventmachine
@@ -41,12 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- hash: 63
44
+ hash: 61
45
45
  segments:
46
46
  - 0
47
47
  - 9
48
- - 2
49
- version: 0.9.2
48
+ - 3
49
+ version: 0.9.3
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
@@ -57,12 +57,12 @@ dependencies:
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- hash: 59
60
+ hash: 57
61
61
  segments:
62
62
  - 0
63
63
  - 9
64
- - 0
65
- version: 0.9.0
64
+ - 1
65
+ version: 0.9.1
66
66
  type: :runtime
67
67
  version_requirements: *id003
68
68
  description: Widely used, feature-rich asynchronous AMQP 0.9.1 client with batteries included.
@@ -337,7 +337,9 @@ files:
337
337
  homepage: http://github.com/ruby-amqp/amqp
338
338
  licenses: []
339
339
 
340
- post_install_message:
340
+ post_install_message: "[\e[32mVersion 0.9.0 to 0.9.4\e[0m] [BUG] A couple of concurrency issues (race conditions) fixed for apps that actively close and/or reuse channels\n\
341
+ [\e[32mVersion 0.9.0 to 0.9.4\e[0m] [BUG] AMQP::Queue#initialize with :nowait => true no longer fails with NoMethodError\n\
342
+ [\e[32mVersion 0.9.0 to 0.9.4\e[0m] [FEATURE] Automatic recovery mode now works for publishers\n"
341
343
  rdoc_options:
342
344
  - --include=examples --main README.md
343
345
  require_paths:
@@ -369,3 +371,4 @@ specification_version: 3
369
371
  summary: Widely used, feature-rich asynchronous AMQP 0.9.1 client with batteries included
370
372
  test_files: []
371
373
 
374
+ has_rdoc: