Skip to content

Commit 9cd8526

Browse files
committed
prepare actix-router release 0.5.0-beta.3
1 parent 73bbe56 commit 9cd8526

5 files changed

Lines changed: 47 additions & 3 deletions

File tree

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ actix-utils = "3.0.0"
7878
actix-tls = { version = "3.0.0-rc.1", default-features = false, optional = true }
7979

8080
actix-http = "3.0.0-beta.16"
81-
actix-router = "0.5.0-beta.2"
81+
actix-router = "0.5.0-beta.3"
8282
actix-web-codegen = "0.5.0-beta.6"
8383

8484
ahash = "0.7"

‎actix-router/CHANGES.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changes
22

33
## Unreleased - 2021-xx-xx
4+
5+
6+
## 0.5.0-beta.3 - 2021-12-17
47
* Minimum supported Rust version (MSRV) is now 1.52.
58

69

‎actix-router/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "actix-router"
3-
version = "0.5.0-beta.2"
3+
version = "0.5.0-beta.3"
44
authors = [
55
"Nikolay Kim <[email protected]>",
66
"Ali MJ Al-Nasrawy <[email protected]>",

‎actix-web-codegen/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ proc-macro = true
1818
quote = "1"
1919
syn = { version = "1", features = ["full", "parsing"] }
2020
proc-macro2 = "1"
21-
actix-router = "0.5.0-beta.2"
21+
actix-router = "0.5.0-beta.3"
2222

2323
[dev-dependencies]
2424
actix-macros = "0.2.3"

‎scripts/unreleased‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/sh
2+
3+
set -euo pipefail
4+
5+
bold="\033[1m"
6+
reset="\033[0m"
7+
8+
unreleased_for() {
9+
DIR=$1
10+
11+
CARGO_MANIFEST=$DIR/Cargo.toml
12+
CHANGELOG_FILE=$DIR/CHANGES.md
13+
14+
# get current version
15+
PACKAGE_NAME="$(sed -nE 's/^name ?= ?"([^"]+)"$/\1/ p' "$CARGO_MANIFEST" | head -n 1)"
16+
CURRENT_VERSION="$(sed -nE 's/^version ?= ?"([^"]+)"$/\1/ p' "$CARGO_MANIFEST")"
17+
18+
CHANGE_CHUNK_FILE="$(mktemp)"
19+
20+
# get changelog chunk and save to temp file
21+
cat "$CHANGELOG_FILE" |
22+
# skip up to unreleased heading
23+
sed '1,/Unreleased/ d' |
24+
# take up to previous version heading
25+
sed "/$CURRENT_VERSION/ q" |
26+
# drop last line
27+
sed '$d' \
28+
>"$CHANGE_CHUNK_FILE"
29+
30+
# if word count of changelog chunk is 0 then exit
31+
if [ "$(wc -w "$CHANGE_CHUNK_FILE" | awk '{ print $1 }')" = "0" ]; then
32+
return 0;
33+
fi
34+
35+
echo "${bold}# ${PACKAGE_NAME}${reset} since ${bold}v$CURRENT_VERSION${reset}"
36+
cat "$CHANGE_CHUNK_FILE"
37+
}
38+
39+
for f in $(fd --absolute-path CHANGES.md); do
40+
unreleased_for $(dirname $f)
41+
done

0 commit comments

Comments
 (0)