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 CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.2.6 / 2010-07-05
2
+
3
+ * Fixed a bug in {Spidr::Page#meta_redirect}, by calling
4
+ `Nokogiri::XML::Element#get_attribute` instead of `attr`.
5
+
1
6
  ### 0.2.5 / 2010-07-02
2
7
 
3
8
  * Added {Spidr::Page#meta_redirect}.
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.attr('http-equiv') =~ /refresh/i
538
- content = node.attr('content')
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
@@ -1,4 +1,4 @@
1
1
  module Spidr
2
2
  # Spidr version
3
- VERSION = '0.2.5'
3
+ VERSION = '0.2.6'
4
4
  end
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.5"
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-02}
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
- - 5
9
- version: 0.2.5
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-02 00:00:00 -07:00
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: 740918287
152
+ hash: -707506015
153
153
  segments:
154
154
  - 0
155
155
  version: "0"