Skip to content

Commit

Permalink
Merge pull request #40 from rofinn/rf/filepathsbase-updates
Browse files Browse the repository at this point in the history
Update to the new release of FilePathsBase
  • Loading branch information
rofinn authored Jul 30, 2019
2 parents 7ce79b1 + ec815d1 commit c3da500
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
URIParser = "30578b45-9adc-5946-b283-645ec420af67"

[compat]
FilePathsBase = "0.5"
FilePathsBase = "0.6"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
10 changes: 5 additions & 5 deletions src/uri.jl
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
function URIParser.URI(p::AbstractPath; query="", fragment="")
if isempty(root(p))
if isempty(p.root)
throw(ArgumentError("$p is not an absolute path"))
end

b = IOBuffer()
print(b, "file://")

if !isempty(drive(p))
if !isempty(p.drive)
print(b, "/")
print(b, drive(p))
print(b, p.drive)
end

for i=2:length(p.parts)
for s in p.segments
print(b, "/")
print(b, URIParser.escape(p.parts[i]))
print(b, URIParser.escape(s))
end

return URIParser.URI(URIParser.URI(String(take!(b))); query=query, fragment=fragment)
Expand Down

2 comments on commit c3da500

@rofinn
Copy link
Owner Author

@rofinn rofinn commented on c3da500 Jul 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/2382

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.8.0 -m "<description of version>" c3da500b4f83d38d7927b83604bfeb92255a8a0f
git push origin v0.8.0

Please sign in to comment.