hot_bunnies 1.2.0-java → 1.2.1-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hot_bunnies/channel.rb +1 -1
- data/lib/hot_bunnies/exchange.rb +5 -1
- data/lib/hot_bunnies/version.rb +1 -1
- metadata +57 -65
data/lib/hot_bunnies/channel.rb
CHANGED
data/lib/hot_bunnies/exchange.rb
CHANGED
@@ -24,8 +24,12 @@ module HotBunnies
|
|
24
24
|
@channel.exchange_bind(@name, exchange_name, options.fetch(:routing_key, ''))
|
25
25
|
end
|
26
26
|
|
27
|
+
def predefined?
|
28
|
+
(@name == "") || (@name =~ /^amq\.(.+)/)
|
29
|
+
end # predefined?
|
30
|
+
|
27
31
|
def declare!
|
28
|
-
unless
|
32
|
+
unless predefined?
|
29
33
|
if @options[:passive]
|
30
34
|
then @channel.exchange_declare_passive(@name)
|
31
35
|
else @channel.exchange_declare(@name, @options[:type].to_s, @options[:durable], @options[:auto_delete], @options[:internal], @options[:arguments])
|
data/lib/hot_bunnies/version.rb
CHANGED
metadata
CHANGED
@@ -1,86 +1,78 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hot_bunnies
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 1.2.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 1.2.1
|
6
6
|
platform: java
|
7
|
-
authors:
|
8
|
-
|
9
|
-
|
10
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Theo Hultberg
|
9
|
+
- Michael S. Klishin
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
default_executable:
|
13
|
+
date: 2011-10-10 00:00:00.000000000 +04:00
|
14
|
+
default_executable:
|
16
15
|
dependencies: []
|
17
|
-
|
18
16
|
description: A object oriented interface to RabbitMQ that uses the Java driver under the hood
|
19
|
-
email:
|
20
|
-
|
17
|
+
email:
|
18
|
+
- theo@burtcorp.com
|
21
19
|
executables: []
|
22
|
-
|
23
20
|
extensions: []
|
24
|
-
|
25
21
|
extra_rdoc_files: []
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
- spec/spec_helper.rb
|
22
|
+
files:
|
23
|
+
- .gitignore
|
24
|
+
- .rvmrc
|
25
|
+
- .travis.yml
|
26
|
+
- Gemfile
|
27
|
+
- LICENSE
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- examples/blocking_subscription.rb
|
31
|
+
- examples/non_blocking_subscription.rb
|
32
|
+
- examples/non_blocking_subscription_with_executor.rb
|
33
|
+
- hot_bunnies.gemspec
|
34
|
+
- lib/ext/commons-io.jar
|
35
|
+
- lib/ext/rabbitmq-client.jar
|
36
|
+
- lib/hot_bunnies.rb
|
37
|
+
- lib/hot_bunnies/channel.rb
|
38
|
+
- lib/hot_bunnies/exchange.rb
|
39
|
+
- lib/hot_bunnies/queue.rb
|
40
|
+
- lib/hot_bunnies/version.rb
|
41
|
+
- spec/integration/alternate_exchanges_spec.rb
|
42
|
+
- spec/integration/exchange_bind_spec.rb
|
43
|
+
- spec/integration/exchange_declare_spec.rb
|
44
|
+
- spec/integration/publisher_confirmations_spec.rb
|
45
|
+
- spec/integration/queue_bind_spec.rb
|
46
|
+
- spec/integration/queue_declare_spec.rb
|
47
|
+
- spec/integration/queue_delete_spec.rb
|
48
|
+
- spec/integration/queue_purge_spec.rb
|
49
|
+
- spec/integration/queue_unbind_spec.rb
|
50
|
+
- spec/integration/sender_selected_distribution_spec.rb
|
51
|
+
- spec/spec_helper.rb
|
57
52
|
has_rdoc: true
|
58
53
|
homepage: http://github.com/iconara/hot_bunnies
|
59
54
|
licenses: []
|
60
|
-
|
61
|
-
post_install_message:
|
55
|
+
post_install_message:
|
62
56
|
rdoc_options: []
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
67
64
|
none: false
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
73
70
|
none: false
|
74
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: "0"
|
78
71
|
requirements: []
|
79
|
-
|
80
72
|
rubyforge_project: hot_bunnies
|
81
73
|
rubygems_version: 1.5.1
|
82
|
-
signing_key:
|
74
|
+
signing_key:
|
83
75
|
specification_version: 3
|
84
76
|
summary: Ruby wrapper for the RabbitMQ Java driver
|
85
77
|
test_files: []
|
86
|
-
|
78
|
+
...
|