message_bus 4.3.8 → 4.4.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.
@@ -16,14 +16,8 @@ describe MessageBus::HTTPClient do
16
16
  assert_equal("200", response.code)
17
17
  end
18
18
 
19
- before do
20
- @threads = Thread.list
21
- end
22
-
23
19
  after do
24
- new_threads = Thread.list - @threads
25
20
  client.stop
26
- new_threads.each(&:join)
27
21
  end
28
22
 
29
23
  describe '#start and #stop' do
@@ -22,7 +22,7 @@ describe BACKEND_CLASS do
22
22
  if msg.data == "done"
23
23
  bus.global_unsubscribe
24
24
  else
25
- bus.publish("/response", "#{msg.data}-#{Process.pid.to_s}")
25
+ bus.publish("/response", "#{msg.data}-#{Process.pid}")
26
26
  end
27
27
  end
28
28
  ensure
data/spec/spec_helper.rb CHANGED
@@ -19,7 +19,7 @@ BACKEND_CLASS = MessageBus::BACKENDS.fetch(CURRENT_BACKEND)
19
19
  puts "Running with backend: #{CURRENT_BACKEND}"
20
20
 
21
21
  def test_only(*backends)
22
- skip "Test doesn't apply to #{CURRENT_BACKEND}" unless backends.include?(CURRENT_BACKEND)
22
+ skip "Test doesn't apply to #{CURRENT_BACKEND}" if backends.exclude?(CURRENT_BACKEND)
23
23
  end
24
24
 
25
25
  def test_never(*backends)
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.8
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
10
+ date: 2025-03-14 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rack
@@ -238,30 +237,16 @@ dependencies:
238
237
  name: rubocop-discourse
239
238
  requirement: !ruby/object:Gem::Requirement
240
239
  requirements:
241
- - - ">="
240
+ - - '='
242
241
  - !ruby/object:Gem::Version
243
- version: '0'
242
+ version: 3.8.1
244
243
  type: :development
245
244
  prerelease: false
246
245
  version_requirements: !ruby/object:Gem::Requirement
247
246
  requirements:
248
- - - ">="
249
- - !ruby/object:Gem::Version
250
- version: '0'
251
- - !ruby/object:Gem::Dependency
252
- name: rubocop-rspec
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - ">="
247
+ - - '='
256
248
  - !ruby/object:Gem::Version
257
- version: '0'
258
- type: :development
259
- prerelease: false
260
- version_requirements: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - ">="
263
- - !ruby/object:Gem::Version
264
- version: '0'
249
+ version: 3.8.1
265
250
  description: A message bus for rack
266
251
  email:
267
252
  - sam.saffron@gmail.com
@@ -355,7 +340,6 @@ homepage: https://github.com/discourse/message_bus
355
340
  licenses:
356
341
  - MIT
357
342
  metadata: {}
358
- post_install_message:
359
343
  rdoc_options: []
360
344
  require_paths:
361
345
  - lib
@@ -370,8 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
370
354
  - !ruby/object:Gem::Version
371
355
  version: '0'
372
356
  requirements: []
373
- rubygems_version: 3.1.6
374
- signing_key:
357
+ rubygems_version: 3.6.2
375
358
  specification_version: 4
376
359
  summary: ''
377
360
  test_files: []