From 32a88b1e07d8b869ff9d9fda144ed6f4a1e60527 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 16 Mar 2022 16:13:37 +0200 Subject: [PATCH 1/5] Sync README. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d83d5f7..f493b02 100644 --- a/README.md +++ b/README.md @@ -344,6 +344,7 @@ This crate offers a set of builtin functions. | `floor` | 1 | Numeric | Returns the largest integer less than or equal to a number | | `round` | 1 | Numeric | Returns the nearest integer to a number. Rounds half-way cases away from 0.0 | | `ceil` | 1 | Numeric | Returns the smallest integer greater than or equal to a number | +| `if` | 3 | Boolean, Any, Any | If the first argument is true, returns the second argument, otherwise, returns the third | | `math::ln` | 1 | Numeric | Returns the natural logarithm of the number | | `math::log` | 2 | Numeric, Numeric | Returns the logarithm of the number with respect to an arbitrary base | | `math::log2` | 1 | Numeric | Returns the base 2 logarithm of the number | From d321fa93633368fa30ea8130190faeb299bad581 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 16 Mar 2022 16:18:32 +0200 Subject: [PATCH 2/5] Prepare changelog for 7.2.0 release. --- CHANGELOG.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0181fa9..25cd780 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,19 @@ ### Contributors -## [7.1.1](https://github.com/ISibboI/evalexpr/compare/7.1.1...7.1.1) - 2022-03-14 +## [7.2.0](https://github.com/ISibboI/evalexpr/compare/7.1.1...7.2.0) - 2022-03-16 + +### Added + + * The builtin function `if`, which mimics the if-else construct existing in many programming languages. + +### Contributors + +My warmhearted thanks goes to: + + * [Ophir LOJKINE](https://github.com/lovasoa) + +## [7.1.1](https://github.com/ISibboI/evalexpr/compare/7.1.0...7.1.1) - 2022-03-14 ### Fixed From e9ebb211e0fb5b9dcfef2a7f2b12c8e62257deb8 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 16 Mar 2022 16:22:14 +0200 Subject: [PATCH 3/5] Add sync-readme check to CI. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2caa341..6c29ca8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,12 @@ jobs: command: clippy args: --all-features --tests --benches components: clippy + - toolchain: stable + command: + name: Sync readme + command: sync-readme + args: --check + components: cargo-sync-readme steps: - uses: actions/checkout@v2 From ddd088a1eebf10dbb10b015102da01aa1fb9da6f Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 16 Mar 2022 16:26:11 +0200 Subject: [PATCH 4/5] Try fixing sync-readme in CI. --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c29ca8..bb46831 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,6 @@ jobs: name: Sync readme command: sync-readme args: --check - components: cargo-sync-readme steps: - uses: actions/checkout@v2 @@ -59,6 +58,12 @@ jobs: default: true components: ${{matrix.command.components}} + - name: Install cargo-sync-readme + uses: actions-rs/cargo@v1 + with: + command: install + args: cargo-sync-readme + - name: ${{matrix.command.name}} uses: actions-rs/cargo@v1 with: From c514410323ea75225f4cbb1bedf89a95d1536516 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 16 Mar 2022 16:30:12 +0200 Subject: [PATCH 5/5] Release 7.2.0 evalexpr@7.2.0 Generated by cargo-workspaces --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5da3db0..7868b66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "evalexpr" -version = "7.1.1" +version = "7.2.0" description = "A powerful arithmetic and boolean expression evaluator" keywords = ["expression", "evaluate", "evaluator", "arithmetic", "boolean"] categories = ["parsing", "game-engines"]