beakr
beakr

Reputation: 5867

Updating Rubygems?

Very recently I created a gem on RubyGems.org. However I've worked on a new update and can't seem to figure out how to update a RubyGem. I've looked at the user guides, but I can't easily find any articles that specify how to update a RubyGem. Is there an easy way from the command line or from the website? I need to get the new update public soon. Thanks!

Upvotes: 1

Views: 215

Answers (4)

Shamith c
Shamith c

Reputation: 3739

First you can change the version number. If it is already exist.Then You can push the latest .gem(my_gem-x.x.x.gem). Please refer Guide:-Guide

Upvotes: 1

eastafri
eastafri

Reputation: 2226

When generating your gem's files and directories it is recommended that you use one of the available tools for creating gems for example bundler or Jeweller. They have predefined tasks that make it easy to update a gem using a versioning system. Have a look at their respective documentation.

If that is not possible. Keep your files under some form of version control. It will make it easy to add changes and update the current version of your gem. Have a look at this tutorial on crafting gems.

Upvotes: 1

Marek Příhoda
Marek Příhoda

Reputation: 11198

Follow this excellent guide

Upvotes: 0

mipadi
mipadi

Reputation: 411340

You just push the gem:

$ gem push my_gem-1.0.0.gem

Upvotes: 2

Related Questions