parallel_rspec 2.4.1 → 2.5.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: 9ca6b67912a40f6a2dac54522280f6681c6e5fd1d636f47fcd6fd920aaaad2d3
4
- data.tar.gz: a43c0c2a4d1ff1a02449b9300e9a2cd64a883bfd3b7057dab377c254dc020e19
3
+ metadata.gz: 2f3c6e266c19722af5f9372b3d27e31976e0d4ba1edfe1b923a9a475c1932225
4
+ data.tar.gz: d971168027f0b8f775607351ceb8c590886954a8a4612b00cf731560e9d54332
5
5
  SHA512:
6
- metadata.gz: d769cace0a8065fe7b290ba947245f87b1d1fac8aa14ce91f2f6f9e7cf0b90a553c2ce1af490ef1faa7e22cf1f1ff717930325268109ba49646c8273434e4a21
7
- data.tar.gz: 8de0ae25969c87584d1e535dd0b447642ee4665593f457794a543355639146f143b836a0dee1e3a98c181ed64364f5dfad355a19a6e4b264665efeabf4e58972
6
+ metadata.gz: 89333616f3c86fb6d4009b5a8b741c454f833e95dacc057269b4def04b2ea6c34da1e2494bd185253697720d8adb5178ed78fe46f1ae9a424aa20362dc7ce42d
7
+ data.tar.gz: 7902f5bb954a23ef452edfc13cc3cdf87611359e959d8cf8b16884840de52b1e8f9d48a5ba24b5685b4bf766baa22314e2cef78923b04bb591bf4779eed2cd6c
data/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.5.0
4
+
5
+ * Update the RSpec example persistence file after each run. Thanks @bagedevimo.
6
+
7
+ ## 2.4.2
8
+
9
+ * Fix more calls to deprecated `ActiveRecord::Base.configurations[]`.
10
+
3
11
  ## 2.4.1
4
12
 
5
13
  * Exit workers promptly if asked to quit.
@@ -23,7 +31,7 @@
23
31
 
24
32
  ## 2.1.1
25
33
 
26
- * Fix deprecation warnings from ActiveRecord::Base.configurations[].
34
+ * Fix deprecation warnings from `ActiveRecord::Base.configurations[]`.
27
35
 
28
36
  ## 2.1.0
29
37
 
@@ -63,6 +63,9 @@ module ParallelRSpec
63
63
  with_context_hooks, without_context_hooks = example_groups.partition(&:any_context_hooks?)
64
64
  success = run_in_parallel(without_context_hooks, reporter)
65
65
  success &&= with_context_hooks.map { |g| g.run(reporter) }.all?
66
+
67
+ persist_example_statuses
68
+
66
69
  success ? 0 : @configuration.failure_exit_code
67
70
  end
68
71
  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.1"
2
+ VERSION = "2.5.0"
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.1
4
+ version: 2.5.0
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-12 00:00:00.000000000 Z
11
+ date: 2025-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake