concept Ruby gem in category css

appears as: Ruby gem, Ruby gems
Sass and Compass in Action

This is an excerpt from Manning's book Sass and Compass in Action.

10.6.2. Distributing an extension as a Ruby gem

Ruby gems are a sophisticated way to package and distribute code. For our purposes, one of the most useful aspects of releasing a gem is the built-in dependency management. You can require users of your extension to have specific versions of other gems like Sass and Compass. Of course, with any release you can add a README file that states the minimum supported version, but with a gem, simply installing your gem will also fetch and install the correct versions of any gems you rely on.

For some of you, using extensions installed as Ruby gems might feel unusual. Sometimes it’s helpful to be able to read the source for an extension, but with Ruby gems the source code is stored elsewhere on your computer. To help with that, Compass offers the ability to unpack an extension—or even the Compass framework itself—right into your project directory. Here’s how you do it: