regexp_crawler 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ Jeweler::Tasks.new do |gemspec|
16
16
  gemspec.summary = "RegexpCrawler is a Ruby library for crawl data from website using regular expression."
17
17
  gemspec.description = "RegexpCrawler is a Ruby library for crawl data from website using regular expression."
18
18
  gemspec.email = "flyerhzm@gmail.com"
19
- gemspec.homepage = ""
19
+ gemspec.homepage = "http://github.com/flyerhzm/regexp_crawler"
20
20
  gemspec.authors = ["Richard Huang"]
21
21
  gemspec.files.exclude '.gitignore'
22
22
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
@@ -19,6 +19,10 @@ module RegexpCrawler
19
19
  @capture_regexp = Regexp.new(regexp.source, regexp.options | Regexp::MULTILINE)
20
20
  end
21
21
 
22
+ def logger=(logger)
23
+ @logger = logger == true ? Logger.new(STDOUT) : logger
24
+ end
25
+
22
26
  def start
23
27
  @results = []
24
28
  @captured_pages = []
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{regexp_crawler}
8
- s.version = "0.9.1"
8
+ s.version = "0.9.2"
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-14}
12
+ s.date = %q{2010-02-06}
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 = [
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  "spec/spec.opts",
37
37
  "spec/spec_helper.rb"
38
38
  ]
39
- s.homepage = %q{}
39
+ s.homepage = %q{http://github.com/flyerhzm/regexp_crawler}
40
40
  s.rdoc_options = ["--charset=UTF-8"]
41
41
  s.require_paths = ["lib"]
42
42
  s.rubygems_version = %q{1.3.5}
@@ -56,3 +56,4 @@ Gem::Specification.new do |s|
56
56
  else
57
57
  end
58
58
  end
59
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regexp_crawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
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-14 00:00:00 +08:00
12
+ date: 2010-02-06 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -42,7 +42,7 @@ files:
42
42
  - spec/spec.opts
43
43
  - spec/spec_helper.rb
44
44
  has_rdoc: true
45
- homepage: ""
45
+ homepage: http://github.com/flyerhzm/regexp_crawler
46
46
  licenses: []
47
47
 
48
48
  post_install_message: