Live data from Hacker News

Rbenv, an unobtrusive rvm replacement

github.com

101–110 of 115 posts

Re: Rbenv, an unobtrusive rvm replacement

#101
With RVM you can change the rubygems version for an installed ruby interpreter. Is something like these possible with rbenv too? i use rubygems -v 1.3.6 for ruby-1.8.7 and rubygems -v 1.8.6 for ruby-1.9.2. I remember i had problems using rubygems 1.8.6 with ruby-1.8.7

Re: Rbenv, an unobtrusive rvm replacement

#102
post #83

Earlier quoted context omitted.

To be fair, Wayne has always said that RVM was made for production first and development second. Not sure if it is fair to say it is not production ready since it has always been geared toward just that.

It doesn't matter what Wayne has always said. He's designed a collection of fragile shell script hacks that want to be run as root that fundamentally change the behavior of key system commands.

login as regular user, download some version of ruby, compile for use as logged in user, install rvm, shazzam install any version of ruby you want - all of this only applies to the logged in user and has zero impact on the rest of the system. RVM rules :)

I no longer install ruby at a system level, not needed, only users running ruby stuff need ruby installed and never use distro ruby, creates all sorts of issues...

Re: Rbenv, an unobtrusive rvm replacement

#103
post #55

Earlier quoted context omitted.

I looked at RVM a few weeks back while trying to set up a Rails app and was so frustrated I went outside and kicked a kitty. I am glad to see a project that should restore some of my sanity. Good work.

What was so frustrating about RVM?

I've had terrible trouble with RubyMine and RVM. I'm hopeful that the PATH-based approach of rbenv might be better.

Re: Rbenv, an unobtrusive rvm replacement

#104
post #48

Looks interesting. It's always been pretty amazing to me that a system like RVM remains so popular when it depends on overriding the operation of basic commands like 'cd'.

That's the main reason I'm not using RVM. I depend on `cd` to work, every time, rock solid, especially when my system is unstable. I can't risk having a dependency or bug in their `cd` script breaking my most commonly used shell command.

Agree - this seems like an invitation to problems. Are there any known issues with it?

Re: Rbenv, an unobtrusive rvm replacement

#105
post #2

It would be somewhat cool if ruby-build knew how to look for an rbenv folder to install rubies into, or if rbenv knew how to drive ruby-build to put rubies in the right directory, but otherwise it's pretty nice.

That's a good idea... ruby-build could provide an `rbenv-install` plugin command for rbenv.

I was just about to go an do this. Has anyone else yet?

Re: Rbenv, an unobtrusive rvm replacement

#106
post #2

It would be somewhat cool if ruby-build knew how to look for an rbenv folder to install rubies into, or if rbenv knew how to drive ruby-build to put rubies in the right directory, but otherwise it's pretty nice.

That's a good idea... ruby-build could provide an `rbenv-install` plugin command for rbenv.

https://github.com/sj26/rbenv-install

Re: Rbenv, an unobtrusive rvm replacement

#108
post #98

Earlier quoted context omitted.

For that, I use Bundler and always install gems to vendor/bundle for maximum isolation and easy cleanup. :~ which bi bi: aliased to bundle install --path vendor/bundle

but does this not increase the size of your source control repository?

No, just add the directory to .gitignore.

Re: Rbenv, an unobtrusive rvm replacement

#109
post #3

Is it production ready? RVM is.

RVM is hardly development ready, imho. Every week I run into problems/confusion with the environment it creates and expects. I would never put it anywhere near production.

In 1v1 anecdotal contrast, I've never had any real issues with RVM.

Re: Rbenv, an unobtrusive rvm replacement

#110
post #101

With RVM you can change the rubygems version for an installed ruby interpreter. Is something like these possible with rbenv too? i use rubygems -v 1.3.6 for ruby-1.8.7 and rubygems -v 1.8.6 for ruby-1.9.2. I remember i had problems using rubygems 1.8.6 with ruby-1.8.7

Really damn handy feature, especially with the compatibility clusterfuck that has been rubygems > 1.3.6
Post reply on HN