sitemap_maker 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +48 -0
- data/lib/SitemapMaker/version.rb +1 -1
- data/lib/sitemap_maker.rb +8 -8
- metadata +4 -3
- data/lib/SitemapMaker/core_ext/uri/derectory.rb +0 -9
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# SitemapMaker
|
2
|
+
|
3
|
+
## About
|
4
|
+
|
5
|
+
指定URL以下のファイルのリンクをたどり、meta情報をCSVで書き出します。
|
6
|
+
|
7
|
+
## INSTALL
|
8
|
+
|
9
|
+
`gem install sitemap_maker`
|
10
|
+
|
11
|
+
## HOW TO USE
|
12
|
+
|
13
|
+
*option*
|
14
|
+
|
15
|
+
```shell
|
16
|
+
-h, --help HELP
|
17
|
+
-l, --deep_level VAL deep_level 再帰的に読み込む階層を指定します。Default = 3
|
18
|
+
-f, --filepath VAL output path 書き出すCSVのファイル名を指定します
|
19
|
+
-t, --target VAL target url クロールするURLを指定します
|
20
|
+
-v, --version Version
|
21
|
+
```
|
22
|
+
|
23
|
+
etc...
|
24
|
+
|
25
|
+
```shell
|
26
|
+
sitemap_maker -l 3 -t http://dlab-inc.jp -f data.csv
|
27
|
+
```
|
28
|
+
|
29
|
+
## AND MORE
|
30
|
+
|
31
|
+
**FEATURES**
|
32
|
+
|
33
|
+
1. FIX BUG
|
34
|
+
|
35
|
+
**AUTHOR**
|
36
|
+
|
37
|
+
Hiroyuki Ishii \<alprhcp666@gmail.com\>
|
38
|
+
|
39
|
+
**COPYRIGHT**
|
40
|
+
|
41
|
+
Copyright (c) 2012, Hiroyuki Ishii \<alprhcp666@gmail.com\>
|
42
|
+
|
43
|
+
**LICENSE**
|
44
|
+
|
45
|
+
[MIT License][MIT]
|
46
|
+
|
47
|
+
[MIT]: http://www.opensource.org/licenses/mit-license.php
|
48
|
+
|
data/lib/SitemapMaker/version.rb
CHANGED
data/lib/sitemap_maker.rb
CHANGED
@@ -10,18 +10,18 @@ require 'to_regexp'
|
|
10
10
|
# extend gem
|
11
11
|
Dir["./**/*.rb"].each { |f| require f }
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
#
|
16
|
-
# # extend module and class
|
17
|
-
# require 'SitemapMaker/core_ext/object/blank'
|
18
|
-
# require 'SitemapMaker/core_ext/object/try'
|
13
|
+
require 'SitemapMaker/Nokogiri/XML/node'
|
14
|
+
require 'SitemapMaker/Nokogiri/html'
|
19
15
|
|
20
|
-
#
|
21
|
-
|
16
|
+
# extend module and class
|
17
|
+
require 'SitemapMaker/core_ext/object/blank'
|
18
|
+
require 'SitemapMaker/core_ext/object/try'
|
19
|
+
require 'SitemapMaker/core_ext/uri/directory'
|
20
|
+
require 'SitemapMaker/html'
|
22
21
|
|
23
22
|
module SitemapMaker
|
24
23
|
autoload :VERSION, 'SitemapMaker/version'
|
25
24
|
autoload :SiteTree, 'SitemapMaker/site_tree'
|
25
|
+
autoload :Utils, 'SitemapMaker/utils'
|
26
26
|
end
|
27
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitemap_maker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -194,6 +194,7 @@ executables:
|
|
194
194
|
extensions: []
|
195
195
|
extra_rdoc_files:
|
196
196
|
- LICENSE.txt
|
197
|
+
- README.md
|
197
198
|
- README.rdoc
|
198
199
|
files:
|
199
200
|
- .document
|
@@ -201,6 +202,7 @@ files:
|
|
201
202
|
- Gemfile
|
202
203
|
- Gemfile.lock
|
203
204
|
- LICENSE.txt
|
205
|
+
- README.md
|
204
206
|
- README.rdoc
|
205
207
|
- Rakefile
|
206
208
|
- bin/sitemap_maker
|
@@ -208,7 +210,6 @@ files:
|
|
208
210
|
- lib/SitemapMaker/Nokogiri/html.rb
|
209
211
|
- lib/SitemapMaker/core_ext/object/blank.rb
|
210
212
|
- lib/SitemapMaker/core_ext/object/try.rb
|
211
|
-
- lib/SitemapMaker/core_ext/uri/derectory.rb
|
212
213
|
- lib/SitemapMaker/html.rb
|
213
214
|
- lib/SitemapMaker/site_tree.rb
|
214
215
|
- lib/SitemapMaker/utils.rb
|
@@ -234,7 +235,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
235
|
version: '0'
|
235
236
|
segments:
|
236
237
|
- 0
|
237
|
-
hash:
|
238
|
+
hash: 1910550972433006978
|
238
239
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
240
|
none: false
|
240
241
|
requirements:
|