Skip to content

Commit

Permalink
release: 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Feb 8, 2024
2 parents c456141 + 9013ec6 commit 964b41e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@



## [0.7.1](https://github.com/Blobfolio/argyle/releases/tag/v0.7.1) - 2024-02-08

### Changed

* Minor code cleanup and lints



## [0.7.0](https://github.com/Blobfolio/argyle/releases/tag/v0.7.0) - 2024-01-20

### Breaking
Expand Down
4 changes: 2 additions & 2 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Project Dependencies
Package: argyle
Version: 0.7.0
Generated: 2024-01-21 05:07:09 UTC
Version: 0.7.1
Generated: 2024-02-08 17:45:11 UTC

This package has no dependencies.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "argyle"
version = "0.7.0"
version = "0.7.1"
authors = ["Blobfolio, LLC. <[email protected]>"]
edition = "2021"
rust-version = "1.70"
Expand Down
13 changes: 1 addition & 12 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pkg_id := "argyle"
pkg_name := "Argyle"

cargo_dir := "/tmp/" + pkg_id + "-cargo"
cargo_bin := cargo_dir + "/x86_64-unknown-linux-gnu/release/" + pkg_id
doc_dir := justfile_directory() + "/doc"


Expand All @@ -33,13 +32,11 @@ bench BENCH="":
cargo bench \
--benches \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"
else
cargo bench \
--bench "{{ BENCH }}" \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"
fi
exit 0
Expand All @@ -63,7 +60,6 @@ bench BENCH="":
cargo clippy \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"


Expand All @@ -81,7 +77,6 @@ bench BENCH="":
--all-features \
--release \
--example "debug" \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}" \
-- {{ ARGS }}

Expand All @@ -93,7 +88,6 @@ bench BENCH="":
-q \
--release \
--example "list" \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}" \
-- -l - "foo/bar"

Expand All @@ -107,14 +101,13 @@ bench BENCH="":
cargo +nightly rustdoc \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}" \
-- \
--cfg docsrs

# Move the docs and clean up ownership.
[ ! -d "{{ doc_dir }}" ] || rm -rf "{{ doc_dir }}"
mv "{{ cargo_dir }}/x86_64-unknown-linux-gnu/doc" "{{ justfile_directory() }}"
mv "{{ cargo_dir }}/doc" "{{ justfile_directory() }}"
just _fix-chown "{{ doc_dir }}"


Expand All @@ -138,22 +131,18 @@ bench BENCH="":
clear
cargo test \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"

cargo test \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"

cargo test \
--release \
--all-features \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"

cargo test \
--release \
--target x86_64-unknown-linux-gnu \
--target-dir "{{ cargo_dir }}"


Expand Down
4 changes: 2 additions & 2 deletions src/argue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,12 @@ impl Argue {
// But only if the stream appears to be redirected…
let stdin = std::io::stdin();
if ! stdin.is_terminal() {
return self.with_trailing_args(stdin.lines().flatten());
return self.with_trailing_args(stdin.lines().map_while(Result::ok));
}
}
// Text file.
else if let Ok(raw) = File::open(p).map(BufReader::new) {
return self.with_trailing_args(raw.lines().flatten());
return self.with_trailing_args(raw.lines().map_while(Result::ok));
}
}

Expand Down

0 comments on commit 964b41e

Please sign in to comment.