Blog

Manage version numbers with this one line command
Andrew McKnight – 17 December 2017

Having produced both iOS apps and developer tools used in them, I feel very strongly about using semantic versioning. It’s a small price to pay to avoid all sorts of headaches, potentially for many more people than yourself. In my opinion, there’s no reason not to do it.

Maybe you don’t like the hassle of editing that one line in that config file, and coming up with a commit message for the banal change? And then also maybe tagging it with the exact same template you used for all the other tags (after 2.4.17, because that’s when you started/stopped prepending a “v” to it)? Or maybe you’ve just forgotten one of the steps in the midst of hot-patching a critical bug?

Well, I have seen and/or done all of these things at some point. That’s why I wrote Vrsnr to help alleviate the problem for myself. And as if that weren’t simple enough, I automated the automation in a Rake task:

After git stashing --all of your working index, this will:

and then pop the stash to resume your regularly scheduled programming.


Enjoy the post? Please help support more like it by buying me a cup of coffee! I am also available for contracting.