ears 0.19.0 → 0.20.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: ffe84e09754e5329b3e82b1add44fb3222b2ac2e36c1955ad54d6ea90505df8d
4
- data.tar.gz: 2545f546c91cdc7ba3edd73e3035bcdc3253433d7dcf9d21ab7a6b1143c8722f
3
+ metadata.gz: cfbd6ab51a763dae5a9e93db48acb059af700fa88eee4b3f854e912b9f6d19be
4
+ data.tar.gz: aa328f03ba25e0e7afabdc30bfb9a2212b5072ed6a50ba10a1df9396197ada61
5
5
  SHA512:
6
- metadata.gz: 24ed423d5b49a22bbab254ebd8e46322391f9d427fa0455dc039dd50fa7eb677222cef93561f11bde207fa9832c756d4050397a0dcfbb4afcb5e103fd1c82262
7
- data.tar.gz: ffc77c61d3822b19e3e135a96983fcba0a0d61ff50b08c7a57a6e03bd5051498ac4481777e8fcccc90fc1152f4d0dc69248089e82f9ce15945be25aefd07acb9
6
+ metadata.gz: 140f6f39b0f3099eb0a00a26a0de7bbbff66335a6bad2cd71d3b8e26f1810301ff16de00675e580beb71de959b8a80d80a4a76309556e4f22019dd37effd717f
7
+ data.tar.gz: 36053b2d7203bb37e2fd527d86c69922f3cc5a4e99c7723f0b73c7f92a24b9df439baf61aaaa72209857b48bab1a17ebfbd5775633ecefaa270bb911757f28c7
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['3.1', '3.2', '3.3', '3.4']
15
+ ruby-version: ['3.2', '3.3', '3.4']
16
16
 
17
17
  steps:
18
18
  - uses: actions/checkout@v4
@@ -23,7 +23,7 @@ jobs:
23
23
  bundler-cache: true
24
24
  - uses: actions/setup-node@v4
25
25
  with:
26
- node-version: '23'
26
+ node-version: '24'
27
27
  - name: Run prettier
28
28
  run: npm ci && npm run lint
29
29
  - name: Run Rubocop
data/.rubocop.yml CHANGED
@@ -13,7 +13,7 @@ AllCops:
13
13
  - Guardfile
14
14
  - bin/*
15
15
  - tmp/**/*
16
- TargetRubyVersion: 3.0
16
+ TargetRubyVersion: 3.2
17
17
  NewCops: enable
18
18
 
19
19
  Style:
@@ -66,7 +66,7 @@ Metrics/ModuleLength:
66
66
  - 'spec/**/*.rb'
67
67
  - 'test/**/*.rb'
68
68
 
69
- require:
69
+ plugins:
70
70
  - rubocop-rspec
71
71
  - rubocop-rake
72
72
 
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2025-03-10 15:51:28 UTC using RuboCop version 1.72.2.
3
+ # on 2025-06-02 12:38:15 UTC using RuboCop version 1.75.8.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
data/.tool-versions CHANGED
@@ -1,2 +1,2 @@
1
- ruby 3.1.6
2
- nodejs 23.8.0
1
+ ruby 3.2.8
2
+ nodejs 24.1.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.0 (2025-06-02)
4
+
5
+ - Drop support for Ruby 3.1
6
+
3
7
  ## 0.19.0 (2025-03-10)
4
8
 
5
9
  - Enhance Consumer#configure method and Ears.setup_consumers to accept `prefetch` option, which will be passed to Ears::Setup.
data/Gemfile.lock CHANGED
@@ -1,48 +1,49 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ears (0.19.0)
4
+ ears (0.20.0)
5
5
  bunny (>= 2.22.0)
6
6
  multi_json
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- amq-protocol (2.3.3)
12
- ast (2.4.2)
13
- bunny (2.23.0)
14
- amq-protocol (~> 2.3, >= 2.3.1)
11
+ amq-protocol (2.3.4)
12
+ ast (2.4.3)
13
+ bunny (2.24.0)
14
+ amq-protocol (~> 2.3)
15
15
  sorted_set (~> 1, >= 1.0.2)
16
- diff-lcs (1.6.0)
16
+ diff-lcs (1.6.2)
17
17
  docile (1.4.1)
