arachnid 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/arachnid.rb +1 -1
  2. metadata +1 -1
data/lib/arachnid.rb CHANGED
@@ -32,7 +32,7 @@ class Arachnid
32
32
 
33
33
  @global_queue << @start_url
34
34
 
35
- while(@global_queue.size > 0 && (max_urls && @global_visited.size.to_i < max_urls))
35
+ while(@global_queue.size > 0 && (max_urls.nil? || @global_visited.size.to_i < max_urls))
36
36
  temp_queue = @global_queue
37
37
 
38
38
  temp_queue.each do |q|
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: arachnid
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - dchuk