diff --git a/CHANGELOG.md b/CHANGELOG.md index 15a32ad..e61a669 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,25 @@ Changelog ========= +[1.7.0](https://github.com/casey/just/releases/tag/1.7.0) - 2022-10-26 +---------------------------------------------------------------------- + +### Breaking Changes to Unstable Features +- Make `fallback` setting default to true (#1384) + +### Added +- Add more case-conversion functions (#1383 by @gVirtu) +- Add `tempdir` setting (#1369 by @dmatos2012) +- Add [no-exit-message] recipe annotation (#1354 by @gokhanettin) +- Add `capitalize(s)` function (#1375 by @femnad) + +### Misc +- Credit contributors in changelog (#1385) +- Update asdf just plugin repository (#1380 by @kachick) +- Prepend commit messages with `- ` in changelog (#1379) +- Fail publish if `master` is found in README.md (#1378) +- Use for loop in capitalize implementation (#1377) + [1.6.0](https://github.com/casey/just/releases/tag/1.6.0) - 2022-10-19 ---------------------------------------------------------------------- diff --git a/Cargo.lock b/Cargo.lock index edf4e65..b45dd32 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -247,9 +247,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ "cfg-if", "libc", @@ -303,7 +303,7 @@ checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc" [[package]] name = "just" -version = "1.6.0" +version = "1.7.0" dependencies = [ "ansi_term", "atty", @@ -353,9 +353,9 @@ checksum = "441225017b106b9f902e97947a6d31e44ebcf274b91bdbfb51e5c477fcd468e5" [[package]] name = "libc" -version = "0.2.135" +version = "0.2.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68783febc7782c6c5cb401fbda4de5a9898be1762314da0bb2c10ced61f18b0c" +checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89" [[package]] name = "linked-hash-map" @@ -544,18 +544,18 @@ checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" [[package]] name = "serde" -version = "1.0.145" +version = "1.0.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "728eb6351430bccb993660dfffc5a72f91ccc1295abaa8ce19b27ebe4f75568b" +checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.145" +version = "1.0.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81fa1584d3d1bcacd84c277a0dfe21f5b0f6accf4a23d04d4c6d61f1af522b4c" +checksum = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852" dependencies = [ "proc-macro2", "quote", @@ -596,9 +596,9 @@ dependencies = [ [[package]] name = "snafu" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd726aec4ebad65756394ff89a9b9598793d4e30121cd71690244c1e497b3aee" +checksum = "a152ba99b054b22972ee794cf04e5ef572da1229e33b65f3c57abbff0525a454" dependencies = [ "doc-comment", "snafu-derive", @@ -606,9 +606,9 @@ dependencies = [ [[package]] name = "snafu-derive" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712529e9b0b014eabaa345b38e06032767e3dc393e8b017e853b1d7247094e74" +checksum = "d5e79cdebbabaebb06a9bdbaedc7f159b410461f63611d4d0e3fb0fab8fed850" dependencies = [ "heck 0.4.0", "proc-macro2", @@ -670,9 +670,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.102" +version = "1.0.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fcd952facd492f9be3ef0d0b7032a6e442ee9b361d4acc2b1d0c4aaa5f613a1" +checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 125f331..8507e08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "just" -version = "1.6.0" +version = "1.7.0" description = "🤖 Just a command runner" authors = ["Casey Rodarmor "] license = "CC0-1.0" diff --git a/README.md b/README.md index 2ef98bc..767b682 100644 --- a/README.md +++ b/README.md @@ -1143,11 +1143,11 @@ The executable is at: /bin/just #### String Manipulation -- `capitalize(s)`master - Convert first character of `s` to uppercase and the rest to lowercase. +- `capitalize(s)`1.7.0 - Convert first character of `s` to uppercase and the rest to lowercase. -- `kebabcase(s)`master - Convert `s` to `kebab-case`. +- `kebabcase(s)`1.7.0 - Convert `s` to `kebab-case`. -- `lowercamelcase(s)`master - Convert `s` to `lowerCamelCase`. +- `lowercamelcase(s)`1.7.0 - Convert `s` to `lowerCamelCase`. - `lowercase(s)` - Convert `s` to lowercase. @@ -1155,13 +1155,13 @@ The executable is at: /bin/just - `replace(s, from, to)` - Replace all occurrences of `from` in `s` to `to`. -- `shoutykebabcase(s)`master - Convert `s` to `SHOUTY-KEBAB-CASE`. +- `shoutykebabcase(s)`1.7.0 - Convert `s` to `SHOUTY-KEBAB-CASE`. -- `shoutysnakecase(s)`master - Convert `s` to `SHOUTY_SNAKE_CASE`. +- `shoutysnakecase(s)`1.7.0 - Convert `s` to `SHOUTY_SNAKE_CASE`. -- `snakecase(s)`master - Convert `s` to `snake_case`. +- `snakecase(s)`1.7.0 - Convert `s` to `snake_case`. -- `titlecase(s)`master - Convert `s` to `Title Case`. +- `titlecase(s)`1.7.0 - Convert `s` to `Title Case`. - `trim(s)` - Remove leading and trailing whitespace from `s`. @@ -1179,7 +1179,7 @@ The executable is at: /bin/just - `uppercase(s)` - Convert `s` to uppercase. -- `uppercamelcase(s)`master - Convert `s` to `UpperCamelCase`. +- `uppercamelcase(s)`1.7.0 - Convert `s` to `UpperCamelCase`. #### Path Manipulation diff --git a/bin/update-contributors/src/main.rs b/bin/update-contributors/src/main.rs index d6e0ad3..9f2d838 100644 --- a/bin/update-contributors/src/main.rs +++ b/bin/update-contributors/src/main.rs @@ -23,18 +23,29 @@ fn author(pr: u64) -> String { } fn main() { + let mut done = false; + fs::write( "CHANGELOG.md", - &*Regex::new(r"\(#(\d+)\)").unwrap().replace_all( - &fs::read_to_string("CHANGELOG.md").unwrap(), - |captures: &Captures| { - let pr = captures[1].parse().unwrap(); - match author(pr).as_str() { - "casey" => format!("(#{})", pr), - contributor => format!("(#{} by @{})", pr, contributor), - } - }, - ), + &*Regex::new(r"\(#(\d+)( by @[a-z]+)?\)") + .unwrap() + .replace_all( + &fs::read_to_string("CHANGELOG.md").unwrap(), + |captures: &Captures| { + if captures.get(2).is_some() { + done = true; + } + if done { + captures[0].to_owned() + } else { + let pr = captures[1].parse().unwrap(); + match author(pr).as_str() { + "casey" => format!("(#{})", pr), + contributor => format!("(#{} by @{})", pr, contributor), + } + } + }, + ), ) .unwrap(); } diff --git a/man/just.1 b/man/just.1 index 9431d79..a9993fd 100644 --- a/man/just.1 +++ b/man/just.1 @@ -1,9 +1,9 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. -.TH JUST "1" "October 2022" "just 1.6.0" "Just Manual" +.TH JUST "1" "October 2022" "just 1.7.0" "Just Manual" .SH NAME just \- save and run commands .SH DESCRIPTION -just 1.6.0 +just 1.7.0 \- Please see https://github.com/casey/just for more information. .SS "USAGE:" .IP