DEV Community

FigueroaR
FigueroaR

Posted on

3 1

Create & Publish Your First Ruby Gem

We can build and publish our gem in a few steps.

After we have written our code, our command line interface(CLI) and inspected it, we are ready to upload it (https://rubygems.org).

Today we will be updating, creating and publishing a Ruby Gem. We currently are in version 0.1.3.gem.

Alt Text

In order to update this gem we need to change the Version, to a higher number preferably.

Alt Text

Once we have manually change the version number, run this command:

"gem build insert-name"

Alt Text

At this point our gem has bee created, I recommend taking the time to visit "rubygems.org" where our gem will be pushed/uploaded to. Create and register an account, you will need it while pushing via command line.

Alt Text

Now it is Live!
https://rubygems.org/gems/crypto_price

Alt Text

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs