From 986a3b365c0f54898dc7ee25db54a13d6dae3dd7 Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Mon, 7 Nov 2022 17:13:50 +0100 Subject: [PATCH] chore(release): v0.11.0 --- CHANGELOG.md | 17 +++++++++++++++-- Cargo.lock | 4 ++-- Cargo.toml | 2 +- imgurs-cli/Cargo.toml | 4 ++-- src/imgur/mod.rs | 7 +++++-- 5 files changed, 25 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe50e7f..cb2e087 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [0.11.0] - 2022-11-07 +### Added +- Added `with_http_client` method to ImgurClient #87, thanks to @NotNorom + +### Changed +- Updated crate arboard to v3 +- Updated crate simple_logger to v4 + ## [0.10.0] - 2022-10-01 - add configuration for tls (rustls-tls or native-tls) @@ -139,8 +147,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - upload image -[Unreleased]: https://github.com/MedzikUser/imgurs/compare/v0.8.0...HEAD -[0.7.4]: https://github.com/MedzikUser/imgurs/commits/v0.8.0 +[Unreleased]: https://github.com/MedzikUser/imgurs/compare/v0.11.0...HEAD +[0.11.0]: https://github.com/MedzikUser/imgurs/commits/v0.11.0 +[0.10.0]: https://github.com/MedzikUser/imgurs/commits/v0.10.0 +[0.9.1]: https://github.com/MedzikUser/imgurs/commits/v0.9.1 +[0.9.0]: https://github.com/MedzikUser/imgurs/commits/v0.9.0 +[0.8.1]: https://github.com/MedzikUser/imgurs/commits/v0.8.1 +[0.8.0]: https://github.com/MedzikUser/imgurs/commits/v0.8.0 [0.7.4]: https://github.com/MedzikUser/imgurs/commits/v0.7.4 [0.7.3]: https://github.com/MedzikUser/imgurs/commits/v0.7.3 [0.7.2]: https://github.com/MedzikUser/imgurs/commits/v0.7.2 diff --git a/Cargo.lock b/Cargo.lock index b49dcf2..b017364 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -800,7 +800,7 @@ dependencies = [ [[package]] name = "imgurs" -version = "0.10.0" +version = "0.11.0" dependencies = [ "base64", "reqwest", @@ -813,7 +813,7 @@ dependencies = [ [[package]] name = "imgurs-cli" -version = "0.10.0" +version = "0.11.0" dependencies = [ "anyhow", "arboard", diff --git a/Cargo.toml b/Cargo.toml index c744d45..659bde1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ resolver = "2" [package] name = "imgurs" -version = "0.10.0" +version = "0.11.0" description = "API for Imgur" license = "BSD-3-Clause" authors = ["MedzikUser "] diff --git a/imgurs-cli/Cargo.toml b/imgurs-cli/Cargo.toml index 8ad193d..7facc89 100644 --- a/imgurs-cli/Cargo.toml +++ b/imgurs-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "imgurs-cli" -version = "0.10.0" +version = "0.11.0" description = "CLI for Imgur" license = "BSD-3-Clause" authors = ["MedzikUser "] @@ -40,7 +40,7 @@ chrono = "0.4" # parse upload date notify-rust = "4.5" # send notification after upload dirs = "4.0" # get system configuration directory -imgurs = { path = "..", version = "0.10.0", features = ["full"] } +imgurs = { path = "..", features = ["full"] } [target.'cfg(not(all(unix, not(any(target_os="macos", target_os="android", target_os="emscripten")))))'.dependencies] arboard = "3.2" # copy url to clipboard diff --git a/src/imgur/mod.rs b/src/imgur/mod.rs index 1a5882b..69f88cb 100644 --- a/src/imgur/mod.rs +++ b/src/imgur/mod.rs @@ -32,13 +32,16 @@ impl ImgurClient { /// use imgurs::ImgurClient; /// use reqwest::Client; /// - /// let http_client = Client::builder().build(); + /// let http_client = Client::builder().build().unwrap(); /// /// let client = ImgurClient::with_http_client("3e3ce0d7ac14d56", http_client); /// ``` pub fn with_http_client(client_id: &str, http_client: reqwest::Client) -> Self { let client_id = client_id.to_string(); - ImgurClient { client_id, client: http_client } + ImgurClient { + client_id, + client: http_client, + } } /// Upload image to Imgur