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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 59b1c39740e51e0ad707af8de868d13a8b311a34
4
- data.tar.gz: 8b9670f0653c53b6fa9fd8decb223fa9786fccdd
2
+ SHA256:
3
+ metadata.gz: 8aa1feb6080a9006dc33afd5af9bd4428c22a80d465c9b80410e1734719ba1d5
4
+ data.tar.gz: 9f293ed4f43141e6250600da8f90dd900d73ebed7c53dbb225ffea5e6fb5dd5d
5
5
  SHA512:
6
- metadata.gz: 8c43e84e3213f5cefeb7ed53fffa80b5091d6af97a88e1eb21c30e7694ecb55e9915cd7c7e8a67c13983ae58d19c9378e4a4d6e54b76ea9037a15b14e51a0ec7
7
- data.tar.gz: 3e49648e19024c777266646a990e9ddc4c2e5602983974bd44f1f65bf9d7c8437898d27c3ed51815746acdffbaf9ded2a3165688396d6330d14f988576cdcaf5
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).normalize
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
@@ -1,3 +1,3 @@
1
1
  module Kudzu
2
- VERSION = '1.1.5'
2
+ VERSION = '1.1.6'
3
3
  end
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.5
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-03-09 00:00:00.000000000 Z
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.5.2.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