Skip to content

Commit

Permalink
bump URI version & rm patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Nov 26, 2020
1 parent 9ca6a36 commit 3845b45
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Crayons = "4"
HTTP = "0.9"
JSON = "0.21"
OpenQASM = "2"
URIs = "1.0"
URIs = "1.1"
julia = "1"

[extras]
Expand Down
4 changes: 0 additions & 4 deletions src/IBMQClient.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ using URIs
using REPL.TerminalMenus
using Crayons.Box

include("patch.jl")

using .Patch: make_uri

include("rest.jl")
include("ibmq.jl")
include("account.jl")
Expand Down
38 changes: 0 additions & 38 deletions src/patch.jl

This file was deleted.

3 changes: 1 addition & 2 deletions src/rest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ using HTTP
using JSON
using URIs
using Serialization
using ..Patch: make_uri
abstract type AbstractAPI end

const mocking = Ref{Bool}(false)
Expand Down Expand Up @@ -68,7 +67,7 @@ function api_uri(api::AbstractAPI, path::String, query=nothing)
return joinpath(api.endpoint, path)
else
isempty(uri.query) || error("non empty query in API endpoint is not supported")
return make_uri(joinpath(api.endpoint, path); query=query)
return URI(joinpath(api.endpoint, path); query=query)
end
end

Expand Down

0 comments on commit 3845b45

Please sign in to comment.