Project:Ruby

The Gentoo website contains official information on the Gentoo Ruby project.

Information for users
Right now, we include six different Ruby implementations in Gentoo.


 * ruby19 - Ruby MRI 1.9
 * ruby18 - Ruby MRI 1.8 (pmasked)
 * ruby20 - Ruby MRI 2.0
 * ruby21 - Ruby MRI 2.1
 * jruby - JRuby (based on the Java Virtual Machine)
 * rbx - Rubinius (lacks active support. If you're interested, step up!)

This graph shows the current distribution of Ruby implementations in Gentoo.

You can activate these by adding RUBY_TARGETS="$implementation" to your make.conf. Please note that you might overwrite the implementations set by base profile.

You can install multiple Ruby implementations in parallel. The RUBY_TARGETS picks the implementations from USE_RUBY (which is set in the ebuild) and installs these.

The base profile currently activates Ruby MRI 1.9 and Ruby 2.0. Our recommendation is to run Ruby packages with Ruby MRI 1.9 per default. You can eselect it via:

Information for developers
To ease maintenance of Ruby-based packages we currently provide two eclasses:


 * ruby-ng.eclass
 * ruby-fakegem.eclass


 * Ruby 1.9 migration
 * Packaging RubyGems
 * Ongoing Tasks
 * Pending Bumps
 * Ruby 1.8 deprecation
 * Adding new ruby versions
 * Ruby-Overlay
 * RubyGems packages that need an update

