AddGem
Command-line tool to append new gems to your Gemfile.
Problem
When adding a new gem to my Gemfile I found myself visiting http://rubygems.org/gems/GEM_NAME and checking the latest version.
I built this tool so I give the name of the gem and it adds the gem to
my Gemfile and includes the version using ~>
.
What's wrong with gem search rails -r
you might be thinking? the
answer is nothing, but why do something in more than one step when it
can be done in one. :)
Usage
Install using rubygems:
gem 'add_gem'
And then execute on your work directory:
$ add_gem rails
$ Added gem "rails", "~> 3.2.8" to your Gemfile.