From b0dd53463c502470cf1c1baf0c3ccd87a7d96fe2 Mon Sep 17 00:00:00 2001 From: Trevor McMaster Date: Mon, 3 Oct 2022 07:40:12 -0600 Subject: [PATCH] Updated version for release (#100) * Updated version for release * Added duration changes to the README * Updated the release script to add a -d option --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 4 ++++ release.sh | 19 ++++++++++++++++--- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ecf73e90..dadbd607 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1239,7 +1239,7 @@ dependencies = [ [[package]] name = "pewpew" -version = "0.5.10" +version = "0.5.11" dependencies = [ "atty", "base64", diff --git a/Cargo.toml b/Cargo.toml index d21e78bc..e7eb03ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pewpew" -version = "0.5.10" +version = "0.5.11" edition = "2018" default-run = "pewpew" publish = false diff --git a/README.md b/README.md index ea9a8e5d..48cd7479 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,10 @@ Pewpew is an HTTP load test tool designed for ease of use and high performance. ### v0.5.11 Changes: - Added armv7 (Raspberry Pi) and aarch64 (AWS Graviton) builds +- Due to standard library changes to Durations, [conversions from float to Durations are now rounded rather than truncated](https://github.com/rust-lang/rust/pull/96051) + +Bug fixes: +- Updated dependencies ### v0.5.10 Changes: diff --git a/release.sh b/release.sh index baba834a..c1c09ff1 100755 --- a/release.sh +++ b/release.sh @@ -1,6 +1,6 @@ #!/bin/bash set -e -set -x +set +x printusage() { if ! [[ -z "$1" ]] ; then @@ -11,16 +11,29 @@ printusage() { exit 1 } +if [ "$1" == "-d" ] || [ "$1" == "delete" ] ; then + shift; + export DELETE="true" +fi + if [[ -z "$1" ]] ; then printusage Must provide a tag version fi +if [[ ! -z "$DELETE" ]] ; then + echo "git tag -d \"$1\"" + git tag -d "$1" + echo "git push --delete origin \"$1\"" + git push --delete origin "$1" +fi + +echo "git tag -a \"$1\" -m \"$1 -echo git tag -d "$1" -echo git push --delete origin "$1" +${@:2}\"" git tag -a "$1" -m "$1 ${@:2}" +echo "git push origin \"$1\"" git push origin "$1"