lib/anemone/core.rb in anemone-0.0.5 vs lib/anemone/core.rb in anemone-0.0.6
- old
+ new
@@ -12,9 +12,10 @@
# Initialize the crawl with a starting *url*, *options*, and optional *block*
#
def initialize(url, &block)
url = URI(url) if url.is_a?(String)
@url = url
+ @url.path = "/" if @url.path.empty?
@tentacles = []
@pages = PageHash.new
@on_every_page_blocks = []
@on_pages_like_blocks = Hash.new { |hash,key| hash[key] = [] }
@skip_link_patterns = []