18
- json (2.10.1)
19
- language_server-protocol (3.17.0.4)
18
+ json (2.12.2)
19
+ language_server-protocol (3.17.0.5)
20
20
  lint_roller (1.1.0)
21
21
  multi_json (1.15.0)
22
- parallel (1.26.3)
23
- parser (3.3.7.1)
22
+ parallel (1.27.0)
23
+ parser (3.3.8.0)
24
24
  ast (~> 2.4.1)
25
25
  racc
26
26
  prettier_print (1.2.1)
27
+ prism (1.4.0)
27
28
  racc (1.8.1)
28
29
  rainbow (3.1.1)
29
- rake (13.2.1)
30
+ rake (13.3.0)
30
31
  rbtree (0.4.6)
31
32
  regexp_parser (2.10.0)
32
- rspec (3.13.0)
33
+ rspec (3.13.1)
33
34
  rspec-core (~> 3.13.0)
34
35
  rspec-expectations (~> 3.13.0)
35
36
  rspec-mocks (~> 3.13.0)
36
- rspec-core (3.13.3)
37
+ rspec-core (3.13.4)
37
38
  rspec-support (~> 3.13.0)
38
- rspec-expectations (3.13.3)
39
+ rspec-expectations (3.13.5)
39
40
  diff-lcs (>= 1.2.0, < 2.0)
40
41
  rspec-support (~> 3.13.0)
41
- rspec-mocks (3.13.2)
42
+ rspec-mocks (3.13.5)
42
43
  diff-lcs (>= 1.2.0, < 2.0)
43
44
  rspec-support (~> 3.13.0)
44
- rspec-support (3.13.2)
45
- rubocop (1.72.2)
45
+ rspec-support (3.13.4)
46
+ rubocop (1.75.8)
46
47
  json (~> 2.3)
47
48
  language_server-protocol (~> 3.17.0.2)
48
49
  lint_roller (~> 1.1.0)
@@ -50,19 +51,20 @@ GEM
50
51
  parser (>= 3.3.0.2)
51
52
  rainbow (>= 2.2.2, < 4.0)
52
53
  regexp_parser (>= 2.9.3, < 3.0)
53
- rubocop-ast (>= 1.38.0, < 2.0)
54
+ rubocop-ast (>= 1.44.0, < 2.0)
54
55
  ruby-progressbar (~> 1.7)
55
56
  unicode-display_width (>= 2.4.0, < 4.0)
56
- rubocop-ast (1.38.0)
57
- parser (>= 3.3.1.0)
57
+ rubocop-ast (1.44.1)
58
+ parser (>= 3.3.7.2)
59
+ prism (~> 1.4)
58
60
  rubocop-rake (0.7.1)
59
61
  lint_roller (~> 1.1)
60
62
  rubocop (>= 1.72.1)
61
- rubocop-rspec (3.5.0)
63
+ rubocop-rspec (3.6.0)
62
64
  lint_roller (~> 1.1)
63
65
  rubocop (~> 1.72, >= 1.72.1)
64
66
  ruby-progressbar (1.13.0)
65
- set (1.1.1)
67
+ set (1.1.2)
66
68
  simplecov (0.22.0)
67
69
  docile (~> 1.1)
68
70
  simplecov-html (~> 0.11)
@@ -101,35 +103,36 @@ DEPENDENCIES
101
103
  yard
102
104
 
103
105
  CHECKSUMS
104
- amq-protocol (2.3.3) sha256=85b42738290913a35dcc487a2ca0dd260a4150b40ed1954c9c1932df466abc1f
105
- ast (2.4.2) sha256=1e280232e6a33754cde542bc5ef85520b74db2aac73ec14acef453784447cc12
106
- bunny (2.23.0) sha256=b721d18b077d111ea08eeb1934a4d5f3005ca571853c05474f31d96f7b517ada
107
- diff-lcs (1.6.0) sha256=a1e7f7b272962f8fc769358ad00001b87cdcf32ba349d6c70c6b544613d2da2e
106
+ amq-protocol (2.3.4) sha256=98be5b9244e28dc66acc8351a254dbf45d996c5a0b7d49ab3ff8b72b0d2e6308
107
+ ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
108
+ bunny (2.24.0) sha256=072fe4ae98eaa9c95a17e4d166204f710bba8a9a7070b73a8c3b023f439d1682
109
+ diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
108
110
  docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
