Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ parameters:
description: "If true, the success pipeline will be executed."

orbs:
toolkit: jerus-org/circleci-toolkit@2.9.1
toolkit: jerus-org/circleci-toolkit@2.12.1

executors:
rust-env:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Security

- Dependencies: update dependency toolkit to v2.12.1(pr [#756])

## [0.4.49] - 2025-06-21

### Security
Expand Down Expand Up @@ -819,6 +825,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#753]: https://github.com/jerus-org/mockd/pull/753
[#754]: https://github.com/jerus-org/mockd/pull/754
[#755]: https://github.com/jerus-org/mockd/pull/755
[#756]: https://github.com/jerus-org/mockd/pull/756
[Unreleased]: https://github.com/jerus-org/mockd/compare/v0.4.49...HEAD
[0.4.49]: https://github.com/jerus-org/mockd/compare/v0.4.48...v0.4.49
[0.4.48]: https://github.com/jerus-org/mockd/compare/v0.4.47...v0.4.48
[0.4.47]: https://github.com/jerus-org/mockd/compare/v0.4.46...v0.4.47
Expand Down
67 changes: 2 additions & 65 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,72 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true,
"rangeStrategy": "bump",
"schedule": [
"* 0-5 17 * *"
],
"packageRules": [
{
"groupName": "futures packages",
"matchPackageNames": [
"/^futures[-_]?/"
]
},
{
"groupName": "serde packages",
"matchPackageNames": [
"/^serde[-_]?/"
]
},
{
"groupName": "tokio packages",
"matchPackageNames": [
"/^tokio[-_]?/"
]
},
{
"groupName": "tracing packages",
"matchPackageNames": [
"/^tracing[-_]?/",
"!tracing-opentelemetry"
]
},
{
"groupName": "liquid packages",
"matchPackageNames": [
"/^liquid[-_]?/",
"/^kstring$/"
]
},
{
"automerge": true,
"matchPackageNames": [
"/github/codeql-action/",
"/ossf/scorecard-action/",
"/actions/upload-artifact/",
"/actions/checkout/"
]
},
{
"sourceUrl": "https://github.com/jerus-org/circleci-toolkit",
"enabled": true,
"matchPackageNames": [
"/jerus-org/circleci-toolkit/"
]
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^rust-toolchain\\.toml?$"
],
"matchStrings": [
"channel\\s*=\\s*\"(?<currentValue>\\d+\\.\\d+\\.\\d+)\""
],
"depNameTemplate": "rust",
"packageNameTemplate": "rust-lang/rust",
"datasourceTemplate": "github-releases"
}
"extends": [
"github>jerusdp/renovate-config:default.json"
]
}
9 changes: 4 additions & 5 deletions src/bool_rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ mod tests {
i -= 1;
}

println!(
"\ncount_0:\t{}\ncount_1:\t{}\ncount_other:\t{}",
count_0, count_1, count_other
);
println!("\ncount_0:\t{count_0}");
println!("count_1:\t{count_1}");
println!("count_other:\t{count_other}");

assert_ne!(0, count_0);
assert_ne!(0, count_1);
Expand All @@ -81,7 +80,7 @@ mod tests {
i -= 1;
}

println!("\ntrue:\t{}\nfalse:\t{}", true_count, false_count);
println!("\ntrue:\t{true_count}\nfalse:\t{false_count}");

assert_ne!(0, true_count);
assert_ne!(0, false_count);
Expand Down
2 changes: 1 addition & 1 deletion src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
///
pub fn url(width: i64, height: i64) -> String {
// url will generate a random Image Based Upon Height And Width. https://picsum.photos
format!("https://picsum.photos/{}/{}", width, height)
format!("https://picsum.photos/{width}/{height}")
}

#[cfg(test)]
Expand Down
6 changes: 3 additions & 3 deletions src/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,13 @@ mod tests {
#[test]
fn random_data_test() {
let mut street1 = misc::random_data(STREET_NAME);
println!("{}", street1);
println!("{street1}");

street1 = misc::random_data(STREET_NAME);
println!("{}", street1);
println!("{street1}");

street1 = misc::random_data(STREET_NAME);
println!("{}", street1);
println!("{street1}");
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions src/payment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ pub fn credit_card_exp() -> String {
if month < 10 {
format!(
"{}/{}",
format!("0{}", month).as_str(),
format!("0{month}").as_str(),
current_year + misc::random(1_i32, 10_i32)
)
} else {
format!(
"{}/{}",
format!("{}", month).as_str(),
format!("{month}").as_str(),
current_year + misc::random(1_i32, 10_i32)
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/testify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::time::Instant;
// pub static ref rng: ThreadRng = ThreadRng::default();
// }

/// Execute a function and print the elapsed time for excution.
/// Execute a function and print the elapsed time for execution.
/// IF the function returns a result, print the result.
///
pub fn exec_mes(name: &str, f: fn() -> String) {
Expand All @@ -14,7 +14,7 @@ pub fn exec_mes(name: &str, f: fn() -> String) {
println!("[{}] elapsed time: {:.2?}", name, now.elapsed());
assert_ne!(res, "");
if print() {
println!("\t -> value of fn: {}", res);
println!("\t -> value of fn: {res}");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/user_agent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub fn safari() -> String {
_ => format!("({} {}_{}_{} like Mac OS X; en-US) AppleWebKit/{} (KHTML, like Gecko) Version/{}.0.5 Mobile/8B{} Safari/6{}", mobile_devices, misc::random(7, 9 ), misc::random(0, 3), misc::random(1, 3), rand_num, misc::random(3, 5), misc::random(111, 120), rand_num)
};

format!("Mozilla/5.0 {}", platforms)
format!("Mozilla/5.0 {platforms}")
}

/// Generate a random Opera user agent string.
Expand Down