Installing Ruby Gems behind a Proxy

Posted by jjr2527 on Stack Overflow See other posts from Stack Overflow or by jjr2527
Published on 2010-07-06T16:50:37Z Indexed on 2011/01/14 22:54 UTC
Read the original article Hit count: 397

Filed under:
|
|
|

It appears this topic has been covered a few times before, but those solutions have only gotten me so far. I now have my sources properly updated and I am able to query for gems without an error but I keep getting empty results for my searches.

I installed rubysspi and copied over the spa.rb file as mentioned in the readme.

The readme also suggested using this line which did not work for me based on my install path:

ruby -rspa 'C:\Program Files\ruby\gem' list --remote sspi

So I switched it to my install directory off the root:

ruby -rspa 'C:\ruby\gem' list --remote sspi

But that also didn't work so a search for the gem file located it in the bin directory so this command finally worked for me:

ruby -rspa 'C:\ruby\bin\gem' list --remote sspi

But I got empty results back:

*** REMOTE GEMS ***

SO I tried other gems and had the same results. Then I listed my gem sources and rubygems is listed as expected. Am I missing something else?

c:\ruby>gem sources

*** CURRENT SOURCES ***

http://rubygems.org

© Stack Overflow or respective owner

Related posts about ruby

Related posts about install