parallel_rspec 2.4.0 → 2.4.2

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: 6a72d4e48cb7e1973a00e66c2fcae145cbe17c238ed051666856365716f1cd67
4
- data.tar.gz: e4b27f1a20a0e3d329fb146592af425aa0f5887cd18fe71784c8f432e62993ad
3
+ metadata.gz: 1ff66f78e121832aa63d701f6ccdbad7f0e76747920fdb570a0dac970f5751d6
4
+ data.tar.gz: 78f43be514c147aee8da49aa1daf96d5c4696c98a04fa077c771c11d371e3a95
5
5
  SHA512:
6
- metadata.gz: 12770663bed8e75c5cd24743a177ac3ba01b3d07165dce4ef2e921219dd4a2dc62eaa013c12ffd43d0f7f2565484b0b33330249a1b46ea4e4e6d046518f5b469
7
- data.tar.gz: e15b6a238cbf5249472eaca4fbd52073ea001f7f01ca8a41be1732cea1aa529d3c3159d5dcef22353d25815d0ea814e100785ad977fd1f2862f904dda47e2273
6
+ metadata.gz: ff8609608db21a3f68ee998eb2d049852a4b38237b655b6cf7654f5cc9d2c0d45169485dd56c9f5db8df45e0461b8f6f7f8e7d42b2e12514ca66a4a451d4be7e
7
+ data.tar.gz: 6c99ff616b0c5b3d56bbf53469802e04c897beb18bb9f7f04a4a44de91fd863648ecddfb2e4d36046655611cb98931db5c601c2dcba4a55d58cb85b636024b50
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.4.2
4
+
5
+ * Fix more calls to deprecated `ActiveRecord::Base.configurations[]`.
6
+
7
+ ## 2.4.1
8
+
9
+ * Exit workers promptly if asked to quit.
10
+
3
11
  ## 2.4.0
4
12
 
5
13
  * Wrap Exception objects so they can always be dumped and loaded, even if they contain non-marshallable objects such as Procs or anonymous classes.
@@ -19,7 +27,7 @@
19
27
 
20
28
  ## 2.1.1
21
29
 
22
- * Fix deprecation warnings from ActiveRecord::Base.configurations[].
30
+ * Fix deprecation warnings from `ActiveRecord::Base.configurations[]`.
23
31
 
24
32
  ## 2.1.0
25
33
 
@@ -85,6 +85,7 @@ module ParallelRSpec
85
85
  end
86
86
 
87
87
  def next_example_to_run
88
+ return nil if RSpec.world.wants_to_quit
88
89
  channel_to_server.write([:next_example_to_run])
89
90
  channel_to_server.read
90
91
  end
@@ -40,7 +40,13 @@ db_namespace = namespace :db do
40
40
  end
41
41
  ensure
42
42
  if should_reconnect
43
- ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
43
+ if ActiveRecord::Base.configurations.respond_to?(:configs_for)
44
+ ActiveRecord::Base.configurations.configs_for(env_name: 'test').each do |configuration|
45
+ ActiveRecord::Base.establish_connection(configuration)
46
+ end
47
+ else
48
+ ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
49
+ end
44
50
  end
45
51
  end
46
52
  end
@@ -1,3 +1,3 @@
1
1
  module ParallelRSpec
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Bryant, Powershop New Zealand Ltd
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-07 00:00:00.000000000 Z
11
+ date: 2025-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake