https://github.com/mdub/gem_require
Quick gem check/upgrade
https://github.com/mdub/gem_require
Last synced: 5 months ago
JSON representation
Quick gem check/upgrade
- Host: GitHub
- URL: https://github.com/mdub/gem_require
- Owner: mdub
- Created: 2010-12-05T11:25:04.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2013-02-28T15:17:25.000Z (almost 13 years ago)
- Last Synced: 2025-07-27T18:59:12.818Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GemRequire
==========
`gem_require` is a Rubygems plugin which provides a cheap way to ensure that a gem is installed.
Install it like so:
$ gem install gem_require
Successfully installed gem_require-0.0.3
1 gem installed
Now you can use "`gem require`" in place of "`gem install`". It's similar, except that it short-circuits if you already have the required gem installed:
$ gem require heroku
heroku (1.11.0) is already installed
If you want to ensure that you're on the bleeding edge, use the "`--latest`" option:
$ gem require --latest heroku
Installing heroku (1.14.6) ...
Installed heroku-1.14.6
Of course, if you already **have** the latest version, there's no need to re-install it:
$ gem require --latest heroku
heroku (1.14.6) is already installed
Enjoy.