ci-queue 0.20.2 → 0.20.3

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: 8102503b55cb4135eeb185d6e7e2aa222c2ce3f0c94fb6292d349ac994c7cfa9
4
- data.tar.gz: 77295aa7996d840c209019c108c4ededcbdbff3d62918b7e727319ad02f16e34
3
+ metadata.gz: 2b0f70673064409db5c248591e848c34ab9b7c0589e32c5b58afd9fa8158c3db
4
+ data.tar.gz: 8ce4e145bf3f1f8aeefbc65b3285b9ef4afe8c5a9c8e85cc0f76f7e6dc2328d9
5
5
  SHA512:
6
- metadata.gz: d0f60b68573a8f61ef047caaeb85cd76be62051a2f953004aa89b12679eed9558af83545f49f8da4293bfc88526ea11f61bddfcbfc4a70e28d5c706418696665
7
- data.tar.gz: e8ac8d7f4bd819615d58a3325817599d33878409c8104a0f2594c81fd0ddf4b77b1851a524a6851b9462f9b61f6c5d5cc38a44e0e6cd03a6f78acef1264879ea
6
+ metadata.gz: 311781ec8d1deceea04cbf06158a75f3709691b650a871a840d01b8da6b8eed6eb2b81eb3c4730a74d9b5379ed920f857d85b2a60670eeb88180130fe742143c
7
+ data.tar.gz: 1cae08e57207513dec893fd1d0e80426270a2119b93460c58f10a5946aad202480b1736f2d7e13637db30fb004a58624368676cb040f79c8df5f5d49001ae180
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.20.2'
5
+ VERSION = '0.20.3'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
@@ -96,13 +96,16 @@ module Minitest
96
96
  message.lines.first.chomp.gsub(/\e\[[^m]+m/, '')
97
97
  end
98
98
 
99
+ def project_root_path_matcher
100
+ @project_root_path_matcher ||= %r{(?<=\s)#{Regexp.escape(Minitest::Queue.project_root)}/}
101
+ end
102
+
99
103
  def message_for(test)
100
104
  suite = test.klass
101
105
  name = test.name
102
106
  error = test.failure
103
107
 
104
- message_with_relative_paths = error.message.gsub("#{Minitest::Queue.project_root}/", '')
105
-
108
+ message_with_relative_paths = error.message.gsub(project_root_path_matcher, '')
106
109
  if test.passed?
107
110
  nil
108
111
  elsif test.skipped?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.2
4
+ version: 0.20.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-13 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler