Skip to content
This repository has been archived by the owner on Nov 21, 2021. It is now read-only.

Commit

Permalink
Release 0.2.0 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdno committed Jul 27, 2021
1 parent f710eb2 commit a767909
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 14 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] – 2021-07-27

### Added

- Create service that manages the game and its state
Expand Down Expand Up @@ -37,7 +39,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Create an endpoint that returns the version of Lunaria

[unreleased]: https://github.com/playlunaria/lunaria-api/compare/v0.1.3...HEAD
[unreleased]: https://github.com/playlunaria/lunaria-api/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/playlunaria/lunaria-api/releases/tag/v0.2.0
[0.1.3]: https://github.com/playlunaria/lunaria-api/releases/tag/v0.1.3
[0.1.2]: https://github.com/playlunaria/lunaria-api/releases/tag/v0.1.2
[0.1.1]: https://github.com/playlunaria/lunaria-api/releases/tag/v0.1.1
Expand Down
6 changes: 3 additions & 3 deletions bin/prepare-release
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ read -ra current_version_components <<< "$current_version"
read -ra next_version_components <<< "$next_version"
IFS=$'\n\t'

vim -c "%s/expect(version.getMajor()).toEqual(${current_version_components[0]});/expect(version.getMajor()).toEqual(${next_version_components[0]});/g" -c "wq" "languages/node/test/version.test.ts"
vim -c "%s/expect(version.getMinor()).toEqual(${current_version_components[1]});/expect(version.getMinor()).toEqual(${next_version_components[1]});/g" -c "wq" "languages/node/test/version.test.ts"
vim -c "%s/expect(version.getPatch()).toEqual(${current_version_components[2]});/expect(version.getPatch()).toEqual(${next_version_components[2]});/g" -c "wq" "languages/node/test/version.test.ts"
vim -c "%s/expect(version.getMajor()).toEqual(${current_version_components[0]});/expect(version.getMajor()).toEqual(${next_version_components[0]});/g" -c "wq" "languages/node/test/lunaria.test.ts"
vim -c "%s/expect(version.getMinor()).toEqual(${current_version_components[1]});/expect(version.getMinor()).toEqual(${next_version_components[1]});/g" -c "wq" "languages/node/test/lunaria.test.ts"
vim -c "%s/expect(version.getPatch()).toEqual(${current_version_components[2]});/expect(version.getPatch()).toEqual(${next_version_components[2]});/g" -c "wq" "languages/node/test/lunaria.test.ts"

vim -c "%s/assert_eq!(${current_version_components[0]}, version.major);/assert_eq!(${next_version_components[0]}, version.major);/g" -c "wq" "languages/rust/src/lib.rs"
vim -c "%s/assert_eq!(${current_version_components[1]}, version.minor);/assert_eq!(${next_version_components[1]}, version.minor);/g" -c "wq" "languages/rust/src/lib.rs"
Expand Down
2 changes: 1 addition & 1 deletion languages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lunaria-api",
"version": "0.1.3",
"version": "0.2.0",
"description": "API client for the video game Lunaria",
"keywords": [
"api",
Expand Down
4 changes: 2 additions & 2 deletions languages/node/test/lunaria.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ test("getVersion returns Lunaria's version", async () => {

if (version !== undefined) {
expect(version.getMajor()).toEqual(0);
expect(version.getMinor()).toEqual(1);
expect(version.getPatch()).toEqual(3);
expect(version.getMinor()).toEqual(2);
expect(version.getPatch()).toEqual(0);
} else {
expect(version).toBeDefined();
}
Expand Down
2 changes: 1 addition & 1 deletion languages/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lunaria-api"
version = "0.1.3"
version = "0.2.0"
authors = [
"Lunaria Contributors",
"Jan David Nose <jandavid@playlunaria.com>",
Expand Down
2 changes: 1 addition & 1 deletion languages/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ an async runtime like [`tokio`][tokio].

```toml
[dependencies]
lunaria-api = "0.1.3"
lunaria-api = "0.2.0"
tokio = { version = "0.2.22", features = ["macros", "rt-threaded"] }
tonic = "0.3.1"
```
Expand Down
6 changes: 3 additions & 3 deletions languages/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//!
//! ```toml
//! [dependencies]
//! lunaria-api = "0.1.3"
//! lunaria-api = "0.2.0"
//! tokio = { version = "0.2.22", features = ["macros", "rt-threaded"] }
//! tonic = "0.3.1"
//! ```
Expand All @@ -49,8 +49,8 @@
//!
//! if let Some(version) = version_response.version {
//! assert_eq!(0, version.major);
//! assert_eq!(1, version.minor);
//! assert_eq!(3, version.patch);
//! assert_eq!(2, version.minor);
//! assert_eq!(0, version.patch);
//! }
//!
//! Ok(())
Expand Down
4 changes: 2 additions & 2 deletions test-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "test-server"
version = "0.1.3"
version = "0.2.0"
authors = ["Jan David <jandavid@playlunaria.com>"]
edition = "2018"
publish = false
Expand All @@ -9,7 +9,7 @@ publish = false
# https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
lunaria-api = { path = "../languages/rust", version = "0.1.3", features = ["server"] }
lunaria-api = { path = "../languages/rust", version = "0.2.0", features = ["server"] }

tokio = { version = "1.7.1", features = ["full"] }
tokio-stream = "0.1.7"
Expand Down

0 comments on commit a767909

Please sign in to comment.