Skip to content

Commit

Permalink
Release 0.11.4
Browse files Browse the repository at this point in the history
  • Loading branch information
photino committed Jul 25, 2023
1 parent 009f434 commit c2be8a0
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 36 deletions.
10 changes: 5 additions & 5 deletions examples/actix-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "actix-app"
description = "An example for actix-web integration."
version = "0.2.0"
version = "0.2.1"
rust-version = "1.72"
edition = "2021"
publish = false
Expand All @@ -18,12 +18,12 @@ features = ["derive"]

[dependencies.zino]
path = "../../zino"
version = "0.10.3"
version = "0.10.4"
features = ["actix", "export-pdf"]

[dependencies.zino-core]
path = "../../zino-core"
version = "0.11.3"
version = "0.11.4"
features = [
"connector",
"connector-arrow",
Expand All @@ -33,8 +33,8 @@ features = [

[dependencies.zino-derive]
path = "../../zino-derive"
version = "0.8.3"
version = "0.8.4"

[dependencies.zino-model]
path = "../../zino-model"
version = "0.8.3"
version = "0.8.4"
6 changes: 3 additions & 3 deletions examples/actix-app/config/config.dev.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# --env=dev

name = "data-cube"
version = "0.6.0"
version = "0.6.1"

[main]
host = "127.0.0.1"
Expand All @@ -24,14 +24,14 @@ host = "127.0.0.1"
port = 3306
database = "data_cube"
username = "root"
password = "Er/DkSLyeOsUiHXHK4hO7E8fdl1g8Qwy2Ef8mR1/4BQ"
password = "Is/w8eraMJT9XPR/ZQxnnU4EIw9nvEJ2kdfVqCgUlVw"

[[postgres]]
host = "127.0.0.1"
port = 5432
database = "data_cube"
username = "postgres"
password = "9jMzf8xZSrC3kO2okJUL9XGvFWyzh1VDJwBIJ9e78NsRfJkp"
password = "Gy4aG3LjEKR7QarmVrU1isCW4gTNqYGXrrKYh9cFYACxnx1v"

[tracing]
filter = "info,sqlx=info,zino=trace,zino_core=trace"
Expand Down
6 changes: 3 additions & 3 deletions examples/actix-app/config/config.prod.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# --env=prod

name = "data-cube"
version = "0.6.0"
version = "0.6.1"

[main]
host = "127.0.0.1"
Expand All @@ -24,14 +24,14 @@ host = "127.0.0.1"
port = 3306
database = "data_cube"
username = "root"
password = "I/m3n8cf08ZqLsZf8Ez+mEsvbShl9CPokIzIoc8lPxM"
password = "s0/lciv/Bfm7hI6R65CRDI3VuRwf4oICoOVN4sZlezY"

[[postgres]]
host = "127.0.0.1"
port = 5432
database = "data_cube"
username = "postgres"
password = "Sx9x3GtJmAwwhIinkkpqwAb3exJ2+jV3CGfV7vH9C5vUvZ3p"
password = "MEckyLpuIErrOkWK/YUqIAUTGA+MDcKET4lIZYmsHZo7wky8"

[tracing]
filter = "warn"
Expand Down
10 changes: 5 additions & 5 deletions examples/axum-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axum-app"
description = "An example for axum integration."
version = "0.8.0"
version = "0.8.1"
rust-version = "1.72"
edition = "2021"
publish = false
Expand All @@ -18,12 +18,12 @@ features = ["derive"]

[dependencies.zino]
path = "../../zino"
version = "0.10.3"
version = "0.10.4"
features = ["axum", "export-pdf"]

[dependencies.zino-core]
path = "../../zino-core"
version = "0.11.3"
version = "0.11.4"
features = [
"connector",
"connector-arrow",
Expand All @@ -33,8 +33,8 @@ features = [

[dependencies.zino-derive]
path = "../../zino-derive"
version = "0.8.3"
version = "0.8.4"

[dependencies.zino-model]
path = "../../zino-model"
version = "0.8.3"
version = "0.8.4"
6 changes: 3 additions & 3 deletions examples/axum-app/config/config.dev.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# --env=dev

name = "data-cube"
version = "0.6.0"
version = "0.6.1"

[main]
host = "127.0.0.1"
Expand All @@ -24,14 +24,14 @@ host = "127.0.0.1"
port = 3306
database = "data_cube"
username = "root"
password = "QWi65/uOdFy745k4/vT5NyNsUKHppu7ccc+9oaF3lHs"
password = "v/MSg5oWYN43BlvPGEToDhGBrpZPwkFYLoM+EqrMJuk"

[[postgres]]
host = "127.0.0.1"
port = 5432
database = "data_cube"
username = "postgres"
password = "D2m/CORXdT/zHw/pD3lWF2HejeGGTnhvkgfMV7biZctNAKlx"
password = "2xiKJvFWFNxInNyVqiW2ceeCVaLw2EEnvOmyo6sEAOsGCGvr"

[tracing]
filter = "info,sqlx=info,zino=trace,zino_core=trace"
Expand Down
6 changes: 3 additions & 3 deletions examples/axum-app/config/config.prod.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# --env=prod

name = "data-cube"
version = "0.6.0"
version = "0.6.1"

[main]
host = "127.0.0.1"
Expand All @@ -24,14 +24,14 @@ host = "127.0.0.1"
port = 3306
database = "data_cube"
username = "root"
password = "2M/J9HZJn6OE4PF0W4Dtz7X/wZ8L/hBxfAMqUBKzuM8"
password = "WoWhU03uWHCDGXdY/v49Q9XP/xTe/2ydXG6oh4QiVxY"

[[postgres]]
host = "127.0.0.1"
port = 5432
database = "data_cube"
username = "postgres"
password = "UamCNm91h3rQNcJkcJyw4YmtI0lH3sLoGhkHO9Onzm2PGnc2"
password = "xy6IsBbwqK0FzrxdRvrxi0F+NC1YqlnQRUj78aqxrV576D2b"

[tracing]
filter = "warn"
Expand Down
4 changes: 2 additions & 2 deletions zino-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-core"
description = "Core types and traits for zino."
version = "0.11.3"
version = "0.11.4"
rust-version = "1.72"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -193,7 +193,7 @@ version = "0.9.1"
features = ["macros"]

[dependencies.utoipa]
version = "3.3.0"
version = "3.4.3"
features = ["non_strict_integers", "uuid"]

[dependencies.uuid]
Expand Down
2 changes: 1 addition & 1 deletion zino-core/src/connector/connector_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl HttpConnector {
}

/// Sets a JSON Pointer for looking up a value from the response data.
/// It only applies when the response data a JSON object.
/// It only applies when the response data is a JSON object.
#[inline]
pub fn set_json_pointer(&mut self, pointer: impl Into<String>) {
self.json_pointer = Some(pointer.into());
Expand Down
4 changes: 2 additions & 2 deletions zino-core/src/openapi/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ pub(crate) fn translate_model_entry(model: &mut Map, model_name: &str) {
let model_name_prefix = format!("{model_name}.");
for (key, translation) in MODEL_TRANSLATIONS.iter() {
if let Some(field) = key.strip_prefix(&model_name_prefix) &&
let Some(value) = model.get(field) &&
let Some(text_value) = translation.translate(value)
let Some(value) = model.get(field)
{
let text_field = format!("{field}_text");
let text_value = translation.translate(value).unwrap_or_else(|| value.clone());
data.upsert(text_field, text_value);
}
}
Expand Down
4 changes: 2 additions & 2 deletions zino-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-derive"
description = "Derived traits for zino."
version = "0.8.3"
version = "0.8.4"
rust-version = "1.72"
edition = "2021"
license = "MIT"
Expand All @@ -21,5 +21,5 @@ syn = "2.0.27"

[dependencies.zino-core]
path = "../zino-core"
version = "0.11.3"
version = "0.11.4"
features = ["orm"]
4 changes: 2 additions & 2 deletions zino-derive/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use syn::{
/// Returns `true` if the type is `Vec<T>`.
#[inline]
pub(super) fn check_vec_type(type_name: &str) -> bool {
type_name.split_once("<").is_some_and(|(t, s)| t == "Vec" && s.ends_with(">"))
type_name.split_once('<').is_some_and(|(t, s)| t == "Vec" && s.ends_with('>'))
}

/// Returns `true` if the type is `Option<T>`.
#[inline]
pub(super) fn check_option_type(type_name: &str) -> bool {
type_name.split_once("<").is_some_and(|(t, s)| t == "Option" && s.ends_with(">"))
type_name.split_once('<').is_some_and(|(t, s)| t == "Option" && s.ends_with('>'))
}

/// Returns the type name as a str.
Expand Down
6 changes: 3 additions & 3 deletions zino-model/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino-model"
description = "Model types for zino."
version = "0.8.3"
version = "0.8.4"
rust-version = "1.72"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -37,9 +37,9 @@ features = ["derive"]

[dependencies.zino-core]
path = "../zino-core"
version = "0.11.3"
version = "0.11.4"
features = ["orm"]

[dependencies.zino-derive]
path = "../zino-derive"
version = "0.8.3"
version = "0.8.4"
4 changes: 2 additions & 2 deletions zino/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "zino"
description = "Full-featured web application framework for Rust."
version = "0.10.3"
version = "0.10.4"
rust-version = "1.72"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -125,4 +125,4 @@ features = [

[dependencies.zino-core]
path = "../zino-core"
version = "0.11.3"
version = "0.11.4"

0 comments on commit c2be8a0

Please sign in to comment.