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.
@@ -13,7 +13,7 @@ module HotBunnies
13
13
  end
14
14
 
15
15
  def default_exchange
16
- self.exchange("", :durable => true, :auto_delete => false)
16
+ self.exchange("", :durable => true, :auto_delete => false, :type => "direct")
17
17
  end
18
18
 
19
19
  def qos(options={})
@@ -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 @name == ''
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])
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module HotBunnies
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
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.0
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.2.1
6
6
  platform: java
7
- authors:
8
- - Theo Hultberg
9
- - Michael S. Klishin
10
- autorequire:
7
+ authors:
8
+ - Theo Hultberg
9
+ - Michael S. Klishin
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-10-04 00:00:00 +04:00
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
- - theo@burtcorp.com
17
+ email:
18
+ - theo@burtcorp.com
21
19
  executables: []
22
-
23
20
  extensions: []
24
-
25
21
  extra_rdoc_files: []
26
-
27
- files:
28
- - .gitignore
29
- - .rvmrc
30
- - .travis.yml
31
- - Gemfile
32
- - LICENSE
33
- - README.md
34
- - Rakefile
35
- - examples/blocking_subscription.rb
36
- - examples/non_blocking_subscription.rb
37
- - examples/non_blocking_subscription_with_executor.rb
38
- - hot_bunnies.gemspec
39
- - lib/ext/commons-io.jar
40
- - lib/ext/rabbitmq-client.jar
41
- - lib/hot_bunnies.rb
42
- - lib/hot_bunnies/channel.rb
43
- - lib/hot_bunnies/exchange.rb
44
- - lib/hot_bunnies/queue.rb
45
- - lib/hot_bunnies/version.rb
46
- - spec/integration/alternate_exchanges_spec.rb
47
- - spec/integration/exchange_bind_spec.rb
48
- - spec/integration/exchange_declare_spec.rb
49
- - spec/integration/publisher_confirmations_spec.rb
50
- - spec/integration/queue_bind_spec.rb
51
- - spec/integration/queue_declare_spec.rb
52
- - spec/integration/queue_delete_spec.rb
53
- - spec/integration/queue_purge_spec.rb
54
- - spec/integration/queue_unbind_spec.rb
55
- - spec/integration/sender_selected_distribution_spec.rb
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
- require_paths:
65
- - lib
66
- required_ruby_version: !ruby/object:Gem::Requirement
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
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- version: "0"
72
- required_rubygems_version: !ruby/object:Gem::Requirement
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
+ ...