amqp 0.9.0.pre3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,10 +4,12 @@ script: "bundle exec rake spec:ci"
4
4
  before_script: ./bin/ci/before_build.sh
5
5
  rvm:
6
6
  - 1.8.7
7
- - rbx-2.0
7
+ - rbx-18mode
8
+ # - rbx-19mode
8
9
  - jruby
9
10
  - 1.9.2
10
11
  - 1.9.3
12
+ # - ruby-head
11
13
  gemfile:
12
14
  - Gemfile
13
15
  - gemfiles/eventmachine-pre
@@ -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.pre2"
27
- s.add_dependency "amq-protocol", "~> 0.8.4"
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, 2, :auto_recovery => true)
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, 2, :auto_recovery => true)
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
@@ -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
@@ -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.0.pre3'
9
+ VERSION = '0.9.0'
10
10
  end
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: 1923831871
5
- prerelease: 6
4
+ hash: 59
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 0
10
- - pre
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-01 00:00:00 Z
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: 1923831869
44
+ hash: 59
47
45
  segments:
48
46
  - 0
49
47
  - 9
50
48
  - 0
51
- - pre
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: 55
60
+ hash: 59
65
61
  segments:
66
62
  - 0
67
- - 8
68
- - 4
69
- version: 0.8.4
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: 25
359
+ hash: 3
364
360
  segments:
365
- - 1
366
- - 3
367
- - 1
368
- version: 1.3.1
361
+ - 0
362
+ version: "0"
369
363
  requirements: []
370
364
 
371
365
  rubyforge_project: amqp