pulse-downloader 0.1.37 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pulse/downloader/version.rb +1 -1
- data/lib/pulse/downloader/web_page_parser.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15b3ba4650d2aa0c01ba6f5456888889bfd888405177aa956f092ba2c0691065
|
4
|
+
data.tar.gz: d28d3d28516d5cbdeaa255923e79e55526a364f70389a3d716ce9e8dec90af08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff848ed64e1adefe773378d9f8a6ccb2d9b7f533a58a10e008b8f7d1b1d678c16978426c0c4a3de8aaa2797c1647304b7dd996fcb979a4cc7a831ce229163fc1
|
7
|
+
data.tar.gz: d9f01143d5d1a27ba38516b0ebed0a4ab49078e796f513d8351a90bbc8506077aa375b8b1a2ee8576b81836957f90ae31b5db31e8fdcc4b18a3dc30170f9b182
|
@@ -67,8 +67,8 @@ module Pulse
|
|
67
67
|
def extract_hrefs(response, custom_path_root)
|
68
68
|
parse_html(response.body)
|
69
69
|
.css('a')
|
70
|
-
.map { |link| link['href'] }
|
71
|
-
.reject { |link| link == "../" }
|
70
|
+
.map { |link| "/#{link['href']}" }
|
71
|
+
.reject { |link| link == "../" || link == "/../" }
|
72
72
|
.map { |link| add_base_url(link, custom_path_root) }
|
73
73
|
end
|
74
74
|
|