Skip to content

Commit 4857211

Browse files
authored
Merge pull request #32 from yaahc/release
(cargo-release) version 0.2.3
2 parents c59c084 + 40f0994 commit 4857211

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
<!-- next-header -->
88

9-
# [Unreleased] - ReleaseDate
9+
## [Unreleased] - ReleaseDate
10+
11+
# [0.2.3] - 2021-07-16
1012
## Added
1113
- Added `#[displaydoc("..")]` attribute for overriding a doc comment
1214

@@ -30,7 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3032
lines are needed.
3133

3234
<!-- next-url -->
33-
[Unreleased]: https://github.com/yaahc/displaydoc/compare/v0.2.2...HEAD
35+
[Unreleased]: https://github.com/yaahc/displaydoc/compare/v0.2.3...HEAD
36+
[0.2.3]: https://github.com/yaahc/displaydoc/compare/v0.2.2...v0.2.3
3437
[0.2.2]: https://github.com/yaahc/displaydoc/compare/v0.2.1...v0.2.2
3538
[0.2.1]: https://github.com/yaahc/displaydoc/compare/v0.2.0...v0.2.1
3639
[0.2.0]: https://github.com/yaahc/displaydoc/releases/tag/v0.2.0

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "displaydoc"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
authors = ["Jane Lusby <jlusby@yaah.dev>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"
@@ -40,6 +40,7 @@ rustdoc-args = ["--cfg", "docsrs"]
4040

4141
[package.metadata.release]
4242
no-dev-version = true
43+
pre-release-hook = ["./update-readme.sh"]
4344

4445
[[package.metadata.release.pre-release-replacements]]
4546
file = "CHANGELOG.md"
@@ -60,7 +61,7 @@ replace="{{date}}"
6061
[[package.metadata.release.pre-release-replacements]]
6162
file="CHANGELOG.md"
6263
search="<!-- next-header -->"
63-
replace="<!-- next-header -->\n\n## [Unreleased] - ReleaseDate"
64+
replace="<!-- next-header -->\n\n# [Unreleased] - ReleaseDate"
6465
exactly=1
6566

6667
# Disable this replacement on the very first release
@@ -76,3 +77,4 @@ file="CHANGELOG.md"
7677
search="<!-- next-url -->"
7778
replace="<!-- next-url -->\n[Unreleased]: https://github.com/yaahc/{{crate_name}}/compare/{{tag_name}}...HEAD"
7879
exactly=1
80+

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
//!
7676
//! 2. **Does this crate work with `Path` and `PathBuf` via the `Display` trait?**
7777
//! * Yuuup. This crate uses @dtolnay's [autoref specialization technique](https://github.com/dtolnay/case-studies/blob/master/autoref-specialization/README.md) to add a special trait for types to get the display impl, it then specializes for `Path` and `PathBuf` and when either of these types are found it calls `self.display()` to get a `std::path::Display<'_>` type which can be used with the Display format specifier!
78-
#![doc(html_root_url = "https://docs.rs/displaydoc/0.2.2")]
78+
#![doc(html_root_url = "https://docs.rs/displaydoc/0.2.3")]
7979
#![cfg_attr(docsrs, feature(doc_cfg))]
8080
#![warn(
8181
rust_2018_idioms,

update-readme.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#! /usr/bin/env bash
2+
3+
cargo readme > ./README.md
4+
git add ./README.md
5+
git commit -m "Update readme" || true

0 commit comments

Comments
 (0)