Skip to content

Commit 057279e

Browse files
committed
183 Append doc, refactoring, version bump to 12.6.0
1 parent 6ceea6b commit 057279e

12 files changed

Lines changed: 140 additions & 79 deletions

File tree

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Installation.
2121

2222
``` html
2323
gem install automatic
24+
automatic-config scaffold
2425
```
2526

2627
Specify any recipe with -c option.
@@ -32,7 +33,7 @@ automatic -c <recipe>
3233
Example.
3334

3435
``` html
35-
$ automatic -c config/feed2console.yml
36+
$ automatic -c ~/.automatic/config/example/feed2console.yml
3637
```
3738

3839

@@ -45,9 +46,7 @@ of associated plug-ins.
4546

4647
This YAML file is called "Recipe".
4748

48-
When you start automatic ruby without argument -c option,
49-
the config/default.yml is called. You can use -c option for
50-
specify a file name.
49+
You can use -c option for specify a file name.
5150

5251
The Recipe has an implicit naming convention.
5352

@@ -84,6 +83,10 @@ We need your help.
8483

8584
+ http://rubyforge.org/projects/automatic/
8685

86+
**RubyGems.org**
87+
88+
+ https://rubygems.org/gems/automatic
89+
8790
**CI**
8891

8992
+ http://jenkins.id774.net/jenkins/
@@ -102,7 +105,7 @@ Releases will be numbered with the follow format:
102105

103106
`<year>.<month>`
104107

105-
This naming convention is to mimic the Ubuntu.
108+
This naming convention is to mimic Ubuntu.
106109

107110

108111
Developers

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.4.0
1+
12.6.0

