diff --git a/CHANGELOG.md b/CHANGELOG.md index 95f2fe2..0e38d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Change log +## 1.0.1 (2017-04-05) +### Fixed +* Version number format returned by the `GET /` and `GET /version` + ## 1.0.0 (2017-04-05) ### Dependencies changes #### Updated diff --git a/README.md b/README.md index e90c86d..70a12f5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Balotaro [![GPLv3](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://raw.githubusercontent.com/slimaku/balotaro/master/LICENSE) -[![Version](https://img.shields.io/badge/version-1.0.0-brightgreen.svg)](https://github.com/slimaku/balotaro/releases/tag/v1.0-rc1) +[![Version](https://img.shields.io/badge/version-1.0.1-brightgreen.svg)](https://github.com/slimaku/balotaro/releases/tag/v1.0-rc1) [![Build Status](https://travis-ci.org/slimaku/balotaro.svg?branch=master)](https://travis-ci.org/slimaku/balotaro) [![Codebeat](https://codebeat.co/badges/04435b31-0902-4b20-b315-138e4e7d8562)](https://codebeat.co/projects/github-com-slimaku-balotaro) [![Issues](https://img.shields.io/github/issues/slimaku/balotaro.svg)](https://github.com/slimaku/balotaro/issues) diff --git a/build.gradle b/build.gradle index dad32b9..33e84d5 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ group 'balotenketo' -version '1.0' +version '1.0.1' buildscript { ext { diff --git a/src/main/kotlin/balotenketo/balotaro/Version.kt b/src/main/kotlin/balotenketo/balotaro/Version.kt index 9c47fd8..f405537 100644 --- a/src/main/kotlin/balotenketo/balotaro/Version.kt +++ b/src/main/kotlin/balotenketo/balotaro/Version.kt @@ -13,7 +13,7 @@ object Version { val minor = 0 @ApiModelProperty("Patch version (null if it is a pre-release)") - val patch: Int? = 0 + val patch: Int? = 1 @ApiModelProperty("Pre-release label (null if it is not a pre-release)") val label: String? = null @@ -21,5 +21,5 @@ object Version { @ApiModelProperty("True if it is a pre-release and false otherwise. (Pre-releases shouldn't be used in production)") val isPreRelease = label != null - override fun toString() = "$major.$minor${patch ?: "-$label"}" + override fun toString() = "$major.$minor.${patch ?: "-$label"}" } \ No newline at end of file