From 32ad1916123325a8cc80fb76e0cbd5a2bb0b6841 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 8 Nov 2017 23:02:22 +0100 Subject: Add 'url' crate So we can circumvent the mock problem we've been having with jenkins.rs:`request_job`. We need to take the URL supplied to it and split it up so we can get just the path part of the URL. --- Cargo.lock | 1 + Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 9aaff5f..d96ba42 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,6 +6,7 @@ dependencies = [ "mockito 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", "rouille 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index c6d957f..0c6e077 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,4 @@ json = "0.11.10" mockito = "0.9.0" reqwest = "0.8.1" rouille = "1.0.3" +url = "1.6.0" -- cgit v1.2.3