Unable to push gem

AJ's Avatar

AJ

06 Sep, 2012 04:53 AM

When I run (using Ruby 1.9.3, Windows 7) "push gem gem_name_here" and enter my email and password, this is the error I get:

Pushing gem to https://rubygems.org...
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certif

icate verify failed (https://rubygems.org/api/v1/api_key)

Any help would be appreciated.

  1. Support Staff 2 Posted by Luis Lavena on 06 Sep, 2012 12:12 PM

    Luis Lavena's Avatar

    Hello,

    First, please change RubyGems source from https://rubygems.org to http://rubygems.org (use gem help sources for instructions)

    Next, upgrade to RubyGems 1.8.24, which includes the right certificates, which were missing from 1.8.23:

    gem update --system

    After you've done that, set again the source to https://rubygems.org and try again.

    Let us know if that works.

  2. 3 Posted by AJ on 07 Sep, 2012 02:21 AM

    AJ's Avatar

    Hi, Luis,

    I did what you suggested, which got rid of the certificate error (thanks). But this has led to a different error, which I do not understand. (The gem does work locally.)

    Here's what I get now after running gem push gem_name (with my actual gem's name):

    Pushing gem to https://rubygems.org...
    ERROR: While executing gem ... (Errno::ENOENT)
    No such file or directory - gem_name

  3. Support Staff 4 Posted by Nick Quaranto on 07 Sep, 2012 02:58 AM

    Nick Quaranto's Avatar

    gem_name should be the file name of your gem.

    We have a whole tutorial for this process here:

    http://guides.rubygems.org/make-your-own-gem/

  4. Nick Quaranto closed this discussion on 07 Sep, 2012 02:58 AM.

  5. AJ Ayidjkimo re-opened this discussion on 07 Sep, 2012 07:46 AM

  6. 5 Posted by AJ Ayidjkimo on 07 Sep, 2012 07:46 AM

    AJ Ayidjkimo's Avatar

    Hi, Luis,

    Thanks for your help resolving my problem of pushing a gem to
    RubyGems. Things are now working fine.

    The gem I posted -- runmetric -- is fairly simple, but it simplifies
    using the Benchmark library for programming challenges like at
    ProjectEuler.net, which I have just started. I wanted to make it
    available to other Ruby programmers at ProjectEuler (of which there
    are 3392!!), as well as in the world at large.

    Thanks, too, for all of the work you do on the Windows installer!!!

    AJ AYIDJKIMO

  7. Luis Lavena closed this discussion on 11 Dec, 2012 03:51 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

29 Aug, 2014 06:23 PM
28 Aug, 2014 07:18 PM
27 Aug, 2014 12:03 PM
26 Aug, 2014 07:09 PM
26 Aug, 2014 07:07 PM