Created
April 10, 2012 10:35
-
-
Save mazuhl/2350243 to your computer and use it in GitHub Desktop.
Check if we need to bundle install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is from a Zach Holman slide | |
require 'digest/md5' | |
md5 = Digest::MD5.new() | |
md5 << File.read('Gemfile') | |
checksum = md5.hexdigest | |
installed = File.read('.bundle/checksum').strip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once you've got the checksum of the current Gemfile and the installed gems Gemfile you can run
bundle install
.