flyerhzm-regexp_crawler 0.9.0 → 0.9.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.
- data/VERSION +1 -1
- data/lib/regexp_crawler/crawler.rb +1 -1
- data/regexp_crawler.gemspec +4 -4
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
@@ -41,7 +41,7 @@ module RegexpCrawler
|
|
41
41
|
def continue_uri(uri, page)
|
42
42
|
if page =~ /^#{uri.scheme}/
|
43
43
|
URI.parse(page)
|
44
|
-
elsif page
|
44
|
+
elsif page =~ /^\//
|
45
45
|
URI.join(uri.scheme + '://' + uri.host, page)
|
46
46
|
else
|
47
47
|
URI.parse(uri.to_s.split('/')[0..-2].join('/') + '/' + page)
|
data/regexp_crawler.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{regexp_crawler}
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Richard Huang"]
|
12
|
-
s.date = %q{2009-09-
|
12
|
+
s.date = %q{2009-09-14}
|
13
13
|
s.description = %q{RegexpCrawler is a Ruby library for crawl data from website using regular expression.}
|
14
14
|
s.email = %q{flyerhzm@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -42,8 +42,8 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.rubygems_version = %q{1.3.5}
|
43
43
|
s.summary = %q{RegexpCrawler is a Ruby library for crawl data from website using regular expression.}
|
44
44
|
s.test_files = [
|
45
|
-
"spec/
|
46
|
-
"spec/
|
45
|
+
"spec/regexp_crawler_spec.rb",
|
46
|
+
"spec/spec_helper.rb"
|
47
47
|
]
|
48
48
|
|
49
49
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flyerhzm-regexp_crawler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-14 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -68,5 +68,5 @@ signing_key:
|
|
68
68
|
specification_version: 3
|
69
69
|
summary: RegexpCrawler is a Ruby library for crawl data from website using regular expression.
|
70
70
|
test_files:
|
71
|
-
- spec/spec_helper.rb
|
72
71
|
- spec/regexp_crawler_spec.rb
|
72
|
+
- spec/spec_helper.rb
|