Giter Site home page Giter Site logo

vup's Introduction

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

vup's People

Contributors

hkdnet avatar tbpgr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

hkdnet

vup's Issues

Add dry-run mode

$ cat version.cr
module Vup
  VERSION = "0.1.0"
end
$ vup --patch --dry-run
0.2.0
$ cat version.cr
module Vup
  VERSION = "0.1.0"
end

output version

output version

$ cat version.cr
module Vup
  VERSION = "0.1.0"
end
$ vup --patch
0.2.0
$ cat version.cr
module Vup
  VERSION = "0.2.0"
end

Add --detail option

$ cat version.cr
module Vup
  VERSION = "0.1.0"
end
$ vup --patch --detail
bump up ./src/vup/version.cr
bump up shard.yml
0.1.1
$ cat version.cr
module Vup
  VERSION = "0.1.1"
end

Cannot bumpup minor with `-mi`

$ vup --show
0.1.0
$ vup -mi
1.0.0

With option -mi, it always parsed as Vup::SemanticVersions::MAJOR.
This may be caused by short-hand option -mi, whose length is 2, not 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.