Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flazz/semver
simple command line util & ruby module for managing versions according to http://semver.org
https://github.com/flazz/semver
Last synced: 6 days ago
JSON representation
simple command line util & ruby module for managing versions according to http://semver.org
- Host: GitHub
- URL: https://github.com/flazz/semver
- Owner: flazz
- License: mit
- Created: 2010-02-12T22:26:18.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T09:19:08.000Z (over 6 years ago)
- Last Synced: 2024-04-26T20:49:09.239Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 618 KB
- Stars: 100
- Watchers: 6
- Forks: 24
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SemVer2 3.0.x gem, following semver.org 2.0.0-rc.1
======quickstart on the command line
------------------------------
install it% gem install semver
use it
% semver init
% semver tag # => v0.0.0
% semver inc minor # => v0.1.0
% semver special 'alpha.45' # => v0.1.0-alpha.45
% semver format "%M.%m" # => 0.1
% git tag -a `semver tag`
% say 'that was easy'quickstart for ruby
-------------------require 'semver'
v = SemVer.find
v.major # => "0"
v.major += 1
v.major # => "1"
v.special = 'alpha.46'
v.format "%M.%m.%p%s" # => "1.1.0-alpha.46"
v.to_s # => "v1.1.0"
v.savegit integration
---------------
% git config --global alias.semtag '!git tag -a $(semver tag) -m "tagging $(semver tag)"'[Franco Lazzarino](mailto:[email protected])
[Henrik Feldt](mailto:[email protected])