Rbenv
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
803
On Slideshare
803
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Ruby Environment: An Excellent RVM AlternativeThere are two commonly used tools formanaging multiple versions of Ruby installedon one computer:● Ruby Version Manager (RVM)● Ruby Environment (rbenv)
  • 2. RVM: More Features● RVM is by far the most popular and is somewhat easier to get started with, since nearly all the tutorials are written for it.● It has many powerful, advanced features. – Gemsets – Install/uninstall Rubies
  • 3. RVM Does Many Things● RVM has many features, some of which makes some significant changes to your shell.● Some of those changes alarmed a few members of the Ruby community, particularly the overriding of the cd command. This was one of the reasons why rbenv was created.
  • 4. Ruby Version Management in Rbenv
  • 5. Rbenv: Do One Thing; Do it Well● Rbenv only manages multiple rubies installed on your machine.● You may either install rubies manually or use a separate tool called ruby-build.
  • 6. Which Should I Use?● As long as RVM is maintained and you need Gemsets, RVM is probably the better choice.● If you prefer the Unix philosophy that each tool should do one thing and do it well, you will probably prefer rbenv.● Rbenv may outlive RVM in the long run. – Its easier to maintain single-purpose projects
  • 7. Additional Considerations● A quirk of rbenv is that if you install a gem that includes binaries (or any generally available command line scripts), you need to run `rbenv rehash`, or your newly installed gems/command line scripts wont work. – This can be annoying.● Rbenv does not support Gemsets (although you can use rbenv-gemset to get some basic gemset-like features). – If you need Gemsets, RVM is best.
  • 8. Tell Me More● Github rbenv home: https://github.com/sstephenson/rbenv● RVM: https://rvm.io/● A nice intro to rbenv: http://www.rubyinside.com/rbenv-a-simple-new