Bump version: 0.3.13 -> 0.4.0 (#401)

This commit is contained in:
Casey Rodarmor 2019-04-12 00:46:29 -07:00 committed by GitHub
parent fe0a6c252c
commit c3d1d9049f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 81 additions and 76 deletions

View File

@ -1,9 +1,17 @@
# Changelog
All notable changes to this project will be documented in this file.
## [v0.4.0] - 2019-04-12
### Added
- Add recipe aliases by @ryloric (#390)
- Allow arbitrary expressions as default arguments (#400)
- Add justfile summaries (#399)
- Allow outer shebang lines so justfiles can be used as scripts (#393)
- Allow `--justfile` without `--working-directory` by @smonami (#392)
- Add link to Chinese translation of readme by @chinanf-boy (#377)
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
### Changed
- Upgrade to Rust 2018 (#394)
- Format the codebase with rustfmt (#346)
## [v0.3.13] - 2018-11-06
### Added

2
Cargo.lock generated
View File

@ -190,7 +190,7 @@ dependencies = [
[[package]]
name = "just"
version = "0.3.13"
version = "0.4.0"
dependencies = [
"ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"assert_matches 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "just"
version = "0.3.13"
version = "0.4.0"
description = "🤖 Just a command runner"
authors = ["Casey Rodarmor <casey@rodarmor.com>"]
license = "CC0-1.0"

View File

@ -112,9 +112,7 @@ impl Parameter {
Parameter {
variadic: parameter.variadic,
name: parameter.name.to_owned(),
default: parameter
.default
.map(|expression| Expression::new(expression)),
default: parameter.default.map(Expression::new),
}
}
}

View File

@ -1,3 +1,5 @@
#[cfg(unix)]
mod unix {
use executable_path::executable_path;
use std::{
process::Command,
@ -5,14 +7,12 @@ use std::{
};
use tempdir::TempDir;
#[cfg(unix)]
fn kill(process_id: u32) {
unsafe {
libc::kill(process_id as i32, libc::SIGINT);
}
}
#[cfg(unix)]
fn interrupt_test(justfile: &str) {
let tmp = TempDir::new("just-interrupts").unwrap_or_else(|err| {
panic!(
@ -51,7 +51,6 @@ fn interrupt_test(justfile: &str) {
assert_eq!(status.code(), Some(130));
}
#[cfg(unix)]
#[test]
fn interrupt_shebang() {
interrupt_test(
@ -63,7 +62,6 @@ default:
);
}
#[cfg(unix)]
#[test]
fn interrupt_line() {
interrupt_test(
@ -74,15 +72,16 @@ default:
);
}
#[cfg(unix)]
#[test]
#[ignore]
fn interrupt_backtick() {
interrupt_test(
"
foo = `sleep 1`
default:
@echo hello
@echo {{foo}}
",
);
}
}