polipus 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGE5NThiNjIyZmFmMDhkMzQ1OGFjMDY3MTgxOThhMDUwMzM4NDE2Zg==
4
+ MDlmZGJiYmY1MWQ1NWFiMDMxZGRmYzBmNGQ4OGU4ZGFmOTgxN2M5Mg==
5
5
  data.tar.gz: !binary |-
6
- YjhkYjUzOGI5MjJiYjdjMjQ0ZjdlOTAxOTBlODA0ZjRiYzBhZTI4Ng==
6
+ Y2NjYmI5N2Y1NDA4NjVlNGQ2YWNhMWUxYjkyODA5NjBkOWVmOTljZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzEzOTk5NDQwMjdmYTZiOTlkNjllYmUxY2M0ZTY1ZWRjOTMwMzEwNjZmZGMy
10
- ZjA0NjJiZDgzNzFhYzRkNGQ2ZGY3MmQxMTdlNmJjZDg2MTZiMGE2ZDA0N2Iz
11
- NThlMjU2ODllNTIxMjA5OWRhYmY0ZDBlN2I2MjAzNjI3YzVlZDQ=
9
+ MmQ1ZDc2M2RiYmVmZjg0NDVlYjYyNTYzOWY4M2NjMGQ1MDZjMGQwZWYwNjJj
10
+ OWMzNjY4ODI3ZTA5ZmEzM2U0YTZiNWQxOWI2YzkyNDAzM2Q5YzIyZDFiNmE5
11
+ MzQ0YzM3ZDgwNTk5N2ZjNzMxOTY3OTllNWFjNDI3YjQ0NGVhODg=
12
12
  data.tar.gz: !binary |-
13
- ODM0ZDVkNDZlZDQ0NzM2NWEwOGY4MDRkY2IzM2U0MzBiYjQ3YzA0Njk0ZDU5
14
- ZTVhYjkwZmQ1ZDRhYjhkMThlOWVkMTNiYzAxNTc1NDUwMDNiMjNmYjE5Nzhm
15
- Yzc0MDI5N2ZkMjQxMzEwOTExODUyMmJjNWU1YTdmODAyYmIwNzU=
13
+ ZTI1NWUzNzQwNTA2NTU4Mjk5OTVhNmI3NDlkNDFmOTRmN2JmZDhhZDRhYWZl
14
+ Y2VkM2ZkNDZjZWYyOTk0NTgzZTIxOTA0ZGEzMjc1MGNmOGFkYTgxZjc4ZWJj
15
+ ZGVhY2FiNDk3MDYwNzllMGNiYTI2NDMwYTAyMzY4NTczYmJjNGQ=
data/lib/polipus.rb CHANGED
@@ -341,11 +341,6 @@ module Polipus
341
341
  # URLs enqueue policy
342
342
  def should_be_visited?(url, with_tracker = true)
343
343
 
344
- # return +true+ If an url is part of the initial seeder
345
- # no matter what
346
-
347
- return true if @urls.map(&:to_s).include?(url.to_s)
348
-
349
344
  # Check against whitelist pattern matching
350
345
  unless @follow_links_like.empty?
351
346
  return false unless @follow_links_like.any?{|p| url.path =~ p}
@@ -15,7 +15,7 @@ module Polipus
15
15
  @redis.sadd(@set_name, url)
16
16
  end
17
17
 
18
- def remove
18
+ def remove url
19
19
  @redis.srem(@set_name, url, 0)
20
20
  end
21
21
 
@@ -24,4 +24,4 @@ module Polipus
24
24
  end
25
25
  end
26
26
  end
27
- end
27
+ end
@@ -1,4 +1,4 @@
1
1
  module Polipus
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  HOMEPAGE = "https://github.com/taganaka/polipus"
4
4
  end
data/spec/polipus_spec.rb CHANGED
@@ -19,7 +19,7 @@ describe Polipus::PolipusCrawler do
19
19
  }
20
20
 
21
21
  let(:init_page){
22
- init_page = Polipus::Page.new "http://rubygems.org/gems"
22
+ Polipus::Page.new "http://rubygems.org/gems"
23
23
  }
24
24
 
25
25
  let(:logger){Logger.new(nil)}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polipus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Laurita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-08 00:00:00.000000000 Z
11
+ date: 2014-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-bloomfilter