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 +4 -4
- data/CHANGES.md +9 -1
- data/lib/parallel_rspec/runner.rb +3 -0
- data/lib/parallel_rspec/tasks.rake +7 -1
- data/lib/parallel_rspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f3c6e266c19722af5f9372b3d27e31976e0d4ba1edfe1b923a9a475c1932225
|
4
|
+
data.tar.gz: d971168027f0b8f775607351ceb8c590886954a8a4612b00cf731560e9d54332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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
|
+
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:
|
11
|
+
date: 2025-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|