What Is Ruby?
Ruby is the name of a dynamic, object-oriented programming language. It is well known for the framework Ruby on Rails written in Ruby.
Installing Ruby On Windows
There is an installer available: Ruby Installer. You will find the installers for different Ruby versions via the download section. After that you will need to install devkit. That is needed in order to build/download gems.
Mac OS X / Linux
RVM – Ruby Version Manager
RVM is the Ruby Version Manager. It is a useful tool to manage several ruby versions and their respective gems. A gem is something like a library that you include in your project like our phrase gem to use our REST API. To get a sense on how it is installed check out the official RVM website.
Next if you want to use RVM in a shell – and we highly encourage you to do so – then you need to add it to your bash_profile with the following entry:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Installing Ruby On Mac OS X Or Linux
If you’re working with either Mac OS X / Linux we strongly encourage you to use RVM.
In order to use it see the section for RVM.
When you have RVM installed there are several steps to follow:
# List all currently available versions:
rvm list known
# We currently recommend a version greater than ruby-1.9.3
# you can also try the ruby-head version
rvm install ruby-1.9.3-p327-turbo
For those who did not install RVM: You can also use homebrew for this.
Note: your gems must be managed by yourself if need be. This can be a time consuming and process. However there are a great deal of sources for this topic.
To install a Ruby version with homebrew. Note that homebrew only has some of the Ruby versions in store.
brew install ruby
Installing The Phrase Gem
First you need to create a project folder or go to your current working project (For first time usage we strongly recommend some kind of testing environment where you can get familiar with the phrase gem without breaking anything)
For those using RVM: To enable RVM set the
.ruby-gemset directory for RVM and set the Ruby version in the
# current working directory into your .ruby-gemset
basename `pwd` > .ruby-gemset
# current ruby version into your .ruby-version
echo "your_downloaded_ruby_version" > .ruby-version
# If you don't know the current Ruby version, you can find it via this command:
Go out of your current directory and switch back to it so that RVM recognizes your current working directory. It will do so automatically. Your shell will tell you that it recognized your
Now install the phrase gem:
# Installs the gem
gem install phrase
# or add the gem to your Gemfile when using bundler
echo "source :rubygems"$'\n\n'"gem 'phrase'" > Gemfile
For more details on the installation and usage see the README in the Github repository.
Photo by Matthew Pearce (CC)
Be sure to subscribe and receive all updates from the PhraseApp blog straight to your inbox. You’ll receive localization best practices, about cultural aspects of breaking into new markets, guides and tutorials for optimizing software translation and other industry insights and information. Don’t miss out!