diff --git a/.travis.yml b/.travis.yml index 3e05985..facfc91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,15 +2,6 @@ language: go go: - 1.4 + - 1.5 + - 1.6 - tip - -install: - - go get github.com/zenovich/urlesc - - go get golang.org/x/net/idna - - go get golang.org/x/text/secure/precis - - go get golang.org/x/text/unicode/norm - - mv $GOPATH/src/github.com/zenovich/urlesc $GOPATH/src/github.com/PuerkitoBio/ - - go build . - -script: - - go test -v diff --git a/README.md b/README.md index 2ec791b..a78a3df 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Based on the [wikipedia paper][wiki] and the [RFC 3986 document][rfc]. ## Changelog +* **2016-07-27 (v1.0.0)** : Normalize IDN to ASCII (thanks to @zenovich). * **2015-02-08** : Add fix for relative paths issue ([PR #5][pr5]) and add fix for unnecessary encoding of reserved characters ([see issue #7][iss7]). * **v0.2.0** : Add benchmarks, Attempt IDN support. * **v0.1.0** : Initial release. @@ -162,7 +163,6 @@ And with `FlagsUnsafeGreedy`: ## TODOs -* Try to make jehiah's tests pass (more exactly, support IDNA domains/utf8/unicode encoding/escaping). For now theses tests are commented out. * Add a class/default instance to allow specifying custom directory index names? At the moment, removing directory index removes `(^|/)((?:default|index)\.\w{1,4})$`. ## Thanks / Contributions @@ -171,6 +171,7 @@ And with `FlagsUnsafeGreedy`: @jehiah @opennota @pchristopher1275 +@zenovich ## License diff --git a/purell_test.go b/purell_test.go index 7e0162f..a3732e5 100644 --- a/purell_test.go +++ b/purell_test.go @@ -716,7 +716,7 @@ func runCase(tc *testCase, t *testing.T) { if tc.parsed { u, e := url.Parse(tc.src) if e != nil { - t.Errorf("%s - FAIL : %s", e) + t.Errorf("%s - FAIL : %s", tc.nm, e) return } else { NormalizeURL(u, tc.flgs)