Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rake release hangs when releasing a gem

I'm trying to release my first gem to Ruby Gems. The gem is working great locally.

I'm releasing it using:

$rake release

Which gives me this in the console:

example_gem 0.0.3 built to pkg/example_gem-0.0.1.gem 
Tagged v0.0.1
Pushed git commits and tags

Then the process hangs. I waited 20 mins, then cancelled.

When I tried to release again I got:

rake aborted!
This tag has already been committed to the repo.

So I assumed the gem had been successfully submitted, however 16 hours later, the gem is not under my account on Ruby Gems.

So I bumped the version and tried again using --trace, but the process hangs in the same place with only the following additions to output:

** Invoke release (first_time)
** Execute release
example_gem 0.0.3 built to pkg/example_gem-0.0.3.gem
Tagged v0.0.3
Pushed git commits and tags

What is going wrong?

like image 283
Undistraction Avatar asked Jul 04 '13 07:07

Undistraction


1 Answers

For the sake of Google searches and archives: I encountered the same issue but for a different reason. When I used the recommended command to download my RubyGems credentials file:

curl -u pond https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials

...I must have mis-typed my password, as the file actually contained the text "HTTP Basic: Access denied.". No error had been output to the console. Repeating the curl command and being more careful with password entry resulted in a sensible credentials file and the next attempt to run rake release worked.

If you get complaints about an existing tag you probably just need to delete it locally; use:

git tag

...to see what's there and once you've identified the version based tag (e.g. "v2.0.0") delete it with:

git tag -d <tag_name>
like image 170
Andrew Hodgkinson Avatar answered Oct 24 '22 09:10

Andrew Hodgkinson