From a1bb1d401ae2219663936f82400323cc47bd2d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sikora?= Date: Thu, 31 Dec 2020 03:14:21 +0100 Subject: [PATCH] Prepare for release 2.0.0 --- README.md | 4 ++-- docs/changelog.md | 5 ++++- docs/index.md | 10 +++++----- gradle.properties | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c17fef8a..e5c22195 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ repositories { } dependencies { - implementation "io.mehow.ruler:ruler:1.0.0" + implementation "io.mehow.ruler:ruler:2.0.0" } ``` @@ -66,7 +66,7 @@ fun main(context: Context) { // Prints "109yd 1ft 1in". val humanReadableDistance: String = distance.format() - // Prints "100.00m". + // Prints "2.0.00m". val humanReadableLength: String = length.format() } ``` diff --git a/docs/changelog.md b/docs/changelog.md index 83c975bf..5551d8d0 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.0.0] - 2020-12-31 + ### Added - `Distance.format()` and `Length.format()` that do not require specifying `android.content.Context`. This a part of a large overhaul of this library. See `Changed` section for more information. - `Distance.Epsilon` constant that represents smallest possible change in of `Distance`. @@ -167,7 +169,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release. -[Unreleased]: https://github.com/MiSikora/ruler/compare/1.0.0...HEAD +[Unreleased]: https://github.com/MiSikora/ruler/compare/2.0.0...HEAD +[2.0.0]: https://github.com/MiSikora/ruler/releases/tag/2.0.0 [1.0.0]: https://github.com/MiSikora/ruler/releases/tag/1.0.0 [0.6.0]: https://github.com/MiSikora/ruler/releases/tag/0.6.0 [0.5.3]: https://github.com/MiSikora/ruler/releases/tag/0.5.3 diff --git a/docs/index.md b/docs/index.md index cda2075b..c027e6e2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -33,7 +33,7 @@ fun main(context: Context) { // Prints "109yd 1ft 1in". val humanReadableDistance: String = distance.format() - // Prints "100.00m". + // Prints "2.0.00m". val humanReadableLength: String = length.format() } ``` @@ -65,7 +65,7 @@ repositories { } dependencies { - implementation "io.mehow.ruler:ruler:1.0.0" + implementation "io.mehow.ruler:ruler:2.0.0" } ``` @@ -73,9 +73,9 @@ Snapshots of the development version are available on [Sonatype's snapshots repo Here is the list of all available artifacts that Ruler library provides. -- **`io.mehow.ruler:ruler:1.0.0`**: Core of the library. Defines classes and interfaces that represent distances and gives capabilities to format the for a user in a human-readable way. -- **`io.mehow.ruler:ruler-android:1.0.0`**: Provides formatting behaviour that can be installed at runtime in the core library. -- **`io.mehow.ruler:ruler-android-startup:1.0.0`**: Uses [Jetpack Startup](https://developer.android.com/topic/libraries/app-startup) library to initialize Ruler with Android context formatting. +- **`io.mehow.ruler:ruler:2.0.0`**: Core of the library. Defines classes and interfaces that represent distances and gives capabilities to format the for a user in a human-readable way. +- **`io.mehow.ruler:ruler-android:2.0.0`**: Provides formatting behaviour that can be installed at runtime in the core library. +- **`io.mehow.ruler:ruler-android-startup:2.0.0`**: Uses [Jetpack Startup](https://developer.android.com/topic/libraries/app-startup) library to initialize Ruler with Android context formatting. ## Attribution diff --git a/gradle.properties b/gradle.properties index 72e24460..368dfa18 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=io.mehow.ruler -VERSION_NAME=1.0.1-SNAPSHOT +VERSION_NAME=2.0.0 POM_DESCRIPTION=Library for distance measurments.