Gem 淘宝源问题

pynix · 2014年05月21日 · 最后由 honeylz 回复于 2014年12月28日 · 5263 次阅读

用--verbose 参数看了一下

官方源的依赖使用 api 解析

淘宝源的 api 请求 404 了,所以需要下载一堆 rz 文件。。。。。。。如果不开--verbose 参数的话就半天没反映,还以为假死了呢。。。。

能开个 api 吗?

API 就会比较复杂,现在都是静态文件的,管理很方便

#1 楼 @huacnlee 但是下载量大啊,我看见一直在下载一系列版本得 gemspec.rz。。。

#2 楼 @pynix 你提醒了哦,之前没注意这个文件,最初设计的时候,看安装没有问题就没管了。

最近想办法搞一下

已经解决了

➜  ~  gem install rails -V
GET https://ruby.taobao.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://rubygems-china.oss.aliyuncs.com/latest_specs.4.8.gz
200 OK
GET https://ruby.taobao.org/quick/Marshal.4.8/rails-4.1.1.gemspec.rz
302 Moved Temporarily
GET https://rubygems-china.oss.aliyuncs.com/quick/Marshal.4.8/rails-4.1.1.gemspec.rz
200 OK
HEAD https://ruby.taobao.org/api/v1/dependencies
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=rails
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=activesupport
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=actionpack
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=actionview
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=activemodel
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=activerecord
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=actionmailer
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=railties
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=bundler
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=sprockets-rails
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=thread_safe
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=minitest
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=tzinfo
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=json
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=i18n
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=rack-test
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=rack
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=erubis
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=builder
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=arel
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=mail
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=thor
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=rake
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=sprockets
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=treetop
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=mime-types
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=tilt
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=multi_json
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=hike
200 OK
GET https://ruby.taobao.org/api/v1/dependencies?gems=polyglot

#4 楼 @huacnlee api 请求代理到 rubygems.org 去了?

#6 楼 @huacnlee 好办法。。。

gemspec.rz 这些都是什么文件啊 为啥不断的请求这些文件呢?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号