Skip to content

Latest commit

 

History

History

ruby

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Oh My Laptop Ruby

This is part of oh-my-laptop.

Packages

rbenv

Ruby is an actively evolving language. Often you need to support multiple versions of ruby with your code base. So you need tools to install, and switch between multiple versions of ruby. RVM is one of the most famous ruby version manager tools, however, IMHO, it’s just too bloated. I prefer rbenv for now. Of course there’re other choices, however, rbenv has various plugins, which will make your life much more easier.

ruby-build

ruby-build is one of the most important plugins of rbenv, actually, you can consider it as a sister project of rbenv. Just as its name, it helps to install ruby. Please do read its wiki to ensure your have necessary packages installed before you do your ruby-build.

rbenv-gem-rehash

rbenv-gem-rehash automatically run rbenv rehash everytime you install or uninstall a gem.

rbenv-default-gems

rbenv-default-gems hooks into the rbenv install command to automatically install gems listed in the ~/.rbenv/default-gems file every time you install a new version of Ruby.

bundler

Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.

Bundler is an exit from dependency hell, and ensures that the gems you need are present in development, staging, and production. Starting work on a project is as simple as bundle install.

http://bundler.io/

oh-my-laptop provides two aliases for bundler:

alias b="bundle "
alias be="bundle exec "

pry

Pry is a powerful alternative to the standard IRB shell for Ruby. Just consider it as ipython in Ruby world.

pry-doc

pry-doc is a plugin for pry, which provides extended documentation support for pry.

pry-doc extends two core pry commands: show-doc and show-source (aliased as ? and $, respectively). With the help of pry-doc, you can check the MRI C code for ruby core statements, etc.

rbenv-each

rbenv-each is a rbenv plugin which can run a command across all installed rubies.

rbenv-vars

rbenv-vars is aq rbenv plugin that safely sets global and per-project environment variables

Reference