RubyGems(from my hiki)

いけてない。

C:\foo>gem install rails --remote -p http://ユーザ名:パスワード@proxy.example.com:ポート/
C:\foo>"e:\ruby\bin\ruby.exe" "e:\ruby\bin\gem" install rails --remote -p http://ユーザ名:パスワード@proxy.example.com:ポート/

Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (NoMethodError?)
undefined method `proxy_open' for #

C:\foo>gem install rails --remote -p http://proxy.example.com:ポート/

C:\foo>"e:\ruby\bin\ruby.exe" "e:\ruby\bin\gem" install rails --remote -p http://proxy.example.com:ポート/
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem ... (OpenURI::HTTPError)
407 Proxy Authentication Required

open-uri.rb の最新版はベーシック認証をサポートしているっぽい。あとは、remote_installer.rb の read_data()あたりをいじればよさげ。 http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/open-uri.rb?rev=1.42 http://www.zenspider.com/dl/rubyconf2005/open-uri.pdf パッチ発見。 http://rubyforge.org/pipermail/rubygems-developers/2005-January/001338.html