carrot 1.1.0 → 1.2.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/VERSION.yml +1 -1
- data/carrot.gemspec +2 -2
- data/lib/carrot.rb +4 -0
- metadata +4 -4
data/VERSION.yml
CHANGED
data/carrot.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "carrot"
|
8
|
-
s.version = "1.
|
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-
|
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 = [
|
data/lib/carrot.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2011-10-20 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mocha
|
16
|
-
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: *
|
24
|
+
version_requirements: *2161485920
|
25
25
|
description: A synchronous version of the ruby amqp client
|
26
26
|
email: amos@geni.com
|
27
27
|
executables: []
|