rbenv-ruby-build/test
Mislav Marohnić c76cde673e Make --patch compatible with git diff patches
Filenames in git diff patches are prefixed by default by "a/" (source)
and "b/" destination. Such patches don't work with ruby-builds `--patch`
option since it internally uses `patch -p0`.

Prior workarounds were to use either an intermediate step:

    filterdiff --strip=1

or to generate the patch without the prefix in the first place:

    git diff --no-prefix ...

Now, git diff patches are detected by searching for this pattern:

    diff --git a/...

And `patch -p1` is used by default in such cases to strip the 1st
component of filename paths.

Fixes #521, closes #484
2014-04-21 16:01:06 +02:00
..
fixtures Update libyaml to 0.1.6 2014-03-26 21:17:10 +01:00
stubs Fix stubbing programs that have dashes in them 2014-01-05 18:58:57 +01:00
tmp Ensure test/tmp directory exists 2012-11-19 19:25:52 -06:00
build.bats Make --patch compatible with git diff patches 2014-04-21 16:01:06 +02:00
cache.bats Fix re-downloading tarball when destination file already exists 2014-03-25 03:21:27 +01:00
checksum.bats Avoid re-downloading if there's a valid tarball in build location 2014-03-25 04:15:50 +01:00
fetch.bats Clearer error message when HTTP download fails 2013-10-26 06:32:03 +02:00
hooks.bats Add tests for rbenv install/uninstall hooks 2014-01-05 18:59:23 +01:00
installer.bats Test that files in share/ get installed w/ mode 644 2014-01-23 14:08:47 +01:00
mirror.bats Fix re-downloading tarball when destination file already exists 2014-03-25 03:21:27 +01:00
test_helper.bash Prefer ggrep for grep invocations that use GNU extensions. 2014-04-18 10:51:26 +10:00