Skip to content

Commit

Permalink
Prepare for release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSikora committed Dec 31, 2020
1 parent 6db3770 commit a1bb1d4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {
}
dependencies {
implementation "io.mehow.ruler:ruler:1.0.0"
implementation "io.mehow.ruler:ruler:2.0.0"
}
```

Expand Down Expand Up @@ -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()
}
```
Expand Down
5 changes: 4 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
```
Expand Down Expand Up @@ -65,17 +65,17 @@ repositories {
}
dependencies {
implementation "io.mehow.ruler:ruler:1.0.0"
implementation "io.mehow.ruler:ruler:2.0.0"
}
```

Snapshots of the development version are available on [Sonatype's snapshots repository](https://oss.sonatype.org/content/repositories/snapshots/io/mehow/ruler/).

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

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit a1bb1d4

Please sign in to comment.