IVE
A gem that allows you to bump the version of your Xcode project.
The current bumps are supported by Ive:
- Major Go from 1.0.0 to 2.0.0
- Minor Go from 1.0.0 to 1.1.0
- Patch Go from 1.0.0 to 1.0.1
- Build Go from 1.0.0-0001 to 1.0.0-0002
And you can even automatically tag the current commit with this lastest version bump.
Installation
Add this line to your application's Gemfile:
gem 'ive'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ive
Usage
It's really simple to use. Just run anh of the following commands in the Terminal from the project root in order to bump.
ive major
ive minor
ive patch
ive build
To tag the commit add the --git parameter.
ive major --git
ive minor --git
ive patch --git
ive build --git
You can also supply the path of the project root if needed. Just pass the -p (or --path) parameter.
ive major -p ~/Project
ive major --path ~/Project
You can also specify the target/configuration you want to bump the version by adding an extra .ive file in the project root. This file should contain a valid target and configuration in order to be used.
If a .ive configuration file is missing you can easlily generate one with his command.
ive setup
Choosing the target/configuration to version bump can also be set. There is a --configuration (or -c in short) and a --target (or -t) parameter that can be set the same way you set the path.
ive major -c Release
ive major --configuration Release
The code above will make sure the Release configuration is used by Ive. The same can be done for the target as shown below.
ive major -t AppTargetName
ive major --target AppTargetName
It's also possible to check out the current version.
ive version
ive version -p ~/Project
Set the initial version to 1.0.0 with a build number 0001.
ive init
Contributing
- Fork it ( https://github.com/[my-github-username]/ive/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request