agtbtq
Last Updated: February 25, 2016
·
1.102K
· fousa

Add a gem with some extra info to your Gemfile

Piet, one of my awesome colleagues, created an emacs script to lookup a gem and copy it to the clipboard. This way your Gemfile becomes a bit more clear.

# Ruby on Rails is a full-stack web framework optimized for programmer
# [rails](http://www.rubyonrails.org)
gem "rails", "~> 3.2.13"

# Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://
# [pg](https://bitbucket.org/ged/ruby-pg)
gem "pg", "~> 0.15.1"

# The Ruby cloud services library. Supports all major cloud providers
# [fog](http://github.com/fog/fog)
gem "fog", "~> 1.12.1"

But since I don't use emacs, but Sublime or Vim, I had to look for another solution. So I created a gem called Trump.

Install the gem and run the following command:

trump rails_admin

This copies the following text to the clipboard:

# RailsAdmin is a Rails engine that provides an easy-to-use interface f...
# [rails_admin](https://github.com/sferik/rails_admin)
gem 'rails_admin', '~> 0.4.4'

Now you can just past in the Gemfile and voila!

Hope you like it.