Installing and Managing Gems

All the RubyGems tooling comes standard as a part of Ruby, including the command-line application gem, which you can use for many of your RubyGem-related needs. Ruby gems conform to a standardized format that provides metadata about the gems and most importantly about any other gems that this gem might depend on. The gem command-line tool knows to look in the central repository for gems, but you can also point it to look at other sources. Using other sources allows you to maintain a private gem repository, for example, as a place to keep internal tooling that you don’t want to be made public.

In this section, we’ll talk about managing gems directly from the command line, which is useful, but please keep in mind that ...

Get Programming Ruby 3.3 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.