Gem and proxy settings

Source: Internet
Author: User

I'm behind an authenticated proxy and rubygems doesn't seem to support username/password based authentication.

Some investigation seems to indicate that open-uri.rb doesn't support authentication. Open-Uri is based on net: HTTP
Which * Does * Support authentication so it shocould be relatively easy to modify open-URI to do that too. I spent about
An hour on it, but couldn't immediately get something working (open-Uri is using net: HTTP in a somewhat quirky way ).

C:/> gem-V

C:/> "C:/Ruby/bin/ruby.exe" "C:/Ruby/bin/gem"-V
0.8.3

C:/> gem list-P http: // Proxy: 8080-r -- backtrace

C:/> "C:/Ruby/bin/ruby.exe" "C:/Ruby/bin/gem" list-P http://proxy1.macbank: 8080-r -- backtrace

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.