seo_checker 0.2.3 → 0.2.4

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/README.md CHANGED
@@ -23,7 +23,7 @@ Check your website if it is seo.
23
23
  It is easy to use, just one line.
24
24
  <code>seo_checker http://example.com/</code>
25
25
 
26
- It is strongly recommand to check seo in development environment. If you want to test in production environment, you can use option <code>--batch</code> and <code>--interval</code> to make sure it does not get too crowded.
26
+ It is strongly recommand to check seo in development environment. If you want to test in production environment, you can use option <code>--batch</code> and <code>--interval</code> to make sure it does not get too crowded, and use <code>--debug</code> to see the page crawling.
27
27
 
28
28
  <pre><code>
29
29
  Usage: seo_checker [OPTIONS] website_url
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
data/bin/seo_checker CHANGED
@@ -4,9 +4,9 @@ require 'optparse'
4
4
  require File.expand_path(File.dirname(__FILE__) + "/../lib/seo_checker")
5
5
 
6
6
  options = {}
7
- OptionParser.new do |opts|
7
+ opts = OptionParser.new do |opts|
8
8
  opts.banner = "Usage: seo_checker [OPTIONS] website_url"
9
-
9
+
10
10
  opts.on('-b', '--batch BATCH_SIZE', 'get a batch size of pages') do |batch|
11
11
  options[:batch_size] = batch
12
12
  end
@@ -27,5 +27,10 @@ OptionParser.new do |opts|
27
27
  opts.parse!
28
28
  end
29
29
 
30
+ if ARGV.empty?
31
+ puts opts.help
32
+ exit
33
+ end
34
+
30
35
  checker = SEOChecker.new(ARGV[0], options)
31
36
  checker.check
data/seo_checker.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{seo_checker}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
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{2010-03-05}
12
+ s.date = %q{2010-03-06}
13
13
  s.description = %q{seo_checker check your website if it is seo.}
14
14
  s.email = %q{flyerhzm@gmail.com}
15
15
  s.executables = ["seo_checker", "seo_checker"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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: 2010-03-05 00:00:00 +08:00
12
+ date: 2010-03-06 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15