Latest keeps us up to speed by querying rubygems.org for a gem's most recent version number. Yep, that's all it does.
Basically I was tired of visiting https://rubygems.org/gems/whatever-gem
to find out a gem's most recent version.
After installing, use latest from your command line like so:
latest rails
# rails 3.2.2 (41013 downloads)
latest rails spree haml
# rails 3.2.2 (41014 downloads)
# spree 1.0.1 (279 downloads)
# haml 3.1.4 (289029 downloads)
latest rails spree --pre haml
# rails 3.2.2 (41015 downloads)
# spree --pre 1.0.0.rc4 (134 downloads)
# haml 3.1.4 (289029 downloads)
You can print latest's version like so:
latest -v
# Latest v0.4.0
As usual, just use the gem install
command:
gem install latest
# or
sudo gem install latest
Testing is done with minitest/spec. Run the specs with:
bundle exec rake
Other than rake and bundler for development, Latest has zero gem dependencies! All it requires is Ruby >= 1.9.2.
Copyright (c) 2011 - 2012 Spencer Steffen & Citrus, released under the New BSD License All rights reserved.