chore(release): v0.11.0

This commit is contained in:
MedzikUser 2022-11-07 17:13:50 +01:00
parent 25cc96774c
commit 986a3b365c
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
5 changed files with 25 additions and 9 deletions

View File

@ -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
<!-- next-url -->
[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

4
Cargo.lock generated
View File

@ -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",

View File

@ -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 <medzik@duck.com>"]

View File

@ -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 <medzik@duck.com>"]
@ -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

View File

@ -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