Gem 为啥安装 Nokogiri 枚举每个版本? 如图

sevk · March 21, 2020 · Last by sevk replied at March 23, 2020 · 3066 hits

为啥安装 nokogiri 枚举每个版本?

你安装命令是什么?不是通过

gem install nokogiri 

吧?这个源也有点神奇。

Reply to lanzhiheng

命令是:

gem install nokogiri -VN
Reply to sevk

好像说是要建立索引文件 https://github.com/rubygems/rubygems/issues/494 ,得看源码才知道具体机制。里面得人也说这是正常行为。 🤐 https://github.com/rubygems/rubygems/issues/494#issuecomment-27658632

Reply to lanzhiheng

他们怎么想的,这还正常啊。看了最后一行,状态是 open 的,估计还在修。

https://github.com/rubygems/rubygems/issues/494#issuecomment-16973114

https://github.com/tuna/issues/issues/374

这里有个坑:

Please consider reverse-proxying https://api.rubygems.org/api/v1/dependencies at /rubygems/api/v1/dependencies so that dependency lists are fetched through this API, instead of calculated locally, by downloading and parsing all gemspec.rz files.

For your reference, here is a Caddyfile that I use to test the feasibility of the reverse proxy:

localhost:8081
log stderr

proxy /rubygems https://mirrors.tuna.tsinghua.edu.cn {
    except /rubygems/api
}

proxy /rubygems/api https://api.rubygems.org {
    without /rubygems
}

(I am fully aware of the "we don't do reverse proxy" policy of this site, so this is only filed in the hope of being useful to all RubyGems mirror users)
Reply to franklinyu

2016 年...

You need to Sign in before reply, if you don't have an account, please Sign up first.