Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 62 lines (44 sloc) 2.107 kb
2e6a8b27 »
2011-01-07
1 version_bumper
2 ==============
3
4 Simple. Bump your versions.
5
670acb4d »
2011-01-07
6 What is it for?
7 ---------------
8 Given that we agree upon a [version format][1], maintain a version for your project. The version is kept in a file, in the root of your project, which is a common thing to do.
9 Especially useful for developers using rake as their build runner in non-ruby projects (don't you?).
10
11
12
13 Quick start
14 -----------
2e6a8b27 »
2011-01-07
15 $ gem install version_bumper
16
c9c786d8 »
2011-01-07
17 First lets agree that version looks like this: major.minor.revision.build
f7c2631b »
2011-01-08
18 In your `Rakefile` `require 'version_bumper'` and you're done. If you're in rails, `gem 'version_bumper'` to your `Gemfile` in addition.
2e6a8b27 »
2011-01-07
19
20 $ rake -T
21 rake bump:build # bump build
22 rake bump:init # write a blank version
23 rake bump:major # bump major
24 rake bump:minor # bump minor
25 rake bump:revision # bump revision
26
27
28 $ rake bump:init
29 version: 0.0.0.0
30 $ rake bump:revision
31 version: 0.0.1.0
32 $ rake bump:major
33 version: 1.0.0.0
34
35 You can optionally use `bumper_file 'version.txt'` in your rake file to switch from the default `VERSION` file name.
36 Use `bumper_version` anywhere you need access to the current version in your rake script.
37
38 Contributing to version_bumper
39 ------------------------------
40
41 * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
42 * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
43 * Fork the project
44 * Start a feature/bugfix branch
45 * Commit and push until you are happy with your contribution
46 * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
47 * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
48
b7129b33 »
2011-01-14 adding Peter
49 Commiters
50 ---------
51 jondot (Dotan Nahum)
52 splattael (Peter Suschlik)
53
2e6a8b27 »
2011-01-07
54 Copyright
55 ---------
56
57 Copyright (c) 2011 Dotan Nahum. See LICENSE.txt for
58 further details.
59
670acb4d »
2011-01-07
60
61
62 [1]: http://semver.org
Something went wrong with that request. Please try again.