Gemper
Automatically installs all the gems required in a specified file or directory.
Installation
gem install gemper
Usage
gemper ~/dev/filename.rb
You can also specify a directory to scan all the .rb and .ru files inside of it. Use the -r
option to search in subfolders.
To get an array of the gems, that need to be installed:
require 'gemper'
Gemper.get_gems('~/Desktop')
# => ['nokogiri', 'mechanize']