gpt4 book ai didi

ruby - 避免使用镜像来安装新发布的 gem

转载 作者:数据小太阳 更新时间:2023-10-29 07:34:20 24 4
gpt4 key购买 nike

Bundler 1.3.0 刚刚发布(only 10 people 目前已经安装),但我只能安装一个预版本,或者以前的版本。

$ gem install bundler --version 1.3.0 --verbose
HEAD http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
HEAD http://production.s3.rubygems.org/specs.4.8.gz
304 Not Modified
ERROR: Could not find a valid gem 'bundler' (= 1.3.0) in any repository
HEAD http://rubygems.org/prerelease_specs.4.8.gz
302 Moved Temporarily
HEAD http://production.s3.rubygems.org/prerelease_specs.4.8.gz
304 Not Modified
ERROR: Possible alternatives: bundler

$ gem install bundler --version 1.3.0 --clear-sources --source http://rubygems.org --verbose
HEAD http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
HEAD http://production.s3.rubygems.org/specs.4.8.gz
304 Not Modified
ERROR: Could not find a valid gem 'bundler' (= 1.3.0) in any repository
HEAD http://rubygems.org/prerelease_specs.4.8.gz
302 Moved Temporarily
HEAD http://production.s3.rubygems.org/prerelease_specs.4.8.gz
304 Not Modified
ERROR: Possible alternatives: bundler

$ gem install bundler --verbose
HEAD http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
HEAD http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
Installing gem bundler-1.2.4
/Users/agrimm/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/bundler-1.2.4/.gitignore
<snip>
/Users/agrimm/.rbenv/versions/2.0.0-p0/bin/bundle
Successfully installed bundler-1.2.4
Parsing documentation for bundler-1.2.4
Parsing sources...
100% [100/100] lib/bundler/vlad.rb
Done installing documentation for bundler (2 sec).
1 gem installed

我如何告诉 ruby​​gems 查看规范存储库,而不是过时的镜像?

最佳答案

我下载了 gem file来自 rubygems.org , 并使用 gem install path/to/gem/file 安装它。

有人说他们用gem install bundler --pre安装的,我没试过。

关于ruby - 避免使用镜像来安装新发布的 gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15061975/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com