amqp 0.9.0.pre3 → 0.9.0
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/.travis.yml
CHANGED
data/amqp.gemspec
CHANGED
@@ -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.0
|
27
|
-
s.add_dependency "amq-protocol", "
|
26
|
+
s.add_dependency "amq-client", "~> 0.9.0"
|
27
|
+
s.add_dependency "amq-protocol", ">= 0.9.0"
|
28
28
|
|
29
29
|
begin
|
30
30
|
require "changelog"
|
@@ -10,12 +10,12 @@ require 'amqp'
|
|
10
10
|
|
11
11
|
puts "=> Example of automatic AMQP channel and queues recovery"
|
12
12
|
puts
|
13
|
-
AMQP.start(:host => "localhost") do |connection, open_ok|
|
13
|
+
AMQP.start(:host => ENV.fetch("BROKER_HOST", "localhost")) do |connection, open_ok|
|
14
14
|
connection.on_error do |ch, connection_close|
|
15
15
|
raise connection_close.reply_text
|
16
16
|
end
|
17
17
|
|
18
|
-
ch1 = AMQP::Channel.new(connection,
|
18
|
+
ch1 = AMQP::Channel.new(connection, :auto_recovery => true)
|
19
19
|
ch1.on_error do |ch, channel_close|
|
20
20
|
raise channel_close.reply_text
|
21
21
|
end
|
@@ -11,7 +11,8 @@ require 'amqp'
|
|
11
11
|
|
12
12
|
puts "=> Auxiliary script that tests automatically recovering message consumer(s)"
|
13
13
|
puts
|
14
|
-
AMQP.start(:host => "localhost") do |connection, open_ok|
|
14
|
+
AMQP.start(:host => ENV.fetch("BROKER_HOST", "localhost")) do |connection, open_ok|
|
15
|
+
puts "Connected to #{connection.hostname}"
|
15
16
|
connection.on_error do |ch, connection_close|
|
16
17
|
raise connection_close.reply_text
|
17
18
|
end
|
@@ -22,7 +23,7 @@ AMQP.start(:host => "localhost") do |connection, open_ok|
|
|
22
23
|
end
|
23
24
|
|
24
25
|
|
25
|
-
ch1 = AMQP::Channel.new(connection,
|
26
|
+
ch1 = AMQP::Channel.new(connection, :auto_recovery => true)
|
26
27
|
ch1.on_error do |ch, channel_close|
|
27
28
|
raise channel_close.reply_text
|
28
29
|
end
|
data/lib/amqp/channel.rb
CHANGED
@@ -265,7 +265,6 @@ module AMQP
|
|
265
265
|
@channel_is_open_deferrable.succeed
|
266
266
|
|
267
267
|
# exchanges must be recovered first because queue recovery includes recovery of bindings. MK.
|
268
|
-
@exchanges.each { |name, e| puts("Recovering ex #{name}"); e.auto_recover }
|
269
268
|
@queues.each { |name, q| q.auto_recover }
|
270
269
|
end
|
271
270
|
end # auto_recover
|
data/lib/amqp/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amqp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 59
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 3
|
12
|
-
version: 0.9.0.pre3
|
10
|
+
version: 0.9.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Aman Gupta
|
@@ -19,7 +17,7 @@ autorequire:
|
|
19
17
|
bindir: bin
|
20
18
|
cert_chain: []
|
21
19
|
|
22
|
-
date: 2012-01-
|
20
|
+
date: 2012-01-11 00:00:00 Z
|
23
21
|
dependencies:
|
24
22
|
- !ruby/object:Gem::Dependency
|
25
23
|
name: eventmachine
|
@@ -43,14 +41,12 @@ dependencies:
|
|
43
41
|
requirements:
|
44
42
|
- - ~>
|
45
43
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
44
|
+
hash: 59
|
47
45
|
segments:
|
48
46
|
- 0
|
49
47
|
- 9
|
50
48
|
- 0
|
51
|
-
|
52
|
-
- 2
|
53
|
-
version: 0.9.0.pre2
|
49
|
+
version: 0.9.0
|
54
50
|
type: :runtime
|
55
51
|
version_requirements: *id002
|
56
52
|
- !ruby/object:Gem::Dependency
|
@@ -59,14 +55,14 @@ dependencies:
|
|
59
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
60
56
|
none: false
|
61
57
|
requirements:
|
62
|
-
- -
|
58
|
+
- - ">="
|
63
59
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
60
|
+
hash: 59
|
65
61
|
segments:
|
66
62
|
- 0
|
67
|
-
-
|
68
|
-
-
|
69
|
-
version: 0.
|
63
|
+
- 9
|
64
|
+
- 0
|
65
|
+
version: 0.9.0
|
70
66
|
type: :runtime
|
71
67
|
version_requirements: *id003
|
72
68
|
description: Widely used, feature-rich asynchronous AMQP 0.9.1 client with batteries included.
|
@@ -358,14 +354,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
358
354
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
359
355
|
none: false
|
360
356
|
requirements:
|
361
|
-
- - "
|
357
|
+
- - ">="
|
362
358
|
- !ruby/object:Gem::Version
|
363
|
-
hash:
|
359
|
+
hash: 3
|
364
360
|
segments:
|
365
|
-
-
|
366
|
-
|
367
|
-
- 1
|
368
|
-
version: 1.3.1
|
361
|
+
- 0
|
362
|
+
version: "0"
|
369
363
|
requirements: []
|
370
364
|
|
371
365
|
rubyforge_project: amqp
|