march_hare 2.11.0-java → 2.12.0-java
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.
- checksums.yaml +4 -4
- data/lib/march_hare/channel.rb +9 -3
- data/lib/march_hare/queue.rb +2 -0
- data/lib/march_hare/session.rb +2 -2
- data/lib/march_hare/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c05bc296c2587889c7904c68663a100984d09b2
|
4
|
+
data.tar.gz: 1c785494fdb206c30bb9afe76b26b5879fb8b587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddfcc45d1edd6e04b5326e9643f1850e058ae7a59443b5b4a3d8e1d80bcd8d47d3a9c8e92792c72495b60b0f27f73c231cbc7107e9ffa5220943a0eefe504a87
|
7
|
+
data.tar.gz: 8d8932c91c39c1dfd572d46a3d1bf09d8ceb8466723a43967654cf106dfeea1ae22bc77fe64706f585b4d7f58b42feec68cc1e7fb319f2ebdc8bb7646ebed81f
|
data/lib/march_hare/channel.rb
CHANGED
@@ -415,7 +415,9 @@ module MarchHare
|
|
415
415
|
# @return RabbitMQ response
|
416
416
|
# @see http://rubymarchhare.info/articles/echanges.html Exchanges and Publishing guide
|
417
417
|
def exchange_declare(name, type, durable = false, auto_delete = false, internal = false, arguments = nil)
|
418
|
-
|
418
|
+
converting_rjc_exceptions_to_ruby do
|
419
|
+
@delegate.exchange_declare(name, type, durable, auto_delete, internal, arguments)
|
420
|
+
end
|
419
421
|
end
|
420
422
|
|
421
423
|
# Binds an exchange to another exchange using exchange.bind method (RabbitMQ extension)
|
@@ -430,7 +432,9 @@ module MarchHare
|
|
430
432
|
# @see http://rubymarchhare.info/articles/extensions.html RabbitMQ extensions guide
|
431
433
|
# @see http://rubymarchhare.info/articles/bindings.html Bindings guide
|
432
434
|
def exchange_bind(destination, source, routing_key, arguments = nil)
|
433
|
-
|
435
|
+
converting_rjc_exceptions_to_ruby do
|
436
|
+
@delegate.exchange_bind(destination, source, routing_key, arguments)
|
437
|
+
end
|
434
438
|
end
|
435
439
|
|
436
440
|
# Unbinds an exchange from another exchange using exchange.unbind method (RabbitMQ extension)
|
@@ -445,7 +449,9 @@ module MarchHare
|
|
445
449
|
# @see http://rubymarchhare.info/articles/extensions.html RabbitMQ extensions guide
|
446
450
|
# @see http://rubymarchhare.info/articles/bindings.html Bindings guide
|
447
451
|
def exchange_unbind(destination, source, routing_key, arguments = nil)
|
448
|
-
|
452
|
+
converting_rjc_exceptions_to_ruby do
|
453
|
+
@delegate.exchange_unbind(destination, source, routing_key, arguments)
|
454
|
+
end
|
449
455
|
end
|
450
456
|
|
451
457
|
# @endgroup
|
data/lib/march_hare/queue.rb
CHANGED
@@ -29,6 +29,8 @@ module MarchHare
|
|
29
29
|
# @see http://rubymarchhare.info/articles/queues.html Queues and Consumers guide
|
30
30
|
# @see http://rubymarchhare.info/articles/extensions.html RabbitMQ Extensions guide
|
31
31
|
def initialize(channel, name, options={})
|
32
|
+
raise ArgumentError, 'queue name must be a string' unless name.is_a? String
|
33
|
+
|
32
34
|
@channel = channel
|
33
35
|
@name = name
|
34
36
|
@options = {:durable => false, :exclusive => false, :auto_delete => false, :passive => false, :arguments => Hash.new}.merge(options)
|
data/lib/march_hare/session.rb
CHANGED
@@ -131,7 +131,7 @@ module MarchHare
|
|
131
131
|
@host_selection_strategy = opts[:host_selection_strategy] || @default_host_selection_strategy
|
132
132
|
|
133
133
|
@connection = if @uses_uri
|
134
|
-
self.new_uri_connection_impl(
|
134
|
+
self.new_uri_connection_impl(@uri)
|
135
135
|
else
|
136
136
|
self.new_connection_impl(@hosts, @host_selection_strategy)
|
137
137
|
end
|
@@ -251,7 +251,7 @@ module MarchHare
|
|
251
251
|
new_connection = converting_rjc_exceptions_to_ruby do
|
252
252
|
reconnecting_on_network_failures(ms) do
|
253
253
|
if @uses_uri
|
254
|
-
self.new_uri_connection_impl(
|
254
|
+
self.new_uri_connection_impl(@uri)
|
255
255
|
else
|
256
256
|
self.new_connection_impl(@hosts, @host_selection_strategy)
|
257
257
|
end
|
data/lib/march_hare/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: march_hare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Theo Hultberg
|
8
8
|
- Michael S. Klishin
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: RabbitMQ client for JRuby built around the official RabbitMQ Java client
|
15
15
|
email:
|
@@ -39,25 +39,25 @@ files:
|
|
39
39
|
homepage: http://rubymarchhare.info
|
40
40
|
licenses: []
|
41
41
|
metadata: {}
|
42
|
-
post_install_message:
|
42
|
+
post_install_message:
|
43
43
|
rdoc_options: []
|
44
44
|
require_paths:
|
45
45
|
- lib
|
46
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project: march_hare
|
58
58
|
rubygems_version: 2.4.5
|
59
|
-
signing_key:
|
59
|
+
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: RabbitMQ client for JRuby built around the official RabbitMQ Java client
|
62
62
|
test_files: []
|
63
|
-
has_rdoc:
|
63
|
+
has_rdoc:
|