rspec-abq 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/abq/formatter.rb +2 -2
- data/lib/rspec/abq/manifest.rb +2 -1
- data/lib/rspec/abq/version.rb +1 -1
- data/lib/rspec/abq.rb +4 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fcc7527789801cfb1094fee318218a52cab5bd3b0925398bed7dac2b8deb664
|
4
|
+
data.tar.gz: 3701f56451563118b5d7f869606bea912e72b3fb278dd51a89c06a35e26b166d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36325877c6ba0a9f01c3d445e24008056d6aee6421af09065b87e8e0e30dbf41bf953f622e99eacb41c50cc4277cae3e4f8e8a7bc4cfd85a9d09e8d3c3a88da3
|
7
|
+
data.tar.gz: 0afbd05fff935a8b1b4b2809cc97049609b87ce4a1a0bbacabb42966cbe152483f397c2bd7136a4bc3d6a45721b5ca455a8839cef401739a3c30f67ef92cf61d
|
data/lib/rspec/abq/formatter.rb
CHANGED
@@ -44,8 +44,8 @@ module RSpec
|
|
44
44
|
file: example.metadata[:file_path],
|
45
45
|
line: example.metadata[:line_number]
|
46
46
|
},
|
47
|
-
started_at: execution_result.started_at.utc.iso8601,
|
48
|
-
finished_at: execution_result.finished_at.utc.iso8601,
|
47
|
+
started_at: execution_result.started_at.utc.iso8601(6), # anything higher-prescision just yielded 0s
|
48
|
+
finished_at: execution_result.finished_at.utc.iso8601(6),
|
49
49
|
lineage: RSpec::Core::Metadata.ascend(example.metadata).map { |meta| meta[:description] }.reverse
|
50
50
|
}
|
51
51
|
|
data/lib/rspec/abq/manifest.rb
CHANGED
@@ -27,7 +27,8 @@ module RSpec
|
|
27
27
|
# @!visibility private
|
28
28
|
def self.extract_metadata_and_tags(metadata)
|
29
29
|
# we use `.dup.reject! because `.reject` raises a warning (because it doesn't dup procs)`
|
30
|
-
user_metadata = metadata.dup
|
30
|
+
user_metadata = metadata.dup
|
31
|
+
user_metadata.reject! { |k, _v| RESERVED_METADATA_KEYS.include?(k) }
|
31
32
|
tags_array, metadata_array = user_metadata.partition { |_k, v| v == true }
|
32
33
|
[tags_array.map(&:first), metadata_array.to_h]
|
33
34
|
end
|
data/lib/rspec/abq/version.rb
CHANGED
data/lib/rspec/abq.rb
CHANGED
@@ -201,6 +201,10 @@ module RSpec
|
|
201
201
|
RSpec.configuration.color = true
|
202
202
|
end
|
203
203
|
|
204
|
+
# RSpec only adds a default formatter if there are no formatters.
|
205
|
+
# Abq::Formatter is used for internal communication over the ABQ protocol, not for $stdout.
|
206
|
+
RSpec.configuration.add_formatter(RSpec.configuration.default_formatter) if RSpec.configuration.formatters.empty?
|
207
|
+
|
204
208
|
RSpec.configuration.add_formatter(RSpec::Abq::Formatter)
|
205
209
|
|
206
210
|
# the first message is the init_meta block of the manifest. This is used to share runtime configuration
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-abq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ayaz Hafiz
|
@@ -121,14 +121,14 @@ dependencies:
|
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 2.2.
|
124
|
+
version: 2.2.6.4
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.2.
|
131
|
+
version: 2.2.6.4
|
132
132
|
- !ruby/object:Gem::Dependency
|
133
133
|
name: puma
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
rubygems_version: 3.
|
218
|
+
rubygems_version: 3.3.7
|
219
219
|
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: RSpec::Abq allows for parallel rspec runs using abq
|