postmodern / chruby

Changes the current Ruby
MIT License
2.86k stars 190 forks source link

Ignore line endings when reading .ruby-version. #311

Closed pnelson closed 9 years ago

pnelson commented 9 years ago

I ran into an issue where auto switching was working everywhere except in and old project. Eventually I realized that the .ruby-version file was saved with Windows line endings a long time ago. I saved the file with Unix line endings and then everything worked as expected. Kind of related to #222.

postmodern commented 9 years ago

In 9a7f61a27b753021dc0b995ff69b08c4e075b739 I added a string substitution to remove tailing [[:space:]].

postmodern commented 9 years ago

@pnelson ping, did chruby HEAD fix the issue?

pnelson commented 9 years ago

My apologies for the delay. This fixed my issue. Thanks a lot.