Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Redirect
visiblefalse
locationhttps://www.jetbrains.com/help/ruby/creating-and-publishing-your-first-ruby-gem.html

Panel
borderStyledashed
borderColor#ccc

A RubyGem, commonly called just a gem, is a packaged Ruby library, which installation allows you use the functionality of a common library in your application. This tutorial is meant to explain how to create and deploy a RubyGem.

Table of Contents
stylenone

0. Prerequisites

Make sure the following prerequisites are met:

...

If you want to use your own gem repository, please change your .gemspec file according to RubyGems guides:

Code Block

Gem::Specification.new 'develop_with_pleasure' do |spec|
  # ...
  spec.metadata['allowed_push_host'] = 'https://gems.my-company.example'
end