bundle outdated查看可更新的gems
以前每次升级旧项目就直接‘bundle update’,但此前并不知道究竟会升级哪些gems,只有升级后用’gem diff Gemfile.lock’才知道。
Bundler 1.1新增了bundle outdated命令,用来显示Gemfile.lock中哪些gems有新版本,并显示新旧版本号。
这个是我执行后的结果,就类似这样:
�7�4 ~/railsapp/demo bundle outdated Fetching gem metadata from https://rubygems.org/........ Outdated gems included in the bundle: * multi_json (1.2.0 > 1.1.0) * activesupport (3.2.3 > 3.2.2) * activemodel (3.2.3 > 3.2.2) * sprockets (2.4.0 > 2.1.2) * actionpack (3.2.3 > 3.2.2) * actionmailer (3.2.3 > 3.2.2) * activerecord (3.2.3 > 3.2.2) * activeresource (3.2.3 > 3.2.2) * json (1.6.6 > 1.6.5) * railties (3.2.3 > 3.2.2) * rails (3.2.3 > 3.2.2) * bootstrap-will_paginate (0.0.7 > 0.0.6) * chinese_pinyin (0.4.1 > 0.3.0) * orm_adapter (0.0.7 > 0.0.6) * guard-rspec (0.7.0 > 0.6.0) * guard-spork (0.6.0 > 0.5.2) * jquery-rails (2.0.2 > 2.0.1) * therubyracer (0.10.0 > 0.9.10) * less (2.1.0 > 2.0.11) * less-rails (2.2.0 > 2.1.8) * rspec-expectations (2.9.1 > 2.9.0) * twitter-bootstrap-rails (2.0.5 > 2.0.4) * uglifier (1.2.4 > 1.2.3)