RubyGems

RubyGems (or short Gems ) is the official package system for the programming language Ruby. It provides a packet format, a tool for managing packages and a repository for their distribution. With it, the user has the ability to run multiple (for example, older or younger ) versions of a program, program or part of a library controlled set up as needed to manage or even to remove. It works similar to the package manager Easy Install with Python, but also has similarities to apt-get or yum.

Use

RubyGems be accessed via the command line gem. Usually gemspec files from RubyGems. Created, the Gem is described in the language YAML. However, it is also possible to generate Gems directly from Ruby code.

Since Ruby 1.9 RubyGems is part of the standard library of Ruby. If you want to use a RubyGem in a Ruby program, you must first load the required library:

Require ' json ' # current version gem ' rake ', ' = 0.8.1 ' # versioned name

The word can mean in English gem gemstone, precious or just thing and stands for a packet with which Ruby can be extended. These gems have a name, for example, rake, and a version number (for example, 0.4.18 ), with which they can be found in the purpose-built repositories.

Swell

  • Official Website
  • Ruby ( programming language)
695592
de