ears 0.16.0 → 0.18.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97a4067927280d2a5367f6599a7eeb1cae8992caacdf79a08851d5fd21e16412
4
- data.tar.gz: ebf13af8ab7b40d5ac0b74cc6d806859bcae47b46f2ef4c6a100de5608285b69
3
+ metadata.gz: 01c681e58c7beb764a0f2c918d5302bd2c1dfe9ef6c07781c53b7acdb1c1b4a3
4
+ data.tar.gz: 1b54b872326ae3e485ff19a0db89d826475124ce940fbab036e701bb18da26be
5
5
  SHA512:
6
- metadata.gz: fc4784e787545424493f33826ddf84741411333f58a4281e49d942323916ca5db6878ed0ca317e085fab00c7c291be249e0996fb2706e12ed4face0420a74bb0
7
- data.tar.gz: 0b7a0c22d72fd7873579e4706f02013f8e471247083d238f47abe7defd1b03d078e77f9d0d14550c33812a4552a85c66f7d8c8fbc4630fc034d85ec90f707b77
6
+ metadata.gz: c30bdf84da064e3a80cee0b9ae33aa788fe4ccf4facb1338af8a5c35563058a413141d1f8b3fe6510bba516e7c33da6c5ca6c0f1cdd2ec39307afe89c8df32a7
7
+ data.tar.gz: 7c20df1ee7fe9c483c1a9e532b74e0ca767d2818981001ef26b2b10cd49f4d1022594f4b99a4c4ba7653eb7ca0d00e38300b5400b9ba141f37cf76697b9af297
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4']
15
+ ruby-version: ['3.1', '3.2', '3.3', '3.4']
16
16
 
17
17
  steps:
18
18
  - uses: actions/checkout@v4
data/.tool-versions CHANGED
@@ -1,2 +1,2 @@
1
- ruby 3.0.7
1
+ ruby 3.1.6
2
2
  nodejs 23.6.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.0 (2025-01-20)
4
+
5
+ - Enhance Consumer#configure method to accept custom queue arguments.
6
+
7
+ ## 0.17.0 (2025-01-20)
8
+
9
+ - Drop support for ruby 3.0
10
+
3
11
  ## 0.16.0 (2025-01-08)
4
12
 
5
13
  - Enhance Consumer#configure method to accept threads option, which will be passed to Ears::Setup.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ears (0.16.0)
4
+ ears (0.18.0)
5
5
  bunny (>= 2.22.0)
6
6
  multi_json
7
7
 
@@ -119,4 +119,4 @@ DEPENDENCIES
119
119
  yard
120
120
 
121
121
  BUNDLED WITH
122
- 2.5.23
122
+ 2.6.3
data/lib/ears/consumer.rb CHANGED
@@ -41,6 +41,7 @@ module Ears
41
41
  # @option opts [Boolean] :durable_exchange (true) Whether the exchange should be durable.
42
42
  # @option opts [Symbol] :exchange_type (:topic) The type of exchange to use.
43
43
  # @option opts [Integer] :threads (1) The number of threads to use for this consumer.
44
+ # @option opts [Hash] :arguments (nil) Additional arguments for the queue.
44
45
  def self.configure(opts = {})
45
46
  self.queue = opts.fetch(:queue)
46
47
  self.exchange = opts.fetch(:exchange)
@@ -143,7 +144,8 @@ module Ears
143
144
  retry_queue: opts.fetch(:retry_queue, false),
144
145
  retry_delay: opts.fetch(:retry_delay, 5000),
145
146
  error_queue: opts.fetch(:error_queue, false),
146
- }
147
+ arguments: opts.fetch(:arguments, nil),
148
+ }.compact
147
149
  end
148
150
 
149
151
  attr_writer :queue,
data/lib/ears/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ears
2
- VERSION = '0.16.0'
2
+ VERSION = '0.18.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ears
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - InVision AG
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 3.2.33
103
+ rubygems_version: 3.3.27
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: A gem for building RabbitMQ consumers.