spidr 0.2.5 → 0.2.6
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.
- data/ChangeLog.md +5 -0
- data/lib/spidr/page.rb +2 -2
- data/lib/spidr/version.rb +1 -1
- data/spidr.gemspec +2 -2
- metadata +4 -4
data/ChangeLog.md
CHANGED
data/lib/spidr/page.rb
CHANGED
|
@@ -534,8 +534,8 @@ module Spidr
|
|
|
534
534
|
|
|
535
535
|
if (html? && doc)
|
|
536
536
|
search('//meta[@http-equiv and @content]').each do |node|
|
|
537
|
-
if node.
|
|
538
|
-
content = node.
|
|
537
|
+
if node.get_attribute('http-equiv') =~ /refresh/i
|
|
538
|
+
content = node.get_attribute('content')
|
|
539
539
|
|
|
540
540
|
if (redirect = content.match(/url=(\S+)$/))
|
|
541
541
|
redirects << redirect[1]
|
data/lib/spidr/version.rb
CHANGED
data/spidr.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{spidr}
|
|
8
|
-
s.version = "0.2.
|
|
8
|
+
s.version = "0.2.6"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Postmodern"]
|
|
12
|
-
s.date = %q{2010-07-
|
|
12
|
+
s.date = %q{2010-07-05}
|
|
13
13
|
s.description = %q{Spidr is a versatile Ruby web spidering library that can spider a site, multiple domains, certain links or infinitely. Spidr is designed to be fast and easy to use.}
|
|
14
14
|
s.email = %q{postmodern.mod3@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 2
|
|
8
|
-
-
|
|
9
|
-
version: 0.2.
|
|
8
|
+
- 6
|
|
9
|
+
version: 0.2.6
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Postmodern
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-07-
|
|
17
|
+
date: 2010-07-05 00:00:00 -07:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -149,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
149
149
|
requirements:
|
|
150
150
|
- - ">="
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
hash:
|
|
152
|
+
hash: -707506015
|
|
153
153
|
segments:
|
|
154
154
|
- 0
|
|
155
155
|
version: "0"
|