bin/automatic

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ parser = OptionParser.new { |parser|
2020
parser.separator "options:"
2121
parser.on('-c', '--config FILE', String,
2222
"recipe YAML file"){|c| recipe_path = c}
23-
parser.on('-h', '--help', "show this message") {
23+
parser.on('-h', '--help', "show this message") {
2424
puts parser
2525
exit
2626
}
@@ -35,9 +35,9 @@ rescue OptionParser::ParseError => err
3535
exit 1
3636
end
3737

38-
if recipe_path.to_s.empty?
38+
if recipe_path.to_s.empty?
3939
if ENV["AUTOMATIC_RUBY_ENV"] == "test"
40-
recpie_path = File.join(root_dir, 'config/default.yml')
40+
recpie_path = File.join(root_dir, 'config/default.yml')
4141
else
4242
puts parser
4343
exit 0

bin/automatic-config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# -*- coding: utf-8 -*-
33
# Name:: Automatic::Ruby
44
# Author:: kzgs
5+
# 774 <http://id774.net>
56
# Created:: Mar 11, 2012
6-
# Updated:: Jun 14, 2012
7+
# Updated:: Jun 17, 2012
78
# Copyright:: kzgs Copyright (c) 2012
89
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
910

@@ -39,7 +40,6 @@ subparsers = {
3940
unless File.exist?(dir)
4041
FileUtils.mkdir_p(dir)
4142
FileUtils.cp_r(root_dir + '/config', dir + '/example')
42-
FileUtils.cp_r(root_dir + '/test/integration', dir + '/test')
4343
puts "Create Directory #{dir}"
4444
end
4545
dir = (File.expand_path('~/.automatic/db'))

config/feed2console.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ plugins:
99
- module: SubscriptionFeed
1010
config:
1111
feeds:
12-
- http://blog.id774.net/blogs/feed/
12+
- http://blog.id774.net/post/feed/
1313

1414
- module: PublishConsole
15-

doc/ChangeLog

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,43 @@
1+
=== 12.6.0 / 2012-06-18
2+
3+
* Added plug-ins.
4+
5+
* Subscription::URI
6+
* Extract::Link
7+
* Filter::Image
8+
* Store::Link
9+
* Store::Target
10+
11+
* Improvement automatic-config.
12+
13+
* Scaffold makes config and db directory.
14+
* Unscaffold SubCommand added to automatic-config.
15+
16+
* Improvement search path.
17+
18+
* Search user_dir's config when order -c option with simple filename.
19+
* If user's db directory exist, use it.
20+
21+
* Improvement log.
22+
23+
* Show recipe and db name on log.
24+
25+
* Refactoring.
26+
27+
* Refactoring plug-in names.
28+
* Header fields.
29+
30+
* Add tests.
31+
32+
* RSpec code coverage over 99%.
33+
* Add all option script/build.
34+
35+
136
=== 12.4.0 / 2012-04-30
237

338
* Inspect SubCommand added to automatic-config.
439

5-
* Added Plugins.
40+
* Added plug-ins.
641

742
* Filter::Reverse
843
* Publish::SMTP

doc/PLUGINS

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -292,16 +292,16 @@ CustomFeedSVNLog
292292
fetch_items: 2 # If not specified, 30
293293

294294

295-
CustomFeedURI
296-
-------------
295+
SubscriptionURI
296+
---------------
297297
[Path]
298-
/plugins/custom_feed/uri.rb
298+
/plugins/subscription/uri.rb
299299

300300
[Input]
301301
None
302302

303303
[Output]
304-
File Object
304+
HTML
305305

306306
[Description]
307307
Open http or ftp URL to file object.
@@ -314,16 +314,16 @@ CustomFeedURI
314314
- URL ...
315315

316316

317-
FilterLink
318-
----------
317+
ExtractLink
318+
-----------
319319
[Path]
320-
/plugins/filter/link.rb
320+
/plugins/extract/link.rb
321321

322322
[Input]
323-
File Object
323+
HTML
324324

325325
[Output]
326-
HTML
326+
An array of links.
327327

328328
[Description]
329329
Extract a link in HTML.
@@ -338,10 +338,10 @@ FilterImageLink
338338
/plugins/filter/image_link.rb
339339

340340
[Input]
341-
HTML
341+
An array of links.
342342

343343
[Output]
344-
HTML
344+
An array of links.
345345

346346
[Description]
347347
Extract image's link from HTML.
@@ -356,10 +356,10 @@ StoreLink
356356
/plugins/store/link.rb
357357

358358
[Input]
359-
HTML
359+
An array of links.
360360

361361
[Output]
362-
HTML
362+
An array of links.
363363

364364
[Abstract]
365365
Save a permanent link.
@@ -378,10 +378,10 @@ StoreTarget
378378
/plugins/store/target.rb
379379

380380
[Input]
381-
HTML
381+
An array of links.
382382

383383
[Output]
384-
HTML
384+
An array of links.
385385

386386
[Description]
387387
Store target locally by a link in HTML.

doc/PLUGINS.ja

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -292,16 +292,16 @@ CustomFeedSVNLog
292292
fetch_items: 2 # 指定されない場合は 30
293293

294294

295-
CustomFeedURI
296-
-------------
295+
SubscriptionURI
296+
---------------
297297
[パス]
298-
/plugins/custom_feed/uri.rb
298+
/plugins/subscription/uri.rb
299299

300300
[入力]
301301
無し
302302

303303
[出力]
304-
ファイルオブジェクト
304+
HTML
305305

306306
[概要]
307307
http/ftp の URL をファイルオブジェクトとして開く
@@ -314,16 +314,16 @@ CustomFeedURI
314314
- URL ...
315315

316316

317-
FilterLink
318-
----------
317+
ExtractLink
318+
-----------
319319
[パス]
320-
/plugins/filter/link.rb
320+
/plugins/extract/link.rb
321321

322322
[入力]
323-
ファイルオブジェクト
323+
HTML
324324

325325
[出力]
326-
HTML
326+
An array of links.
327327

328328
[概要]
329329
HTML の a リンクのみを抽出する
@@ -338,10 +338,10 @@ FilterImageLink
338338
/plugins/filter/image_link.rb
339339

340340
[入力]
341-
HTML
341+
An array of links.
342342

343343
[出力]
344-
HTML
344+
An array of links.
345345

346346
[概要]
347347
画像ファイルのリンクのみを抽出する
@@ -356,10 +356,10 @@ StoreLink
356356
/plugins/store/link.rb
357357

358358
[入力]
359-
HTML
359+
An array of links.
360360

361361
[出力]
362-
HTML
362+
An array of links.
363363

364364
[概要]
365365
パーマリンクを保存する
@@ -378,10 +378,10 @@ StoreTarget
378378
/plugins/store/target.rb
379379

380380
[入力]
381-
HTML
381+
An array of links.
382382

383383
[出力]
384-
HTML
384+
An array of links.
385385

386386
[概要]
387387
HTML の a リンク先のコンテンツをローカルに保存する

0 commit comments

Comments
 (0)