Description
I just tried to find the right workflow using Jeweler in combination with git-flow for my db_clustering project. In git-flow I'm used to start a release branch (e.g. release/1.1.2
), do my release there so run rake version:bump:patch
and rake release
and merge the release branch with the git-flow scripts (which will merge it to master and develop and checkout the develop branch).
The problem is that rake release
automatically creates a .gemspec
file and uses the master
branch (instead of the current branch) to do the release – which is not what I was expecting since I was in a different branch. This leads to the re-release of the old master
branch code under the new version tag. Also simply doing the gem version:bump:patch
in the release branch and running rake release
after merging it to the master branch didn't seem right since this will prevent the .gemspec
file from being updated within the develop
branch and I have to manually prevent the merging to the master branch in git-flow from creating a 1.1.2
flag.
For now I have stopped using git-flow within that library until I'm sure how to do it the right way. Are there any thoughts on how to use git-flow alongside jeweler?
Thanks in advance for any help.