forked from relevance/rcov
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix POSIX shell argument quoting in Rcov::RcovTask
This fixes arguments with spaces, quotes, backslashes, and other shell metacharacters, like in this example Rakefile snippet: require 'rcov/rcovtask' Rcov::RcovTask.new do |t| t.ruby_opts << '-I/path/with spaces/lib' t.rcov_opts += [ '--exclude', %q!(\A|/)(test_.*|.*_spec)\.rb\Z! ] end This would have been easier if rake provided a FileUtils#ruby method that took a list of program arguments, rather than a string that gets parsed by a shell.
- Loading branch information
Showing
1 changed file
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters