From fc5d1d5ee9adcd51b0ea093fb9fe55fe3b30e94a Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 30 Mar 2019 11:19:01 +0100 Subject: [PATCH 1/2] readme: add changelog for 1.2.1 This seems to have been forgotten in 703e9c25. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index c6f846a..cb0f331 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,13 @@ unicode-segmentation = "1.2.1" # Change Log +## 1.2.1 + +* [#37](https://github.com/unicode-rs/unicode-segmentation/pull/37): + Fix panic in `provide_context`. +* [#40](https://github.com/unicode-rs/unicode-segmentation/pull/40): + Fix crash in `prev_boundary`. + ## 1.2.0 * New `GraphemeCursor` API allows random access and bidirectional iteration. From 827ed2e58531e5483a90f74798ea754cbcade3cb Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 30 Mar 2019 11:20:14 +0100 Subject: [PATCH 2/2] tests: ensure version numbers in README are always up to date This adds a test that will check the examples in README.md for the current package version. It also checks that there is a Markdown heading mentioning (at least) the current version. This serves as a simple check that the change log section is updated when the version number is bumped. Related to #30, #41, #47, and #48. --- Cargo.toml | 1 + tests/version-numbers.rs | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/version-numbers.rs diff --git a/Cargo.toml b/Cargo.toml index 9ad7ef8..239392f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,3 +23,4 @@ no_std = [] # This is a no-op, preserved for backward compatibility only. [dev-dependencies] quickcheck = "0.7" +version-sync = "0.8" diff --git a/tests/version-numbers.rs b/tests/version-numbers.rs new file mode 100644 index 0000000..e8be955 --- /dev/null +++ b/tests/version-numbers.rs @@ -0,0 +1,14 @@ +#[test] +fn test_readme_deps() { + version_sync::assert_markdown_deps_updated!("README.md"); +} + +#[test] +fn test_readme_changelog() { + version_sync::assert_contains_regex!("README.md", r"^## {version}$"); +} + +#[test] +fn test_html_root_url() { + version_sync::assert_html_root_url_updated!("src/lib.rs"); +} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy