bunny 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -26,7 +26,7 @@ Bunny is known to work with RabbitMQ version 1.5.4 and version 0-8 of the AMQP s
26
26
 
27
27
  require 'bunny'
28
28
 
29
- b = Bunny::Client.new(:logging => true)
29
+ b = Bunny.new(:logging => true)
30
30
 
31
31
  # start a communication session with the amqp server
32
32
  b.start
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{bunny}
3
- s.version = "0.3.0"
3
+ s.version = "0.3.1"
4
4
  s.authors = ["Chris Duncan"]
5
5
  s.date = %q{2009-05-10}
6
6
  s.description = %q{Another synchronous Ruby AMQP client}
@@ -10,7 +10,7 @@ $:.unshift File.dirname(__FILE__) + '/../lib'
10
10
 
11
11
  require 'bunny'
12
12
 
13
- b = Bunny::Client.new(:logging => true)
13
+ b = Bunny.new(:logging => true)
14
14
 
15
15
  # start a communication session with the amqp server
16
16
  b.start
@@ -10,7 +10,7 @@ $:.unshift File.dirname(__FILE__) + '/../lib'
10
10
 
11
11
  require 'bunny'
12
12
 
13
- b = Bunny::Client.new(:logging => true)
13
+ b = Bunny.new(:logging => true)
14
14
 
15
15
  # start a communication session with the amqp server
16
16
  b.start
@@ -27,7 +27,7 @@ $:.unshift File.dirname(__FILE__) + '/../lib'
27
27
 
28
28
  require 'bunny'
29
29
 
30
- b = Bunny::Client.new(:logging => true)
30
+ b = Bunny.new(:logging => true)
31
31
 
32
32
  # start a communication session with the amqp server
33
33
  b.start
@@ -10,7 +10,7 @@ $:.unshift File.dirname(__FILE__) + '/../lib'
10
10
 
11
11
  require 'bunny'
12
12
 
13
- b = Bunny::Client.new(:logging => true)
13
+ b = Bunny.new(:logging => true)
14
14
 
15
15
  # start a communication session with the amqp server
16
16
  b.start
@@ -12,7 +12,7 @@ $:.unshift File.dirname(__FILE__) + '/../lib'
12
12
 
13
13
  require 'bunny'
14
14
 
15
- b = Bunny::Client.new(:logging => true)
15
+ b = Bunny.new(:logging => true)
16
16
 
17
17
  # start a communication session with the amqp server
18
18
  b.start
@@ -10,7 +10,7 @@ $:.unshift File.dirname(__FILE__) + '/../lib'
10
10
 
11
11
  require 'bunny'
12
12
 
13
- b = Bunny::Client.new
13
+ b = Bunny.new
14
14
 
15
15
  # start a communication session with the amqp server
16
16
  b.start
@@ -27,12 +27,18 @@ module Bunny
27
27
  class ConnectionError < StandardError; end
28
28
  class MessageError < StandardError; end
29
29
 
30
- VERSION = '0.3.0'
30
+ VERSION = '0.3.1'
31
31
 
32
32
  # Returns the Bunny version number
33
33
 
34
34
  def self.version
35
35
  VERSION
36
36
  end
37
+
38
+ # Instantiates new Bunny::Client
39
+
40
+ def self.new(opts = {})
41
+ Bunny::Client.new(opts)
42
+ end
37
43
 
38
44
  end
@@ -11,7 +11,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib bunny]))
11
11
  describe Bunny do
12
12
 
13
13
  before(:each) do
14
- @b = Bunny::Client.new
14
+ @b = Bunny.new
15
15
  @b.start
16
16
  end
17
17
 
@@ -11,7 +11,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib bunny]))
11
11
  describe Bunny::Exchange do
12
12
 
13
13
  before(:each) do
14
- @b = Bunny::Client.new
14
+ @b = Bunny.new
15
15
  @b.start
16
16
  end
17
17
 
@@ -11,7 +11,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib bunny]))
11
11
  describe Bunny::Queue do
12
12
 
13
13
  before(:each) do
14
- @b = Bunny::Client.new
14
+ @b = Bunny.new
15
15
  @b.start
16
16
  end
17
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Duncan