From 3783b6ace86957c95e5137c7645af319dd2462e9 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 28 Mar 2021 17:13:27 +0300 Subject: feat: set version in Cargo.toml for Rust projects --- bumper.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'bumper.md') diff --git a/bumper.md b/bumper.md index a1bb929..b4a269f 100644 --- a/bumper.md +++ b/bumper.md @@ -71,16 +71,18 @@ doesn't find any files it knows about. ~~~scenario given an installed Bumper -given file random.txt -when I try to run bumper 1.2.3 +given file foo/random.txt from Cargo.toml +given all files in foo are committed to git +when I try to run, in foo, bumper 1.2 then command fails -then only files random.txt exist +then only files random.txt, and .git exist in foo ~~~ ~~~{#random.txt .file} Some random text file Bumper knows nothing about. ~~~ + ## Creates a release tag This scenario verifies that Bumper creates a git tag to mark a @@ -92,8 +94,9 @@ given an installed Bumper given file foo/Cargo.toml from Cargo.toml given all files in foo are committed to git given the HEAD commit in foo is COMMIT -when I run, in foo, bumper 1.2 -then in foo, git tag v1.2 is a signed tag pointing at +when I run, in foo, bumper 1.2.0 +then in foo, git tag v1.2.0 is a signed tag pointing at +then file foo/Cargo.toml matches regex /version\s*=\s*"1\.2\.0"/ ~~~ ~~~{#Cargo.toml .file .ini} -- cgit v1.2.1