Mislav Marohnić
71a6d791c2
Merge branch 'shell-fixes'
пре 12 година
Mislav Marohnić
5ae2cac088
fix `rbenv()` function in ksh and dash
ksh syntax becomes:
function rbenv {
typeset command
`typeset` only declares a local variable if there's an explicit
`function` declaration; otherwise the variable leaks.
Other shells use this syntax:
rbenv() {
local command
This is for dash compatibility, which supports neither `function` nor
`typeset`.
references #205 , fixes #408
пре 12 година
Mislav Marohnić
31fab8cdae
cleanup in fish
Use process subtitution syntax:
. (rbenv init -|psub)
instead of:
eval (rbenv init -)
because the latter doesn't work well with newlines.
пре 12 година
Yamashita Yuu
5bfec84432
add fish shell support
пре 13 година
Jeffrey 'jf' Lim
caa4a8e228
fix rehash when paths have spaces in them
fixes #450
пре 12 година
Mislav Marohnić
bdcc2e1790
check if completion script is readable
fixes #444
пре 13 година
Ryan Bigg
749f21e482
Install a more recent version of Ruby in README instructions
пре 13 година
Aaron Stone
1cc75362d6
Clarify the search precedence for .ruby-version files.
Closes #432 [ci skip]
пре 13 година
Ryan Bigg
a2adc61c6f
Merge pull request #428 from almog/master
Homebrew homepage moved to a new location
пре 13 година
Almog Kurtser
c7208bf1ff
Homebrew homepage location changed
пре 13 година
Mislav Marohnić
8b043038b8
ensure cleaner PATH in test environment
пре 13 година
Marc Huffnagle
5130b41f5b
suggest cloning rbenv via https instead of git://
пре 13 година
James FitzGibbon
81bb14e181
bail out early if readlink is not available
readlink comes from GNU coreutils. On systems without it, rbenv used to
spin out of control when it didn't have readlink or greadlink available
because it would re-exec the frontend script over and over instead of the
worker script in libexec.
Fixes #389
пре 13 година
Mislav Marohnić
e93ab45dc3
work around bug in git 1.8.2.1 in tests
Making empty commits in tests blocked by opening the default text
editor, waiting for a message which we specified to be empty.
http://thread.gmane.org/gmane.comp.version-control.git/225529
пре 13 година
Mislav Marohnić
060f141b21
test that IFS in hooks is correct
closes #379
пре 13 година
Ian Yang
6ca591ab75
restore original IFS for hooks
пре 13 година
Mislav Marohnić
bc1049f5ae
improve `versions` tests by cd'ing into a clean slate
пре 13 година
Mislav Marohnić
05568496c1
Merge branch 'test-coverage' for MAXIMUM COVERAGE
пре 13 година
Mislav Marohnić
ab9ebb9d0d
add tests for `help` and `rbenv --version`
пре 13 година
Mislav Marohnić
ab197ef51e
add tests for version commands
пре 13 година
Mislav Marohnić
7fc5f46bbb
undo `assert_output_lines` in tests
It was a dumb idea and it wasn't even implemented perfectly.
пре 13 година
Mislav Marohnić
969af1567a
add tests for rehash, whence, which
пре 13 година
Mislav Marohnić
7a10b64cf7
better emulate `ruby -S` behavior in testing
Per https://github.com/ruby/ruby/blob/7d3db3c/ruby.c#L1383-1391
пре 13 година
Mislav Marohnić
f6db678b20
un-indent shebang for test executables
пре 13 година
Mislav Marohnić
97290b2442
simplify iterating through arglist
пре 13 година
Mislav Marohnić
b8504ed2a9
saner assertions for multiline output
пре 13 година
Alisdair Sullivan
497911d6c0
improve detection of completion support for commands
Enable JavasCript, Lua and Erlang scripts to provide completions
пре 13 година
Mislav Marohnić
4d96d0a6c6
add tests for completions
пре 13 година
Mislav Marohnić
9b58b6642e
test completions for exec
пре 13 година
Mislav Marohnić
45f651ab00
hack around the hack around bash `echo`
пре 13 година
Mislav Marohnić
400fe31061
fix exec fails for invalid version
пре 13 година
Mislav Marohnić
4b6ab0389b
add tests for exec
пре 13 година
Mislav Marohnić
baf7656d2f
fix iterating through paths that have spaces in them
Fixes #344 , #196
пре 13 година
Sam Stephenson
382db59cd0
Merge pull request #367 from shoyan/master
replace tab with spaces
пре 13 година
Shohei Yamasaki
2bbf49b2f5
replace tab with spaces
пре 13 година
Mislav Marohnić
6a6ae8ae46
tests for rbenv-init
пре 13 година
Tim Pope
03fa148e81
Don't duplicate shims in PATH
пре 13 година
Mislav Marohnić
ea3203dbab
fix resolving symlinks in rbenv-hooks
пре 13 година
Mislav Marohnić
a81ace2ccb
add hook lookup tests
пре 13 година
Mislav Marohnić
a7da06998e
use C on Travis for even less overhead
пре 13 година
Mislav Marohnić
5e5e3e0588
skip Ruby stuff on Travis
пре 13 година
Mislav Marohnić
bc369fb1ab
configure Travis
пре 13 година
Mislav Marohnić
bb6bccb782
tests galore
пре 13 година
Mislav Marohnić
1fe59e41ea
error message when rehash fails on non-writable directory
Fixes #238
пре 13 година
Tim Pope
0d1f1d09f0
Fix multiple argument completion with zsh
This changes the zsh completion to omit the final, incomplete command
line argument when invoking rbenv completions, making it consistent with
the bash completion. Since no built-in completion cares about the
argument list, this inconsistency only affected plugins.
пре 13 година
YanhaoYang
13f36e0416
rbenv(): preserve multiline output of `sh-*` commands
пре 13 година
Sam Stephenson
e3f72ebae2
Guard against exported `CDPATH` ( fixes #316 )
пре 13 година
Sam Stephenson
98f45695db
Suppress shell warnings when hashing is disabled by `set +h`
пре 13 година
Sam Stephenson
3cb95b4d2d
Add `rbenv --debug <command>` as a shortcut for setting RBENV_DEBUG=1
пре 13 година
Sam Stephenson
892aea138e
Export PS4 when RBENV_DEBUG is set for more informative debug output
пре 13 година