fog gemのinstall時に気をつけること
railsアプリケーションをbundle installしたら以下のようなメッセージが出た
------------------------------ Thank you for installing fog! IMPORTANT NOTICE: If there's a metagem available for your cloud provider, e.g. `fog-aws`, you should be using it instead of requiring the full fog collection to avoid unnecessary dependencies. 'fog' should be required explicitly only if: - The provider you use doesn't yet have a metagem available. - You require Ruby 1.9.3 support. ------------------------------
クラウドサービスを利用するためのライブラリfogについてのメッセージ
クラウドプロパイダーのmetagemがある場合は不要な依存関係を避けるべくそちらを使えという内容
※クラウドプロパイダーのmetagemがない場合やruby1.9.3をサポートする場合はその限りでない
自分の場合はawsを使っているので
gem 'fog' ↓ gem 'fog-aws'
また、CarrierWave使ってる場合は
config.fog_provider = 'fog-aws'
を入れないとエラーになるかもです