Skip to content

Commit

Permalink
chore(release): v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK committed Nov 7, 2022
1 parent 25cc967 commit 986a3b3
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
Expand Down
4 changes: 2 additions & 2 deletions imgurs-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down Expand Up @@ -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
7 changes: 5 additions & 2 deletions src/imgur/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 986a3b3

Please sign in to comment.