senny/rbenv.el — pull request #8 by shosti (2014-01-07 18:29:01+00:00)
Title: Use default-directory instead of buffer-file-name

`buffer-file-name` doesn't work for non-file buffers, so `rbenv-use-corresponding` currently doesn't work for shell buffers and whatnot. I think `default-directory` is better in any case--when you use `rbenv-use-corresponding`, it makes sense for it to act on the current directory (like the original rbenv script).