pantopoda 0.0.6 → 0.0.7

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
2
  SHA1:
3
- metadata.gz: 2942d25ee2525eb4cf2ee047da228a329e2fadd6
4
- data.tar.gz: 9c92b461efece06cea336411b4dfabd780698c9a
3
+ metadata.gz: d13ad12df8d445df6bccd998ccbf8404944919c0
4
+ data.tar.gz: 7a7f1a1d9f98ae5f5213979f3246e2caa4c9071c
5
5
  SHA512:
6
- metadata.gz: 7a7ac84b43458113b8a7c86ac76328d08affa7fc4da96ce2a05c97be8e5fcfa78f27ebdeb39dba7df6c47cabef5b0707ff504ccb74ed0ebe7d9dc808a748c5bc
7
- data.tar.gz: 3ba1c4f9a5d35527adb4e69cd21d6a46127712be09e8e5e23848747083f449adbbf99a9bca1e5919a4dfd83cbb28e6473f4675398477f02c94ecca34987f8725
6
+ metadata.gz: 40a2d0be2bacd7a562666fb1393dfa685e396790294172c56c837756df50ad97e13db1e1bd57b2b5a007d846be7ea642368a91ee54cad2fda6b0d6c53300c015
7
+ data.tar.gz: 6f4d4dbb16c2bb670730a2e315a6abf8d76282c87edc493b22c01658d3839894d36f69d3473b0a7c7fd8bdd55de8e925394e65a7fb7ba763495767a1d2f3ee6d
@@ -1,3 +1,3 @@
1
1
  module Pantopoda
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/pantopoda.rb CHANGED
@@ -41,9 +41,9 @@ module Pantopoda
41
41
  links = Nokogiri::HTML.parse(response.body).xpath('.//a/@href')
42
42
  links.each do |link|
43
43
  if (internal_link?(link, response.effective_url) && !@global_visited.include?(make_absolute(link, response.effective_url)) && no_hash_in_url?(link) && ignore_extensions(link))
44
- sanitized_link = sanitized_link(split_url_at_hash(link))
45
- if (sanitized_link)
46
- absolute_link = make_absolute(sanitized_link, response.effective_url)
44
+ sanitize_link = sanitize_link(split_url_at_hash(link))
45
+ if (sanitize_link)
46
+ absolute_link = make_absolute(sanitize_link, response.effective_url)
47
47
  if absolute_link
48
48
  @global_queue << absolute_link
49
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pantopoda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Lim