march_hare 4.7.0-java → 4.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbcc08d76c936d48219df49aeb1e42b7495d20151ff4acea5441bb3bcd4834c0
4
- data.tar.gz: 1a49f5a57d3d118ef6d099ac35a181199afb300458a67fe8f6b47cb1e7c8e394
3
+ metadata.gz: '03239c08e22d509bfd226e24323699f22822476d5923c71a875d16619f46248b'
4
+ data.tar.gz: 0c86f507654b4d10731eaa17e0685f6eb889ea827345da8942d0deac975658f8
5
5
  SHA512:
6
- metadata.gz: 52c1ca909abfe296dc53ed64ff4da122a93bdec28ee141a190317cd5681ef9c8db2a2170fa0cfc97077012766f0cd9eefcb9318750dbe6259f89eea320217201
7
- data.tar.gz: adefc87af6121d7e7c4fdec9d49fdbeb62aaf0a4ac4247b9d86c704b83822b8714baca7bb9a5ddec79ac37c862505bd94243f4b08e21682c84265a6cbde8da26
6
+ metadata.gz: 4725594934ad2404b5debd5531a110922ef094549f6bc9a42c12adc5f3f3917de28c0a03131c0e4cd92670f6915eae091c81cddc1c14b0ee3bd2c9a96d5a7bde
7
+ data.tar.gz: fd45f33b4ff9e6a6b4d3a3ec0552af7b2eba640f09c6d6aaed572d977be499ebfcc18311046ea457957eec4958f4d3a196ef21e36dc86fdac33ddc289cfe8bf4
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -54,16 +54,23 @@ module MarchHare
54
54
 
55
55
  @channel = channel
56
56
  @name = name
57
- @options = {:durable => false, :exclusive => false, :auto_delete => false, :passive => false, :arguments => Hash.new, :type => Types::CLASSIC}.merge(options)
57
+ @options = {:durable => false, :exclusive => false, :auto_delete => false, :passive => false, :arguments => Hash.new}.merge(options)
58
+
59
+ args = @options[:arguments] || {}
60
+ @type = @options.fetch(:type, args.fetch(XArgs::QUEUE_TYPE, Types::CLASSIC)).to_s
61
+ @durable = if @type == Types::QUORUM or @type == Types::STREAM
62
+ true
63
+ else
64
+ @options[:durable]
65
+ end
58
66
 
59
- @type = @options[:type].to_s
60
- @durable = @options[:durable]
61
67
  @exclusive = @options[:exclusive]
62
68
  @server_named = @name.empty?
63
69
  @auto_delete = @options[:auto_delete]
64
70
 
65
71
  @arguments = if @type and !@type.empty? then
66
- (@options[:arguments] || {}).merge({XArgs::QUEUE_TYPE => @type})
72
+ args = @options[:arguments] || {}
73
+ {XArgs::QUEUE_TYPE => @type}.merge(args)
67
74
  else
68
75
  @options[:arguments]
69
76
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module MarchHare
4
- VERSION = "4.7.0"
4
+ VERSION = "4.9.0"
5
5
  end
data/lib/march_hare.rb CHANGED
@@ -6,6 +6,14 @@ require 'java' unless defined?(TruffleRuby)
6
6
  require 'ext/slf4j-api'
7
7
  require 'ext/slf4j-simple'
8
8
 
9
+ # Modern RabbitMQ Java client depends on Netty
10
+ require 'ext/netty-common'
11
+ require 'ext/netty-buffer'
12
+ require 'ext/netty-resolver'
13
+ require 'ext/netty-transport'
14
+ require 'ext/netty-codec-base'
15
+ require 'ext/netty-handler'
16
+
9
17
  require 'ext/rabbitmq-client'
10
18
 
11
19
  require 'march_hare/version'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: march_hare
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0
4
+ version: 4.9.0
5
5
  platform: java
6
6
  authors:
7
7
  - Theo Hultberg
8
8
  - Michael S. Klishin
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-24 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: RabbitMQ client for JRuby built around the official RabbitMQ Java client
14
14
  email:
@@ -18,6 +18,12 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
+ - lib/ext/netty-buffer.jar
22
+ - lib/ext/netty-codec-base.jar
23
+ - lib/ext/netty-common.jar
24
+ - lib/ext/netty-handler.jar
25
+ - lib/ext/netty-resolver.jar
26
+ - lib/ext/netty-transport.jar
21
27
  - lib/ext/rabbitmq-client.jar
22
28
  - lib/ext/slf4j-api.jar
23
29
  - lib/ext/slf4j-simple.jar
@@ -54,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
60
  - !ruby/object:Gem::Version
55
61
  version: '0'
56
62
  requirements: []
57
- rubygems_version: 3.6.3
63
+ rubygems_version: 4.0.16
58
64
  specification_version: 4
59
65
  summary: RabbitMQ client for JRuby built around the official RabbitMQ Java client
60
66
  test_files: []