Not sure I like this method updating the hash. At the least its name is misleading. But more worrying is that if you call it twice without successfully doing whatever logic necessary then the 2nd time it will return False. E.g. you check to see if the Gemfile changed, it did, you update the hash, the bundle install fails. The next time through it will return True.