parallel_rspec 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +26 -0
- data/README.md +2 -0
- data/lib/parallel_rspec/runner.rb +3 -2
- data/lib/parallel_rspec/server.rb +1 -0
- data/lib/parallel_rspec/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73b85e313868cc3fb29697f15b99911c17a6ba818c80723c05ca6cf2cb450b00
|
4
|
+
data.tar.gz: a86b018f8fe152d0bf4203f3f076eb5e08583b65bbe4dd390220869a3292fb12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa15fcdb155ba22163b604b8d2abaa7ba003e2b1c1169dd5565399b29757c714d7362626959024c26e32068fbf6974590533d0b37d7f55f7fd329d8d06755a9
|
7
|
+
data.tar.gz: 895f4135c2603f10a6e721c36d15cd0c0b9b7ba212e4f8b577fdc923030479332bcb55799bf12e78332649e6e6cecbca1946a7181416a567fffde27cfad50be4
|
data/CHANGES.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 2.1.2
|
4
|
+
|
5
|
+
* Fix error when used in projects without ActiveSupport. Thanks @erikpaasonen.
|
6
|
+
|
7
|
+
## 2.1.1
|
8
|
+
|
9
|
+
* Fix deprecation warnings from ActiveRecord::Base.configurations[].
|
10
|
+
|
11
|
+
## 2.1.0
|
12
|
+
|
13
|
+
* Add a default parallel_rspec rake task.
|
14
|
+
* Add task descriptions for rake --tasks.
|
15
|
+
|
16
|
+
## 2.0.0
|
17
|
+
|
18
|
+
* Remove an unnecessary dev dependency to pacify dependabot.
|
19
|
+
* Add after_fork hook and running? method. Thanks @mogest.
|
20
|
+
* Upgrade for compatibility with Rails 6.1 and RSpec 3.10. Thanks @mogest.
|
21
|
+
|
22
|
+
## 1.2.0
|
23
|
+
|
24
|
+
* 9924295 Make the Railtie load optional.
|
25
|
+
* 6366f07 Add require to the recommended Rakefile for people not using Rails.
|
26
|
+
* 1a5ec3d Fix rake and rspec dependencies.
|
data/README.md
CHANGED
@@ -91,6 +91,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/willbr
|
|
91
91
|
|
92
92
|
* Charles Horn (@hornc)
|
93
93
|
* Roger Nesbitt (@mogest)
|
94
|
+
* Erik Paasonen (@erikpaasonen)
|
94
95
|
|
95
96
|
|
96
97
|
## License
|
@@ -98,3 +99,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/willbr
|
|
98
99
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
99
100
|
|
100
101
|
Copyright (c) Powershop New Zealand Ltd, 2015.
|
102
|
+
Copyright (c) Will Bryant, 2023.
|
@@ -6,8 +6,8 @@ module RSpec
|
|
6
6
|
def self.any_context_hooks?
|
7
7
|
# unfortunately the public HookCollection API doesn't make this information available, so we have to grab it from internals
|
8
8
|
descendants.any? do |group| # despite the name, descendents includes self
|
9
|
-
group.hooks.send(:matching_hooks_for, :before, :context, group).
|
10
|
-
group.hooks.send(:matching_hooks_for, :after, :context, group).
|
9
|
+
group.hooks.send(:matching_hooks_for, :before, :context, group).any? ||
|
10
|
+
group.hooks.send(:matching_hooks_for, :after, :context, group).any?
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -58,6 +58,7 @@ module ParallelRSpec
|
|
58
58
|
# or the configured failure exit code (1 by default) if specs
|
59
59
|
# failed.
|
60
60
|
def run_specs(example_groups)
|
61
|
+
puts "running #{@world.example_count(example_groups)}"
|
61
62
|
@configuration.reporter.report(@world.example_count(example_groups)) do |reporter|
|
62
63
|
@configuration.with_suite_hooks do
|
63
64
|
with_context_hooks, without_context_hooks = example_groups.partition(&:any_context_hooks?)
|
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.1.
|
4
|
+
version: 2.1.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:
|
11
|
+
date: 2023-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -50,6 +50,7 @@ extra_rdoc_files: []
|
|
50
50
|
files:
|
51
51
|
- ".gitignore"
|
52
52
|
- ".travis.yml"
|
53
|
+
- CHANGES.md
|
53
54
|
- Gemfile
|
54
55
|
- LICENSE.txt
|
55
56
|
- README.md
|
@@ -87,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
88
|
- !ruby/object:Gem::Version
|
88
89
|
version: '0'
|
89
90
|
requirements: []
|
90
|
-
rubygems_version: 3.
|
91
|
+
rubygems_version: 3.3.26
|
91
92
|
signing_key:
|
92
93
|
specification_version: 4
|
93
94
|
summary: This gem lets you run your RSpec examples in parallel across across your
|