kudzu 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/kudzu/agent/url_extractor.rb +3 -1
- data/lib/kudzu/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8aa1feb6080a9006dc33afd5af9bd4428c22a80d465c9b80410e1734719ba1d5
|
4
|
+
data.tar.gz: 9f293ed4f43141e6250600da8f90dd900d73ebed7c53dbb225ffea5e6fb5dd5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d3012bd8053cc69337a3e1ac5c68740f8406ae8fb38239ac5e7749b017b1a10bdf3b3e2271cd9e873073be021a514b97fd245ea636d67e27c9051580a7a4ffe
|
7
|
+
data.tar.gz: 3abe96edc58f1c94a8dfeba9959f86fa7b602d4f7fe5b9c55acf2cb10dadd36e5997fa2a7075ac8bce0673460f9c67cc0c0bb94585c70070937ed0ca428e942b
|
@@ -28,7 +28,9 @@ module Kudzu
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def normalize(url, base_url)
|
31
|
-
uri = Addressable::URI.parse(base_url).join(url)
|
31
|
+
uri = Addressable::URI.parse(base_url).join(url)
|
32
|
+
uri = Addressable::URI.parse(Addressable::URI.encode(Addressable::URI.unencode(uri)))
|
33
|
+
uri.host = uri.normalized_host
|
32
34
|
uri.path = '/' unless uri.path
|
33
35
|
uri.path = uri.path.gsub(%r|/{2,}|, '/')
|
34
36
|
uri.fragment = nil
|
data/lib/kudzu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kudzu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
231
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.7.4
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: A simple web crawler for ruby
|