Skip to content

Ruby

At d-centralize Ruby is not used as a programming language. however, there are some handy tools written in Ruby.

Setup

Ruby can be installed using:

Terminal window
sudo apt-get install ruby

Ruby packages (gems) are installed in $HOME/.gem/ruby/<ruby_version>. The binaries live in the bin subdirectory of that folder.

To use installed tools, simply add the following to your .bashrc:

Terminal window
if [ -d "$HOME/.gem/ruby" ]; then
for f in $HOME/.gem/ruby/**; do
export PATH=$f/bin:$PATH
done
fi

Installing tools

Tools can be installed using gem.

Terminal window
gem install --user fastlane sass