4

Bundler 1.3.0 がリリースされたばかりですが (これまでに10 人しかインストールしていません)、以前のバージョンまたは以前のバージョンしかインストールできません。

$ 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 に指示するにはどうすればよいですか?

4

2 に答える 2

2

rubygems.orgからgem ファイルをダウンロードし、.gem install path/to/gem/file

までにインストールしたと誰かが言っていましたgem install bundler --preが、私は試しませんでした。

于 2013-03-01T01:05:32.383 に答える
1

Gemfile でこれを試してください:

gem "nokogiri", :git => "git://github.com/tenderlove/nokogiri.git", :branch => "1.4"

git "git://github.com/wycats/thor.git", :tag => "v0.13.4"
gem "thor"

http://gembundler.com/git.html

または、この宝石を試してください:
https://github.com/rdp/specific_install

于 2013-02-25T12:06:18.163 に答える