amqp 0.8.2 → 0.8.3

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # About Ruby amqp gem #
2
2
 
3
3
  Ruby amqp gem is a widely used, feature-rich, well-maintained asynchronous AMQP 0.9.1 client with batteries included.
4
- This library works with Ruby 1.8.7 (*except for p249*, see the FAQ), Ruby 1.9.2, Ruby 1.9.3-preview1, [JRuby](http://jruby.org), [Rubinius](http://rubini.us) as well as [REE](http://www.rubyenterpriseedition.com), and is licensed under the [Ruby License](http://www.ruby-lang.org/en/LICENSE.txt)
4
+ This library works with Ruby 1.8.7 (*except for p249*, see the FAQ), Ruby 1.9.2, Ruby 1.9.3, [JRuby](http://jruby.org), [Rubinius](http://rubini.us) as well as [REE](http://www.rubyenterpriseedition.com), and is licensed under the [Ruby License](http://www.ruby-lang.org/en/LICENSE.txt)
5
5
 
6
6
  0.8.0.RCs and later versions of amqp gem implement [AMQP 0.9.1](http://bit.ly/amqp-model-explained) (see also [AMQP 0.9.1 spec document](http://bit.ly/hw2ELX)) and support [RabbitMQ extensions to AMQP 0.9.1](http://www.rabbitmq.com/extensions.html).
7
7
 
@@ -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.8.5"
27
- s.add_dependency "amq-protocol", "~> 0.8.3"
26
+ s.add_dependency "amq-client", "~> 0.8.6"
27
+ s.add_dependency "amq-protocol", "~> 0.8.4"
28
28
 
29
29
  begin
30
30
  require "changelog"
@@ -60,6 +60,7 @@ This guide assumes that you have installed one of the following supported Ruby i
60
60
 
61
61
  * Ruby v1.8.7
62
62
  * Ruby v1.9.2
63
+ * Ruby v1.9.3
63
64
  * JRuby (we recommend v1.6)
64
65
  * Rubinius v1.2 or higher
65
66
  * Ruby Enterprise Edition
@@ -4,12 +4,18 @@ module AMQP
4
4
  module Integration
5
5
  class Rails
6
6
 
7
- def self.start(options = {}, &block)
7
+ def self.start(options_or_uri = {}, &block)
8
8
  yaml = YAML.load_file(File.join(::Rails.root, "config", "amqp.yml"))
9
9
  settings = yaml.fetch(::Rails.env, Hash.new).symbolize_keys
10
10
 
11
+ arg = if options_or_uri.is_a?(Hash)
12
+ settings.merge(options_or_uri)[:uri]
13
+ else
14
+ settings[:uri] || options_or_uri
15
+ end
16
+
11
17
  EventMachine.next_tick do
12
- AMQP.start(settings.merge(options), &block)
18
+ AMQP.start(arg, &block)
13
19
  end
14
20
  end
15
21
  end # Rails
@@ -6,5 +6,5 @@ module AMQP
6
6
  #
7
7
  # @see AMQ::Protocol::VERSION
8
8
  # @return [String] AMQP gem version
9
- VERSION = '0.8.2'
9
+ VERSION = '0.8.3'
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: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 2
10
- version: 0.8.2
9
+ - 3
10
+ version: 0.8.3
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: 2011-10-28 00:00:00 Z
20
+ date: 2011-11-09 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: 53
44
+ hash: 51
45
45
  segments:
46
46
  - 0
47
47
  - 8
48
- - 5
49
- version: 0.8.5
48
+ - 6
49
+ version: 0.8.6
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: 57
60
+ hash: 55
61
61
  segments:
62
62
  - 0
63
63
  - 8
64
- - 3
65
- version: 0.8.3
64
+ - 4
65
+ version: 0.8.4
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.