Package: ruby-rspec / 3.5.0c3e0m0s0-1

add-vendor-ruby-to-caller-paths.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: adapt regex to determine callers to installation path on Debian
 the path of RSpec in Debian does not match /lib/rspec/core
 This was causing file_path metadata to be wrong, breaking file_path filters.
 This problem has moved from rspec-core to rspec-support with rspec 3.x.
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737734
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2015-03-24

--- a/rspec-support/lib/rspec/support/caller_filter.rb
+++ b/rspec-support/lib/rspec/support/caller_filter.rb
@@ -17,7 +17,7 @@
 
     ADDITIONAL_TOP_LEVEL_FILES = %w[ autorun ]
 
-    LIB_REGEX = %r{/lib/rspec/(#{(RSPEC_LIBS + ADDITIONAL_TOP_LEVEL_FILES).join('|')})(\.rb|/)}
+    LIB_REGEX = %r{/(lib|vendor_ruby)/rspec/(#{(RSPEC_LIBS + ADDITIONAL_TOP_LEVEL_FILES).join('|')})(\.rb|/)}
 
     # rubygems/core_ext/kernel_require.rb isn't actually part of rspec (obviously) but we want
     # it ignored when we are looking for the first meaningful line of the backtrace outside