/vup

Crystal bumpup version tool

Primary LanguageCrystalMIT LicenseMIT

shards version Build Status license

vup

Bumpup version

Installation

$ brew tap tbpgr/vup
$ brew install vup

Usage

show

$ cat shard.yml
name: hoge
version: 0.1.2
$ vup --show
0.1.2

version up (patch)

$ cat shard.yml
name: hoge
version: 0.1.2
$ cat ./src/hoge/version.cr
module Hoge
  VERSION = "0.1.2"
end

$ vup --patch

$ cat shard.yml
name: hoge
version: 0.1.3
$ cat ./src/hoge/version.cr
module Hoge
  VERSION = "0.1.3"
end

version up (minor)

$ cat shard.yml
name: hoge
version: 0.1.2
$ cat ./src/hoge/version.cr
module Hoge
  VERSION = "0.1.2"
end

$ vup --minor

$ cat shard.yml
name: hoge
version: 0.2.0
$ cat ./src/hoge/version.cr
module Hoge
  VERSION = "0.2.0"
end

version up (major)

$ cat shard.yml
name: hoge
version: 0.1.2
$ cat ./src/hoge/version.cr
module Hoge
  VERSION = "0.1.2"
end

$ vup --major

$ cat shard.yml
name: hoge
version: 1.0.0
$ cat ./src/hoge/version.cr
module Hoge
  VERSION = "1.0.0"
end

Development

Rake

$ rake -T
rake build:debug    # build (debug mode)
rake build:release  # build (release mode)
rake release        # release latest package

Contributing

  1. Fork it ( https://github.com/tbpgr/vup/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • tbpgr tbpgr - creator, maintainer