spiderz 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.txt +2 -2
  2. data/lib/spiderz.rb +1 -1
  3. metadata +1 -1
data/README.txt CHANGED
@@ -17,14 +17,14 @@ Create a site map.
17
17
  # create the class
18
18
  spider = Spiderz.new "http://mysite.com"
19
19
 
20
- # setup a custom
20
+ # setup a custom callback
21
21
  spider.success do |url, doc|
22
22
  title = (doc / "title").text.strip
23
23
  puts "<a href='#{url}' >#{title}</a>"
24
24
  end
25
25
 
26
26
  # set it going
27
- spider.crawl
27
+ spider.crawl "/"
28
28
 
29
29
  == REQUIREMENTS:
30
30
 
data/lib/spiderz.rb CHANGED
@@ -4,7 +4,7 @@ require 'open-uri'
4
4
 
5
5
  class Spiderz
6
6
 
7
- VERSION = "0.1.0"
7
+ VERSION = "0.1.1"
8
8
 
9
9
  #root should be like http://www.google.com (i.e. with http://)
10
10
  def initialize(root)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spiderz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonah Fox