Skip to content

Commit

Permalink
Merge pull request #361 from sagiegurari/0.9.0
Browse files Browse the repository at this point in the history
Fix: Runtime - [Breaking Change] Empty spread should not count as an …
  • Loading branch information
sagiegurari authored Sep 8, 2023
2 parents 34f3544 + 211351f commit 9c27ab1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### v0.9.0

* Fix: Runtime - \[Breaking Change\] Empty spread should not count as an empty string argument #354

### v0.8.20 (2023-06-15)

* Maintenance: Upgrade dependencies
Expand Down
6 changes: 3 additions & 3 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 duckscript/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "duckscript"
version = "0.7.5"
version = "0.8.0"
authors = ["Sagie Gur-Ari <[email protected]>"]
description = "Simple, extendable and embeddable scripting language."
license = "Apache-2.0"
Expand Down
6 changes: 5 additions & 1 deletion duckscript/src/expansion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ pub(crate) fn expand_by_wrapper(
}

if value_string.is_empty() {
ExpandedValue::None
if single_type {
ExpandedValue::None
} else {
ExpandedValue::Multi(vec![])
}
} else if single_type {
ExpandedValue::Single(value_string.to_string())
} else {
Expand Down
8 changes: 4 additions & 4 deletions duckscript_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "duckscript_cli"
version = "0.8.20"
version = "0.9.0"
authors = ["Sagie Gur-Ari <[email protected]>"]
description = "The duckscript command line executable."
license = "Apache-2.0"
Expand All @@ -27,13 +27,13 @@ name = "duck"
path = "src/main.rs"

[dependencies]
duckscript = { version = "^0.7.5", path = "../duckscript" }
duckscriptsdk = { version = "^0.8.20", path = "../duckscript_sdk", default-features = false }
duckscript = { version = "^0.8.0", path = "../duckscript" }
duckscriptsdk = { version = "^0.9.0", path = "../duckscript_sdk", default-features = false }

[features]
tls-rustls = ["duckscriptsdk/tls-rustls"]
tls-native = ["duckscriptsdk/tls-native"]
tls = ["tls-rustls"] # alias for backward compatibility
tls = ["tls-rustls"] # alias for backward compatibility
default = ["tls-rustls"]

[badges.codecov]
Expand Down
6 changes: 3 additions & 3 deletions duckscript_sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "duckscriptsdk"
version = "0.8.20"
version = "0.9.0"
authors = ["Sagie Gur-Ari <[email protected]>"]
description = "The duckscript SDK."
license = "Apache-2.0"
Expand Down Expand Up @@ -29,7 +29,7 @@ attohttpc = { version = "^0.26", default-features = false, features = [
base64 = "^0.21"
cfg-if = "^1"
colored = "^2"
duckscript = { version = "^0.7.5", path = "../duckscript" }
duckscript = { version = "^0.8.0", path = "../duckscript" }
evalexpr = "^11"
fs_extra = "^1"
fsio = { version = "^0.4", features = ["temp-path"] }
Expand Down Expand Up @@ -59,7 +59,7 @@ uname = "^0.1"
[features]
tls-rustls = ["attohttpc/rustls"]
tls-native = ["attohttpc/tls"]
tls = ["tls-rustls"] # alias for backward compatibility
tls = ["tls-rustls"] # alias for backward compatibility
default = ["tls-rustls"]

[badges.codecov]
Expand Down

0 comments on commit 9c27ab1

Please sign in to comment.