Frequently Asked Questions
A gem is a term used to denote free open-source libraries written in Ruby on Rails that contain a specific element of functionality. They speed up the software development process by offering developers ready solutions to almost any task. Currently, there are 163,029 gems and their number only grows.
To add gems to your project you may use such a tool as Bundler. This instrument offers a consistent environment for Ruby projects and allows tracking and installing specific gems and required versions.
The process of building a gem from scratch implies the following steps: 1. Building a general file structure of a future gem; 2. Creating the gemspec file with standard attributes; 3. Adding a piece of code; 4. Generating the gem file; 5. Installing the gem; 6. Adding the gem to a Ruby program to test it.
You can find the most recent information about Ruby gems on Rubygems.org. This website is known as the default public repository for gems. Besides, if you are looking for info on Ruby gems development, you can also visit Github.