diff --git a/Cargo.lock b/Cargo.lock index 6eebba5..81b4764 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -90,7 +90,7 @@ dependencies = [ [[package]] name = "integration-tests" -version = "0.6.1" +version = "0.7.0" dependencies = [ "pretty_assertions", "sailfish", @@ -186,7 +186,7 @@ checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" [[package]] name = "sailfish" -version = "0.6.1" +version = "0.7.0" dependencies = [ "itoap", "ryu", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "sailfish-compiler" -version = "0.6.1" +version = "0.7.0" dependencies = [ "filetime", "home", @@ -213,7 +213,7 @@ dependencies = [ [[package]] name = "sailfish-macros" -version = "0.6.1" +version = "0.7.0" dependencies = [ "proc-macro2", "sailfish-compiler", diff --git a/README.md b/README.md index 6e1cc1a..b043ef2 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Dependencies: ```toml [dependencies] -sailfish = "0.6.1" +sailfish = "0.7.0" ``` Template file (templates/hello.stpl): diff --git a/docs/en/docs/installation.md b/docs/en/docs/installation.md index 6846b8b..47ded6f 100644 --- a/docs/en/docs/installation.md +++ b/docs/en/docs/installation.md @@ -4,7 +4,7 @@ In order to use sailfish templates, you have add two dependencies in your `Cargo ``` toml [dependencies] -sailfish = "0.6.1" +sailfish = "0.7.0" ``` ## Feature Flags diff --git a/examples/Cargo.toml b/examples/Cargo.toml index ee92751..16a654c 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sailfish-examples" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] edition = "2018" publish = false diff --git a/sailfish-compiler/Cargo.toml b/sailfish-compiler/Cargo.toml index 54469b2..07baeeb 100644 --- a/sailfish-compiler/Cargo.toml +++ b/sailfish-compiler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sailfish-compiler" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] description = "Simple, small, and extremely fast template engine for Rust" homepage = "https://github.com/rust-sailfish/sailfish" diff --git a/sailfish-macros/Cargo.toml b/sailfish-macros/Cargo.toml index 25b0c29..48ec66c 100644 --- a/sailfish-macros/Cargo.toml +++ b/sailfish-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sailfish-macros" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] description = "Simple, small, and extremely fast template engine for Rust" homepage = "https://github.com/rust-sailfish/sailfish" @@ -30,6 +30,6 @@ proc-macro2 = "1.0.56" [dependencies.sailfish-compiler] path = "../sailfish-compiler" -version = "0.6.1" +version = "0.7.0" default-features = false features = ["procmacro"] diff --git a/sailfish-tests/fuzzing-tests/Cargo.toml b/sailfish-tests/fuzzing-tests/Cargo.toml index 7b6e9d7..c2fd7ef 100644 --- a/sailfish-tests/fuzzing-tests/Cargo.toml +++ b/sailfish-tests/fuzzing-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fuzzing-tests" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] edition = "2018" publish = false diff --git a/sailfish-tests/integration-tests/Cargo.toml b/sailfish-tests/integration-tests/Cargo.toml index 5851e13..3df1392 100644 --- a/sailfish-tests/integration-tests/Cargo.toml +++ b/sailfish-tests/integration-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "integration-tests" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] edition = "2018" publish = false diff --git a/sailfish/Cargo.toml b/sailfish/Cargo.toml index 84e56a8..1092021 100644 --- a/sailfish/Cargo.toml +++ b/sailfish/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sailfish" -version = "0.6.1" +version = "0.7.0" authors = ["Ryohei Machida "] description = "Simple, small, and extremely fast template engine for Rust" homepage = "https://github.com/rust-sailfish/sailfish" @@ -31,7 +31,7 @@ serde_json = { version = "1.0.95", optional = true } [dependencies.sailfish-macros] path = "../sailfish-macros" -version = "0.6.1" +version = "0.7.0" default-features = false optional = true diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index ba53790..77056dd 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -6,8 +6,16 @@ if [ $# != 1 ]; then exit 1 fi -SCRIPT_DIR="$( pwd )" -cd $SCRIPT_DIR/.. +CURRENT_DIR="$( pwd )" + +if [ -z "${CURRENT_DIR##*scripts}" ] ; then +# Go up now, because we are in the scripts directory + cd .. +else + echo "Please enter the scripts directory, and then execute this script."; + exit 1 +fi; + OLD_VERSION="$(cat README.md |grep '^sailfish\s*=' |cut -d '"' -f2)" NEW_VERSION="${1}"