bundler/bundler — pull request #3073 by jasonrclark (2014-06-19 07:02:59+00:00)
Title: Move separate steps of `rake release` to tasks

Was looking into an issue I had with using `rake release` in my local git setup (which requires explicitly passing in remote + branch via `push.default`) when I stumbled on https://github.com/bundler/bundler/issues/3069#issuecomment-46323919. I thought I'd take a whack at extracting those tasks since that's precisely what I needed to tweak things for myself.

This moves guarding for uncommited files, pushing/tagging for source control and pushing to rubygems into separate Rake tasks so that they can be easily overridden if desired by users' Rakefiles.

I chose to namespace the tasks under `release:*` to avoid potential conflicts, although I don't know if that's necessary/desirable.

Also updated the specs around the `GemHelper` to checks for installing the new tasks. I also had to update the tests to drive through the `release` task in Rake instead of `Bundler::GemHelper#release_gem` since that method was otherwise unused and removed.

First PR against Bundler, so happy to alter anything at all that isn't in line with the project norms. Thanks for all you do! :heart: