

The add_development_dependency lines define gems that you’re going to use during development. That’s the file that gets loaded when you require the gem! You will have most of your requires in lib/.rb (the only file at the root of /lib).
#Rubymine install gems code#
This allows you to put your code under lib// & then require it with require "/".Ī file named lib/awesome_gem/parser.rb would be required as require "awesome_gem/parser" from anywhere inside the gem. The require_paths array is where Ruby will look for your gem files when you require them. Spec.add_development_dependency "minitest", "~> 5.0" Spec.add_development_dependency "rake", "~> 10.0" Spec.add_development_dependency "bundler", "~> 1.16" Spec.summary = "Example gem for article about Ruby gems" The gem version itself is defined as a constant in lib//version.rb.
#Rubymine install gems software#
In some cases, you may need to manually install additional software that is not managed by RubyGems. This extension is built automatically for you when you install the gem.

When you require an installed gem you’re adding extra functionality to your Ruby program.

A gem is a package that you can download & install.
