[RubyGems] Could not find xxx in any of the sources
Rails で Gemfile に ransack を 0.7.3 で指定して bundle install したら「Could not find xxx in any of the sources」というエラーが出てしまいました。
# Gemfile
# meta search gem 'ransack', '0.7.3' #MIT |
% cap deploy:cold ... * 2013-03-07 21:27:57 executing `bundle:install' * executing "cd /srv/myapp/releases/20130307122736 && bundle install --gemfile /srv/myapp/releases/20130307122736/Gemfile --path /srv/myapp/shared/bundle --deployment --quiet --without development test" servers: ["example.com"] [example.com] executing command ** [out :: example.com] Could not find ransack-0.7.3 in any of the sources |
ransack-0.7.3 がない?
開発環境ではインストールできているし、ステージング環境でもインストールできていたのに、本番環境の構築時には 0.7.3 はなく、0.7.2 が最新のようでした。
% gem search --remote ransack *** REMOTE GEMS *** ransack (0.7.2) ransack_abbreviator (0.0.8) ransack_chronic (1.1.0) ransack_ffcrm (0.7.1) ransack_ui (1.1.0) |
動作上、問題なかったので ransack のバージョンを下げることで対応しました。