Skip to content

Commit

Permalink
Work around Unicode and Test moving to the stdlib (#58)
Browse files Browse the repository at this point in the history
Also bump the required Julia version to 0.6 to fix a type definition
deprecation warning
  • Loading branch information
ararslan authored Dec 14, 2017
1 parent 0ee0517 commit df1c6a6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ os:
- linux
- osx
julia:
- 0.5
- 0.6
- nightly
notifications:
Expand Down
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.5
julia 0.6
Compat 0.9.5
5 changes: 5 additions & 0 deletions src/URIParser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export escape, escape_form, escape_with, unescape, unescape_form
import Base: isequal, isvalid, show, print, (==)
using Compat

if VERSION >= v"0.7.0-DEV.2915"
using Unicode
using Base.Unicode: isascii
end

include("parser.jl")
include("esc.jl")
include("utils.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ishex(c) = (isnum(c) || 'a' <= lowercase(c) <= 'f')
is_host_char(c) = isalnum(c) || (c == '.') || (c == '-') || (c == '_') || (c == "~")


immutable URI
struct URI
scheme::String
host::String
port::UInt16
Expand Down
1 change: 1 addition & 0 deletions test/REQUIRE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Compat 0.33.0
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using URIParser
using Base.Test
using Compat
using Compat.Test

urls = ["hdfs://user:password@hdfshost:9000/root/folder/file.csv#frag",
"https://user:password@httphost:9000/path1/path2;paramstring?q=a&p=r#frag",
Expand Down

0 comments on commit df1c6a6

Please sign in to comment.