Chapter 10. Extending Ruby: A Fistful of Gems
Perl has CPAN (www.cpan.org
), JavaScript has JSAN (www.openjsan.org
), and Python has a darkened crypt (http://py.vaults.ca
). Ruby also has a unified packaging system for supplementing the available cloud of libraries on a system: RubyGems. Each individual bundle of functionality under this scheme is called a gem and contains, as you will see, all of the code and metainformation pertinent to a given library.
In exploring the world of gems, this chapter is split into two sections. We begin with a detailed run-through of how to search for, acquire, and install gems. This discussion includes guidance on using these gems in scripts and how to access documentation for the various classes and methods they ...
Get Practical Ruby for System Administration now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.