109
- ears (0.19.0)
110
- json (2.10.1) sha256=ddc88ad91a1baf3f0038c174f253af3b086d30dc74db17ca4259bbde982f94dc
111
- language_server-protocol (3.17.0.4) sha256=c484626478664fd13482d8180947c50a8590484b1258b99b7aedb3b69df89669
111
+ ears (0.20.0)
112
+ json (2.12.2) sha256=ba94a48ad265605c8fa9a50a5892f3ba6a02661aa010f638211f3cb36f44abf4
113
+ language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
112
114
  lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
113
115
  multi_json (1.15.0) sha256=1fd04138b6e4a90017e8d1b804c039031399866ff3fbabb7822aea367c78615d
114
- parallel (1.26.3) sha256=d86babb7a2b814be9f4b81587bf0b6ce2da7d45969fab24d8ae4bf2bb4d4c7ef
115
- parser (3.3.7.1) sha256=7dbe61618025519024ac72402a6677ead02099587a5538e84371b76659e6aca1
116
+ parallel (1.27.0) sha256=4ac151e1806b755fb4e2dc2332cbf0e54f2e24ba821ff2d3dcf86bf6dc4ae130
117
+ parser (3.3.8.0) sha256=2476364142b307fa5a1b1ece44f260728be23858a9c71078e956131a75453c45
116
118
  prettier_print (1.2.1) sha256=a72838b5f23facff21f90a5423cdcdda19e4271092b41f4ea7f50b83929e6ff9
119
+ prism (1.4.0) sha256=dc0e3e00e93160213dc2a65519d9002a4a1e7b962db57d444cf1a71565bb703e
117
120
  racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
118
121
  rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
119
- rake (13.2.1) sha256=46cb38dae65d7d74b6020a4ac9d48afed8eb8149c040eccf0523bec91907059d
122
+ rake (13.3.0) sha256=96f5092d786ff412c62fde76f793cc0541bd84d2eb579caa529aa8a059934493
120
123
  rbtree (0.4.6) sha256=14eea4469b24fd2472542e5f3eb105d6344c8ccf36f0b56d55fdcfeb4e0f10fc
121
124
  regexp_parser (2.10.0) sha256=cb6f0ddde88772cd64bff1dbbf68df66d376043fe2e66a9ef77fcb1b0c548c61
122
- rspec (3.13.0) sha256=d490914ac1d5a5a64a0e1400c1d54ddd2a501324d703b8cfe83f458337bab993
123
- rspec-core (3.13.3) sha256=25136507f4f9cf2e8977a2851e64e438b4331646054e345998714108745cdfe4
124
- rspec-expectations (3.13.3) sha256=0e6b5af59b900147698ea0ff80456c4f2e69cac4394fbd392fbd1ca561f66c58
125
- rspec-mocks (3.13.2) sha256=2327335def0e1665325a9b617e3af9ae20272741d80ac550336309a7c59abdef
126
- rspec-support (3.13.2) sha256=cea3a2463fd9b84b9dcc9685efd80ea701aa8f7b3decb3b3ce795ed67737dbec
127
- rubocop (1.72.2) sha256=0259a32d89fee60882bf4c4d8847e696357719c9db4971839da742bf053ae96b
128
- rubocop-ast (1.38.0) sha256=4fdf6792fe443a9a18acb12dbc8225d0d64cd1654e41fedb30e79c18edbb26ae
125
+ rspec (3.13.1) sha256=b9f9a58fa915b8d94a1d6b3195fe6dd28c4c34836a6097015142c4a9ace72140
126
+ rspec-core (3.13.4) sha256=f9da156b7b775c82610a7b580624df51a55102f8c8e4a103b98f5d7a9fa23958
127
+ rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
128
+ rspec-mocks (3.13.5) sha256=e4338a6f285ada9fe56f5893f5457783af8194f5d08884d17a87321d5195ea81
129
+ rspec-support (3.13.4) sha256=184b1814f6a968102b57df631892c7f1990a91c9a3b9e80ef892a0fc2a71a3f7
130
+ rubocop (1.75.8) sha256=c80ab4286c5dcfc49d7ad1787cdba5569b63b58c96ee7afde4ec47a9c8a85be9
131
+ rubocop-ast (1.44.1) sha256=e3cc04203b2ef04f6d6cf5f85fe6d643f442b18cc3b23e3ada0ce5b6521b8e92
129
132
  rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
