ruby – 安装travis命令行窗口

我想安装travis(
https://rubygems.org/gems/travis)的命令行工具,以便正确设置travis.我有一台Windows机器,我安装了ruby和宝石.

$ruby --version
  ruby 2.2.2p95 (2015-04-13 revision 50295) [i386-mingw32]

$gem --version
  2.4.5

安装时(在详细模式下)安装无法获取不存在的依赖项.

$gem install travis -V
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=travis
200 OK
GET https://api.rubygems.org/api/v1/dependencies?    gems=addressable,backports,faraday,faraday_middleware,gh,highline,launchy,
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=coderay,ethon,json,method_source,multi_json,multipart-post,net-http-p,slop,websocket,win32console
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=ffi
200 OK
GET https://api.rubygems.org/quick/Marshal.4.8/pry-0.9.12.6-x86-mingw32.gemspec.rz
302 Moved Temporarily
GET https://aws-eu-cache01.rubygems.org/quick/Marshal.4.8/pry-0.9.12.6-x86-mingw32.gemspec.rz
404 Not Found
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (https://aws-eu-cache01.rubygems.org/quick/Marshal.4.8/pry-0.9.12.6-x86-mingw32.gemspec.rz)

手动安装pry(各种版本)也失败了

$gem install pry  -V
 HEAD https://api.rubygems.org/api/v1/dependencies
      200 OK
 GET https://api.rubygems.org/api/v1/dependencies?gems=pry
      200 OK
 GET https://api.rubygems.org/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz
      302 Moved Temporarily
 GET https://aws-eu-cache01.rubygems.org/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz
     404 Not Found
 ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (https://aws-eu-cache01.rubygems.org/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz)

gem尝试获取的文件如下:

https://aws-eu-cache01.rubygems.org/quick/Marshal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz

因此我的问题是:还有其他可能获得此gem或任何其他方式在Windows上运行gem install tr​​avis吗?

非常感谢和欢呼,
法比安

最佳答案
Known issue

作为一种解决方法,您可以降级gem:

gem update --system 2.4.4 
gem install pry
点赞