bem/bem-tools — pull request #402 by arikon (2013-07-05 21:11:40+00:00)
Title: bem version helper command

`bem version` helper command:
- shows current version of node, libs and current package when invoked without args

```js
{
"http_parser": "1.0",
"node": "0.8.25",
"v8": "3.11.10.25",
"ares": "1.7.5-DEV",
"uv": "0.8",
"zlib": "1.2.3",
"openssl": "1.0.0f",
"bem": "0.6.6"
}
```
- bumps version of current package in `package.json` and `bower.json` files (if exists), commits changes and merges when `--merge` or `--merge-into` opts are specified

Examples:

```
$ bem version
{
"http_parser": "1.0",
"node": "0.8.25",
"v8": "3.11.10.25",
"ares": "1.7.5-DEV",
"uv": "0.8",
"zlib": "1.2.3",
"openssl": "1.0.0f",
"bower-test": "0.0.4"
}
```

```
$ bem version patch
v0.0.5
```

```
$ bem version minor --merge
00:04:55.645 - warn: Skipping merge of master into itself
v0.1.0
```

```
$ git flow release start 0.2.0
Switched to a new branch 'release/0.2.0'

Summary of actions:
- A new branch 'release/0.2.0' was created, based on 'dev'
- You are now on branch 'release/0.2.0'

Follow-up actions:
- Bump the version number now!
- Start committing last-minute fixes in preparing your release
- When done, run:

git flow release finish '0.2.0'

$ bem version 0.2.0
v0.2.0

$ git flow release finish 0.2.0

Switched to branch 'master'
Deleted branch release/0.2.0 (was 1f019de).

Summary of actions:
- Latest objects have been fetched from 'origin'
- Release branch has been merged into 'master'
- The release was tagged 'v0.2.0'
- Release branch has been back-merged into 'dev'
- Release branch 'release/0.2.0' has been deleted
```