diff --git a/bin/release/package-anatomy.sh b/bin/release/package-anatomy.sh index e511146c5..84bfcd463 100755 --- a/bin/release/package-anatomy.sh +++ b/bin/release/package-anatomy.sh @@ -52,7 +52,7 @@ function usage(){ echo echo "Usage: $(basename "$0") [Options]..." echo - echo " Example: this comand outputs hurl_4.2.0_amd64.deb anatomy" + echo " Example: this command outputs hurl_4.2.0_amd64.deb anatomy" echo echo " $ $(basename "$0") hurl_4.2.0_amd64.deb" echo diff --git a/bin/update_crates.sh b/bin/update_crates.sh index ed99b9d76..7b9cf3f58 100755 --- a/bin/update_crates.sh +++ b/bin/update_crates.sh @@ -145,10 +145,10 @@ main() { sed "s/ Updating //g" | sed "s/->//g" > "${updated_lock_file}" while read -r crate actual_version last_version ; do - formated_actual_version=$(echo "${actual_version}" | (grep --only-matching --extended-regexp "[0-9].*.[0-9].*.[0-9]" || true)) - formated_last_version=$(echo "${last_version}" | (grep --only-matching --extended-regexp "[0-9].*.[0-9].*.[0-9]" || true)) + formatted_actual_version=$(echo "${actual_version}" | (grep --only-matching --extended-regexp "[0-9].*.[0-9].*.[0-9]" || true)) + formatted_last_version=$(echo "${last_version}" | (grep --only-matching --extended-regexp "[0-9].*.[0-9].*.[0-9]" || true)) crate_url="${crates_api_root_url}/${crate}" - echo "- ${crate} ${formated_actual_version} ${color_blue}updated to ${formated_last_version}${color_reset}" + echo "- ${crate} ${formatted_actual_version} ${color_blue}updated to ${formatted_last_version}${color_reset}" get_crate_github_release_body "${crate_url}" "${last_version}" done < "${updated_lock_file}" diff --git a/contrib/docker/README.md b/contrib/docker/README.md index 1a809bb14..7852b6763 100644 --- a/contrib/docker/README.md +++ b/contrib/docker/README.md @@ -183,7 +183,8 @@ echo | docker login ghcr.io --username hurl-bot --passwo docker push ghcr.io/"${organisation}"/hurl:arm64-"${docker_build_tag}" ``` -# Create image containing builded amd64 and arm64 images +# Create image containing built amd64 and arm64 images + ## Create tag and latest manifest ``` diff --git a/docs/asserting-response.md b/docs/asserting-response.md index 81a138eb6..92196f38e 100644 --- a/docs/asserting-response.md +++ b/docs/asserting-response.md @@ -4,13 +4,13 @@ Asserts are used to test various properties of an HTTP response. Asserts can be implicits (such as version, status, headers) or explicit within an `[Asserts]` section. The delimiter of the request / response is `HTTP `: -after this delimiter, you'll find the implicit asserts, then an `[Asserts]` section with all the explicits checks. +after this delimiter, you'll find the implicit asserts, then an `[Asserts]` section with all the explicit checks. ```hurl GET https://api/example.org/cats HTTP 200 -Content-Type: application/json; charset=utf-8 # Implicit assert on Content-Type Hedaer +Content-Type: application/json; charset=utf-8 # Implicit assert on Content-Type Header [Asserts] # Explicit asserts section bytes count == 120 header "Content-Type" contains "utf-8" diff --git a/docs/filters.md b/docs/filters.md index 23ebfb3e4..417e62bd9 100644 --- a/docs/filters.md +++ b/docs/filters.md @@ -3,7 +3,7 @@ ## Definition [Captures] and [asserts] share a common structure: query. A query is used to extract data from an HTTP response; this data -can come from the HTTP response body, the HTTP response headers or from the HTTP meta-informations (like `duration` for instance)... +can come from the HTTP response body, the HTTP response headers or from the HTTP meta-information (like `duration` for instance)... In this example, the query __`jsonpath "$.books[0].name"`__ is used in a capture to save data and in an assert to test the HTTP response body. diff --git a/integration/hurl/ssl/error_client_authentification_password.err.pattern b/integration/hurl/ssl/error_client_authentication_password.err.pattern similarity index 100% rename from integration/hurl/ssl/error_client_authentification_password.err.pattern rename to integration/hurl/ssl/error_client_authentication_password.err.pattern diff --git a/packages/hurl/src/html/entities.rs b/packages/hurl/src/html/entities.rs index 0b16379d2..6ff5aec5a 100644 --- a/packages/hurl/src/html/entities.rs +++ b/packages/hurl/src/html/entities.rs @@ -21,8 +21,8 @@ use lazy_static::lazy_static; // HTML5 named character references // -// Generated from https://html.spec.whatwg.org/entities.json and -// https://html.spec.whatwg.org/multipage/named-characters.html. +// Generated from and +// . // Map HTML5 named character references to the equivalent Unicode character(s). lazy_static! { pub static ref HTML5_ENTITIES: HashMap<&'static str, &'static str> = { diff --git a/packages/hurl/src/http/call.rs b/packages/hurl/src/http/call.rs index e29437f4a..2b3e997e4 100644 --- a/packages/hurl/src/http/call.rs +++ b/packages/hurl/src/http/call.rs @@ -19,7 +19,7 @@ use crate::http::{Request, Response, Timings}; /// Holds an HTTP request and the corresponding HTTP response. -/// The request and responses are the runtime, evaluated datas created by an HTTP exchange. +/// The request and responses are the runtime, evaluated data created by an HTTP exchange. #[derive(Clone, Debug, PartialEq, Eq)] pub struct Call { /// The real HTTP request (vs the specified request in a Hurl file source) diff --git a/packages/hurl/src/runner/output.rs b/packages/hurl/src/runner/output.rs index bbeeae7e5..564c04687 100644 --- a/packages/hurl/src/runner/output.rs +++ b/packages/hurl/src/runner/output.rs @@ -25,7 +25,7 @@ use crate::util::path::ContextDir; use crate::util::term::Stdout; use hurl_core::ast::{Pos, SourceInfo}; -/// Represents the output of write operation: can be either a file or standard ouput. +/// Represents the output of write operation: can be either a file or standard output. #[derive(Clone, Debug, PartialEq, Eq)] pub enum Output { /// Write to file. diff --git a/packages/hurl/src/runner/result.rs b/packages/hurl/src/runner/result.rs index 01708b342..4f40cf4c6 100644 --- a/packages/hurl/src/runner/result.rs +++ b/packages/hurl/src/runner/result.rs @@ -160,8 +160,8 @@ pub enum AssertResult { /// Represents a [capture](https://hurl.dev/docs/capturing-response.html) of an HTTP response. /// -/// Captures are datas extracted by querying the HTTP response. Captures can be part of the response -/// body, headers, cookies etc... Captures can be used to re-inject datas in next HTTP requests. +/// Captures are data extracted by querying the HTTP response. Captures can be part of the response +/// body, headers, cookies etc... Captures can be used to re-inject data in next HTTP requests. #[derive(Clone, Debug, PartialEq, Eq)] pub struct CaptureResult { /// Name of the capture. diff --git a/packages/hurl_core/src/parser/json.rs b/packages/hurl_core/src/parser/json.rs index d28856ba6..6f74d7207 100644 --- a/packages/hurl_core/src/parser/json.rs +++ b/packages/hurl_core/src/parser/json.rs @@ -379,7 +379,7 @@ fn object_element(reader: &mut Reader) -> ParseResult { let save = reader.state.pos; let space2 = whitespace(reader); // Checks if there is no element after ':'. In this case, a special error must be reported - // because this is a common occurance. + // because this is a common occurrence. let next_char = reader.peek(); // Comparing to None because `next_char` can be EOF. if next_char == Some('}') || next_char.is_none() { diff --git a/packages/hurl_core/src/parser/multiline.rs b/packages/hurl_core/src/parser/multiline.rs index efccb6e27..080f00235 100644 --- a/packages/hurl_core/src/parser/multiline.rs +++ b/packages/hurl_core/src/parser/multiline.rs @@ -386,12 +386,12 @@ mod tests { #[test] fn test_multiline_string_failed() { - let datas = [ + let data = [ "```hexaaa\nline1\nline2\nline3\n```", "```aaa\nline1\nline2\nline3\n```", ]; - for text in datas.iter() { + for text in data.iter() { let mut reader = Reader::new(text); assert!(multiline_string(&mut reader).is_err()); }