Skip to content

Commit

Permalink
Release 1.7.0 (#1386)
Browse files Browse the repository at this point in the history
- Bump version: 1.6.0 → 1.7.0
- Update changelog
- Update changelog contributor credits
- Update dependencies
- Update man page
- Update version references in readme
  • Loading branch information
casey authored Oct 27, 2022
1 parent 5e932c4 commit c834fb1
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 36 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 `<sup>master</sup>` 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
----------------------------------------------------------------------

Expand Down
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "just"
version = "1.6.0"
version = "1.7.0"
description = "🤖 Just a command runner"
authors = ["Casey Rodarmor <casey@rodarmor.com>"]
license = "CC0-1.0"
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1143,25 +1143,25 @@ The executable is at: /bin/just

#### String Manipulation

- `capitalize(s)`<sup>master</sup> - Convert first character of `s` to uppercase and the rest to lowercase.
- `capitalize(s)`<sup>1.7.0</sup> - Convert first character of `s` to uppercase and the rest to lowercase.

- `kebabcase(s)`<sup>master</sup> - Convert `s` to `kebab-case`.
- `kebabcase(s)`<sup>1.7.0</sup> - Convert `s` to `kebab-case`.

- `lowercamelcase(s)`<sup>master</sup> - Convert `s` to `lowerCamelCase`.
- `lowercamelcase(s)`<sup>1.7.0</sup> - Convert `s` to `lowerCamelCase`.

- `lowercase(s)` - Convert `s` to lowercase.

- `quote(s)` - Replace all single quotes with `'\''` and prepend and append single quotes to `s`. This is sufficient to escape special characters for many shells, including most Bourne shell descendants.

- `replace(s, from, to)` - Replace all occurrences of `from` in `s` to `to`.

- `shoutykebabcase(s)`<sup>master</sup> - Convert `s` to `SHOUTY-KEBAB-CASE`.
- `shoutykebabcase(s)`<sup>1.7.0</sup> - Convert `s` to `SHOUTY-KEBAB-CASE`.

- `shoutysnakecase(s)`<sup>master</sup> - Convert `s` to `SHOUTY_SNAKE_CASE`.
- `shoutysnakecase(s)`<sup>1.7.0</sup> - Convert `s` to `SHOUTY_SNAKE_CASE`.

- `snakecase(s)`<sup>master</sup> - Convert `s` to `snake_case`.
- `snakecase(s)`<sup>1.7.0</sup> - Convert `s` to `snake_case`.

- `titlecase(s)`<sup>master</sup> - Convert `s` to `Title Case`.
- `titlecase(s)`<sup>1.7.0</sup> - Convert `s` to `Title Case`.

- `trim(s)` - Remove leading and trailing whitespace from `s`.

Expand All @@ -1179,7 +1179,7 @@ The executable is at: /bin/just

- `uppercase(s)` - Convert `s` to uppercase.

- `uppercamelcase(s)`<sup>master</sup> - Convert `s` to `UpperCamelCase`.
- `uppercamelcase(s)`<sup>1.7.0</sup> - Convert `s` to `UpperCamelCase`.

#### Path Manipulation

Expand Down
31 changes: 21 additions & 10 deletions bin/update-contributors/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
4 changes: 2 additions & 2 deletions man/just.1
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c834fb1

Please sign in to comment.