[DRE-commits] [ruby-rspec] 23/25: patch to cope with the fact that libs aren't under lib/ subdir

Cédric Boutillier boutil at moszumanska.debian.org
Sat Mar 28 20:34:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch no_submodules
in repository ruby-rspec.

commit 0b268460dc9be808efccf26005c7b819dee6e6e0
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Mar 28 21:27:35 2015 +0100

    patch to cope with the fact that libs aren't under lib/ subdir
---
 debian/patches/caller_filter_spec_for_debian.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debian/patches/caller_filter_spec_for_debian.patch b/debian/patches/caller_filter_spec_for_debian.patch
new file mode 100644
index 0000000..843f5d3
--- /dev/null
+++ b/debian/patches/caller_filter_spec_for_debian.patch
@@ -0,0 +1,11 @@
+--- a/rspec-support/spec/rspec/support/caller_filter_spec.rb
++++ b/rspec-support/spec/rspec/support/caller_filter_spec.rb
+@@ -15,7 +15,7 @@
+     describe "the filtering regex" do
+       def ruby_files_in_lib(lib)
+         # http://rubular.com/r/HYpUMftlG2
+-        path = $LOAD_PATH.find { |p| p.match(/\/rspec-#{lib}(-[a-f0-9]+)?\/lib/) }
++        path = $LOAD_PATH.find { |p| p.match(/vendor_ruby/) }
+ 
+         Dir["#{path}/**/*.rb"].sort.tap do |files|
+           # Just a sanity check...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rspec.git



More information about the Pkg-ruby-extras-commits mailing list