Bundler with :git and force-pushed commits
I have the bad habit of occasionally force-pushing to master if I’m pretty confident that no-one else is using the repo (IE, personal side projects, etc). This bit of laziness saves me the git overhead of branch/merging, but I just found a *new* way to get burned. If you are using a gem built from a remote git repo with bundler like so:
gem "mygem", :git => "http://github.com/ragaskar/mygem.git"any force-pushes you commit to that repo will not be properly pulled by bundler (which makes sense, as it thinks it’s up to date on head). This is pretty easy to fix — find your BUNDLE_PATH (where bundler installs gems to). If you’re using rvm, it’s probably in ~/.rvm/gems/your-gemset/bundler, blow away any directories that contain your gem, and also clear out your ~/.rvm/gems/your-gemset/cache/bundler/ directory. Lastly, nuke your Gemfile.lock and re-bundle. Or maybe just don’t force push.