carrot 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION.yml +1 -1
  2. data/carrot.gemspec +2 -2
  3. data/lib/carrot.rb +4 -0
  4. metadata +4 -4
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
- :minor: 1
3
+ :minor: 2
4
4
  :patch: 0
5
5
  :build: !!null
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "carrot"
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Amos Elliston"]
12
- s.date = "2011-10-07"
12
+ s.date = "2011-10-20"
13
13
  s.description = "A synchronous version of the ruby amqp client"
14
14
  s.email = "amos@geni.com"
15
15
  s.extra_rdoc_files = [
@@ -61,6 +61,10 @@ class Carrot
61
61
  exchanges[name] ||= AMQP::Exchange.new(self, :headers, name, opts)
62
62
  end
63
63
 
64
+ def fanout(name = 'amq.fanout', opts = {})
65
+ exchanges[name] ||= AMQP::Exchange.new(self, :fanout, name, opts)
66
+ end
67
+
64
68
  def exchanges
65
69
  @exchanges ||= {}
66
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-07 00:00:00.000000000Z
12
+ date: 2011-10-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mocha
16
- requirement: &2162063400 !ruby/object:Gem::Requirement
16
+ requirement: &2161485920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2162063400
24
+ version_requirements: *2161485920
25
25
  description: A synchronous version of the ruby amqp client
26
26
  email: amos@geni.com
27
27
  executables: []