flatware-rspec 2.2.1 → 2.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 839cdb0ea19be0bf3c8f59b782bb7e141d45d492148889d9d27b785d9a7fbfdd
|
4
|
+
data.tar.gz: 621fdede3eeb24fd2be0f47f3af7952ff7382bc0ce02dc178d5ab0c8cc4ddf5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2561f958b43158d7c6b1fb7354d167f699bfbd5ee99d38826b326ee6c9d4283ea97aeba115df73882689d440649098a800f0aaf742225ef10fe69f406f1c4da
|
7
|
+
data.tar.gz: 32d4b118813730723df760f97c4e687d34cfe137d0901056a51826d823306149fdefed2ab2c01a8d045bc0afaf7d30d4f1a7899eff189529b4ce5a9502ff16ec
|
data/README.md
CHANGED
@@ -40,13 +40,13 @@ $ flatware rspec
|
|
40
40
|
|
41
41
|
The rspec runner can balance worker loads, making your suite even faster.
|
42
42
|
|
43
|
-
It forms
|
43
|
+
It forms balanced groups of spec files according to their last run times, if you've set `example_status_persistence_file_path` [in your RSpec config](https://relishapp.com/rspec/rspec-core/v/3-8/docs/command-line/only-failures).
|
44
44
|
|
45
|
-
For this to work the configuration option must be loaded before any specs are run. The `.rspec` file is one way to
|
45
|
+
For this to work the configuration option must be loaded before any specs are run. The `.rspec` file is one way to achieve this:
|
46
46
|
|
47
47
|
--require spec_helper
|
48
48
|
|
49
|
-
But beware, if you're using ActiveRecord in your suite you'll need to avoid doing things that cause it to establish a database connection in `spec_helper.rb`. If ActiveRecord connects before flatware forks off workers, each will die messily. All of this will just work if you're following [the
|
49
|
+
But beware, if you're using ActiveRecord in your suite you'll need to avoid doing things that cause it to establish a database connection in `spec_helper.rb`. If ActiveRecord connects before flatware forks off workers, each will die messily. All of this will just work if you're following [the recommended pattern of splitting your helpers into `spec_helper` and `rails_helper`](https://github.com/rspec/rspec-rails/blob/v3.8.2/lib/generators/rspec/install/templates/spec/rails_helper.rb). Another option is to use [the configurable hooks](
|
50
50
|
#faster-startup-with-activerecord
|
51
51
|
).
|
52
52
|
|
@@ -6,7 +6,15 @@ module Flatware
|
|
6
6
|
module Marshalable
|
7
7
|
class SummaryNotification < ::RSpec::Core::Notifications::SummaryNotification
|
8
8
|
def +(other)
|
9
|
-
|
9
|
+
values = to_h.map do |key, value|
|
10
|
+
if %i[duration load_time].include?(key)
|
11
|
+
[value, other.public_send(key)].max
|
12
|
+
else
|
13
|
+
value + other.public_send(key)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
self.class.new(*values)
|
10
18
|
end
|
11
19
|
|
12
20
|
def failures?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flatware-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Dunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flatware
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.2
|
19
|
+
version: 2.3.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.2
|
26
|
+
version: 2.3.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|