gem与代理设置
来源:互联网 发布:人生就像编程 编辑:程序博客网 时间:2024/04/27 15:22
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 should 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
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 should 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
- gem与代理设置
- gem与代理设置
- ruby gem代理设置
- ruby gem 代理设置
- Ruby gem的proxy代理设置方法
- 使用代理上网时gem设置
- wget与代理设置
- gem 用代理连接方式
- npm gem 代理(转)
- gem 安装与使用
- gem使用代理安装ruby-debug-base19
- ruby与gem基本命令
- gem
- apt代理的设置与取消
- Git代理设置与访问Github
- 代理ip的设置与使用
- Git代理设置与访问Github
- Python 与设置代理的两三事
- 爱的规则,自由的条件
- java---二叉树====
- 数据库性能优化(MySQL)
- 闲谈计算机系统(1)
- 我所理解的Rails
- gem与代理设置
- Linux移植RT73驱动
- 使用信号灯同步线程
- 解决“could not find gem 'turn <>=0 ' in any of the gem sources listed in your gemfile”错误
- 如何有效实现软件的需求管理 - 7
- TreeView
- timer 子系统的初始化过程
- AOP异常处理一
- 刘彦斌51条理财名言