url_canonicalize 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/url_canonicalize/uri.rb +1 -2
- data/lib/url_canonicalize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd8a56984fcbb3c5c64415bfc5b7083a53ef558c
|
4
|
+
data.tar.gz: 4c54760d25df39dc3326ddb354c8f03d222fe2e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8aefc3e96fde6d571a58ec9a77cc4c8fecdad3af4d88d93b35ad162d44a8d1409408569d6b0ef84a9cedae7c46b2753669f05ee122433c625b17ba169eca80d0
|
7
|
+
data.tar.gz: 318a00cdec70c25bbde80785a61a815aa2999188f314298712b07885cd7b6f7c49ceddbfdb55f5b16d28de231a3f33a8ee8e314100e46578abd2a7c92a6df24f
|
data/lib/url_canonicalize/uri.rb
CHANGED
@@ -4,8 +4,7 @@ module URLCanonicalize
|
|
4
4
|
class URI
|
5
5
|
class << self
|
6
6
|
def parse(url)
|
7
|
-
|
8
|
-
uri = ::URI.parse url
|
7
|
+
uri = ::URI.parse decorate(url)
|
9
8
|
uri if valid? uri
|
10
9
|
rescue ::URI::InvalidURIError => e
|
11
10
|
new_exception = URLCanonicalize::Exception::URI.new("#{e.class}: #{e.message}")
|