130
- rubocop-rspec (3.5.0) sha256=710c942fe1af884ba8eea75cbb8bdbb051929a2208880a6fc2e2dce1eed5304c
133
+ rubocop-rspec (3.6.0) sha256=c0e4205871776727e54dee9cc91af5fd74578001551ba40e1fe1a1ab4b404479
131
134
  ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
132
- set (1.1.1) sha256=6c7ac6c06d5907216395a4d5dae3ffe52ca5ee8a372befe6d4dea794383f98f0
135
+ set (1.1.2) sha256=ca33a60d202e788041d94a5d4c12315b1639875576f1a266f3a10913646d8ef1
133
136
  simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
134
137
  simplecov-html (0.13.1) sha256=5dab0b7ee612e60e9887ad57693832fdf4695b4c0c859eaea5f95c18791ef10b
135
138
  simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
@@ -140,4 +143,4 @@ CHECKSUMS
140
143
  yard (0.9.37) sha256=a6e910399e78e613f80ba9add9ba7c394b1a935f083cccbef82903a3d2a26992
141
144
 
142
145
  BUNDLED WITH
143
- 2.6.5
146
+ 2.6.9
data/ears.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.description = 'A gem for building RabbitMQ consumers.'
11
11
  spec.homepage = 'https://github.com/ivx/ears'
12
12
  spec.license = 'MIT'
13
- spec.required_ruby_version = Gem::Requirement.new('>= 3.0.7')
13
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.2.8')
14
14
 
15
15
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
16
16
 
data/lib/ears/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ears
2
- VERSION = '0.19.0'
2
+ VERSION = '0.20.0'
3
3
  end
data/lib/ears.rb CHANGED
@@ -43,8 +43,8 @@ module Ears
43
43
  end
44
44
 
45
45
  # Used to set up your exchanges, queues and consumers. See {Ears::Setup} for implementation details.
46
- def setup(&block)
47
- Ears::Setup.new.instance_eval(&block)
46
+ def setup(&)
47
+ Ears::Setup.new.instance_eval(&)
48
48
  end
49
49
 
50
50
  # Quick setup your consumers (including exchanges and queues).
data/package-lock.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "devDependencies": {
9
9
  "@invisionag/prettier-config": "^2.1.3",
10
10
  "@prettier/plugin-ruby": "^4.0.4",
11
- "prettier": "^3.5.2"
11
+ "prettier": "^3.5.3"
12
12
  }
13
13
  },
14
14
  "node_modules/@invisionag/prettier-config": {
@@ -30,9 +30,9 @@
30
30
  }
31
31
  },
32
32
  "node_modules/prettier": {
33
- "version": "3.5.2",
34
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.2.tgz",
35
- "integrity": "sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==",
33
+ "version": "3.5.3",
34
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",
35
+ "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",
36
36
  "dev": true,
37
37
  "license": "MIT",
38
38
  "bin": {
@@ -62,9 +62,9 @@
62
62
  "requires": {}
63
63
  },
64
64
  "prettier": {
65
- "version": "3.5.2",
66
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.2.tgz",
67
- "integrity": "sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==",
65
+ "version": "3.5.3",
66
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",
67
+ "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",
68
68
  "dev": true
69
69
  }
70
70
  }
data/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "devDependencies": {
10
10
  "@invisionag/prettier-config": "^2.1.3",
11
11
  "@prettier/plugin-ruby": "^4.0.4",
12
- "prettier": "^3.5.2"
12
+ "prettier": "^3.5.3"
13
13
  },
14
14
  "prettier": "@invisionag/prettier-config/ruby"
15
15
  }
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.19.0
4
+ version: 0.20.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-03-10 00:00:00.000000000 Z
11
+ date: 2025-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -94,14 +94,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: 3.0.7
97
+ version: 3.2.8
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.3.27
104
+ rubygems_version: 3.4.19
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: A gem for building RabbitMQ consumers.