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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed680f830f8937cce3a3732e0a03ca62da77ff054cd23e26dcd59f54b019b51b
4
- data.tar.gz: 1042ac324987d4659bab86194dd2e4a59eeb439f7c0794c76d771c68c3a7e4ea
3
+ metadata.gz: 8fcc7527789801cfb1094fee318218a52cab5bd3b0925398bed7dac2b8deb664
4
+ data.tar.gz: 3701f56451563118b5d7f869606bea912e72b3fb278dd51a89c06a35e26b166d
5
5
  SHA512:
6
- metadata.gz: e4c3adc4d24036d2c838057ad7f25b033d39f35d0a1a7b681291b7523ef47c262a29dbbc2a28b46fa7244db2896fdf0a19560922d6f6c46a5a488069e5f4e265
7
- data.tar.gz: d97a1f0fd596dff067b8b87efb7b36a422bd99a512f47df38b1e70643b2c8df258b25c89343d1bb0ceabcb61b99602888ff7378becd526cab5892fc2bae83152
6
+ metadata.gz: 36325877c6ba0a9f01c3d445e24008056d6aee6421af09065b87e8e0e30dbf41bf953f622e99eacb41c50cc4277cae3e4f8e8a7bc4cfd85a9d09e8d3c3a88da3
7
+ data.tar.gz: 0afbd05fff935a8b1b4b2809cc97049609b87ce4a1a0bbacabb42966cbe152483f397c2bd7136a4bc3d6a45721b5ca455a8839cef401739a3c30f67ef92cf61d
@@ -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
 
@@ -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.reject! { |k, _v| RESERVED_METADATA_KEYS.include?(k) }
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
@@ -1,6 +1,6 @@
1
1
  module RSpec
2
2
  module Abq
3
3
  # current version!
4
- VERSION = "1.1.2"
4
+ VERSION = "1.1.4"
5
5
  end
6
6
  end
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.2
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.5
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.5
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.2.26
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