inochi 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/api/apple-touch-icon.png +0 -0
- data/doc/api/classes/Inochi.html +17 -17
- data/doc/api/classes/Inochi/Manual.html +10 -10
- data/doc/api/classes/TempDir.html +5 -5
- data/doc/api/created.rid +1 -1
- data/doc/api/favicon.ico +0 -0
- data/doc/api/files/CREDITS.html +1 -1
- data/doc/api/files/LICENSE.html +1 -1
- data/doc/api/files/lib/inochi/book_rb.html +15 -1
- data/doc/api/files/lib/inochi/init_rb.html +1 -13
- data/doc/api/files/lib/inochi/main_rb.html +1 -1
- data/doc/api/files/lib/inochi/rake_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/bacon_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/context_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/dfect_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/matchy_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/minitest_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/mocha_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/rspec_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/shoulda_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/test_spec_rb.html +1 -1
- data/doc/api/files/lib/inochi/test/test_unit_rb.html +1 -1
- data/doc/api/files/lib/inochi/util/combo_rb.html +1 -1
- data/doc/api/files/lib/inochi/util/tempdir_rb.html +1 -1
- data/doc/api/files/lib/inochi/util_rb.html +1 -1
- data/doc/api/files/lib/inochi_rb.html +1 -3
- data/doc/api/js/searchdoc.js +38 -15
- data/doc/api/panel/index.html +13 -5
- data/doc/api/panel/search_index.js +1 -1
- data/doc/history.erb +21 -1
- data/doc/index.html +233 -179
- data/lib/inochi.rb +16 -16
- data/lib/inochi/main.rb +1 -1
- data/lib/inochi/rake.rb +4 -4
- metadata +40 -29
Binary file
|
data/doc/api/classes/Inochi.html
CHANGED
@@ -47,7 +47,7 @@
|
|
47
47
|
<dd>
|
48
48
|
<ul>
|
49
49
|
|
50
|
-
<li><a href="#
|
50
|
+
<li><a href="#M000010">book</a></li>
|
51
51
|
|
52
52
|
</ul>
|
53
53
|
</dd>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
<dd>
|
66
66
|
<ul>
|
67
67
|
|
68
|
-
<li><a href="#
|
68
|
+
<li><a href="#M000013">main</a></li>
|
69
69
|
|
70
70
|
</ul>
|
71
71
|
</dd>
|
@@ -107,9 +107,9 @@
|
|
107
107
|
<div class="sectiontitle">Class Public methods</div>
|
108
108
|
|
109
109
|
<div class="method">
|
110
|
-
<div class="title" id="
|
110
|
+
<div class="title" id="M000010">
|
111
111
|
|
112
|
-
<a name="
|
112
|
+
<a name="M000010"></a><b>book</b>(project_symbol, book_template)
|
113
113
|
|
114
114
|
</div>
|
115
115
|
|
@@ -169,12 +169,12 @@ project.
|
|
169
169
|
|
170
170
|
<div class="sourcecode">
|
171
171
|
<p class="source-link">
|
172
|
-
Source: <a href="javascript:toggleSource('
|
172
|
+
Source: <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show</a>
|
173
173
|
|
174
174
|
| <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/book.rb#L42" target="_blank" class="github_url">on GitHub</a>
|
175
175
|
|
176
176
|
</p>
|
177
|
-
<div id="
|
177
|
+
<div id="M000010_source" class="dyn-source">
|
178
178
|
<pre><span class="ruby-comment cmt"># File lib/inochi/book.rb, line 42</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Inochi</span>.<span class="ruby-identifier">book</span> <span class="ruby-identifier">project_symbol</span>, <span class="ruby-identifier">book_template</span>
|
180
180
|
<span class="ruby-identifier">project_module</span> = <span class="ruby-identifier">fetch_project_module</span>(<span class="ruby-identifier">project_symbol</span>)
|
@@ -407,9 +407,9 @@ The newly configured project module.
|
|
407
407
|
</div>
|
408
408
|
|
409
409
|
<div class="method">
|
410
|
-
<div class="title" id="
|
410
|
+
<div class="title" id="M000013">
|
411
411
|
|
412
|
-
<a name="
|
412
|
+
<a name="M000013"></a><b>main</b>(project_symbol, *trollop_args, &trollop_config)
|
413
413
|
|
414
414
|
</div>
|
415
415
|
|
@@ -460,12 +460,12 @@ Returns the result of Trollop::options().
|
|
460
460
|
|
461
461
|
<div class="sourcecode">
|
462
462
|
<p class="source-link">
|
463
|
-
Source: <a href="javascript:toggleSource('
|
463
|
+
Source: <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show</a>
|
464
464
|
|
465
|
-
| <a href="http://github.com/sunaku/inochi/blob/
|
465
|
+
| <a href="http://github.com/sunaku/inochi/blob/d8ecbe3e3cef5f00a66dd24daa2112de392f9c57/lib/inochi/main.rb#L36" target="_blank" class="github_url">on GitHub</a>
|
466
466
|
|
467
467
|
</p>
|
468
|
-
<div id="
|
468
|
+
<div id="M000013_source" class="dyn-source">
|
469
469
|
<pre><span class="ruby-comment cmt"># File lib/inochi/main.rb, line 36</span>
|
470
470
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Inochi</span>.<span class="ruby-identifier">main</span> <span class="ruby-identifier">project_symbol</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">trollop_args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">trollop_config</span>
|
471
471
|
<span class="ruby-identifier">program_file</span> = <span class="ruby-identifier">first_caller_file</span>
|
@@ -488,7 +488,7 @@ Returns the result of Trollop::options().
|
|
488
488
|
<span class="ruby-comment cmt"># show program description</span>
|
489
489
|
<span class="ruby-identifier">text</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">program_file</span>)[<span class="ruby-regexp re">/\A.*?^$\n/</span><span class="ruby-identifier">m</span>]. <span class="ruby-comment cmt"># grab the header</span>
|
490
490
|
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/^# ?/</span>, <span class="ruby-value str">''</span>). <span class="ruby-comment cmt"># strip the comment markers</span>
|
491
|
-
<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/\A!.*?\n/</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">lstrip</span> <span class="ruby-comment cmt"># omit the
|
491
|
+
<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/\A!.*?\n/</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">lstrip</span> <span class="ruby-comment cmt"># omit the hashbang line</span>
|
492
492
|
<span class="ruby-identifier">text</span> <span class="ruby-value str">''</span>
|
493
493
|
|
494
494
|
<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">trollop_config</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">trollop_config</span>
|
@@ -668,7 +668,7 @@ configuration.
|
|
668
668
|
<p class="source-link">
|
669
669
|
Source: <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show</a>
|
670
670
|
|
671
|
-
| <a href="http://github.com/sunaku/inochi/blob/
|
671
|
+
| <a href="http://github.com/sunaku/inochi/blob/fcf734c40a17b8ee1b7ca6a77b262fca9d2b66c0/lib/inochi/rake.rb#L110" target="_blank" class="github_url">on GitHub</a>
|
672
672
|
|
673
673
|
</p>
|
674
674
|
<div id="M000014_source" class="dyn-source">
|
@@ -679,7 +679,7 @@ configuration.
|
|
679
679
|
|
680
680
|
<span class="ruby-comment cmt"># load the project module</span>
|
681
681
|
<span class="ruby-identifier">program_name</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">program_home</span>)
|
682
|
-
<span class="ruby-identifier">project_libs</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'lib'</span>, <span class="ruby-identifier">program_name</span>)
|
682
|
+
<span class="ruby-identifier">project_libs</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">program_home</span>, <span class="ruby-value str">'lib'</span>, <span class="ruby-identifier">program_name</span>)
|
683
683
|
|
684
684
|
<span class="ruby-identifier">require</span> <span class="ruby-identifier">project_libs</span>
|
685
685
|
<span class="ruby-identifier">project_module</span> = <span class="ruby-identifier">fetch_project_module</span>(<span class="ruby-identifier">project_symbol</span>)
|
@@ -1102,7 +1102,7 @@ configuration.
|
|
1102
1102
|
<span class="ruby-identifier">require</span> <span class="ruby-value str">'time'</span>
|
1103
1103
|
<span class="ruby-identifier">require</span> <span class="ruby-value str">'rss/maker'</span>
|
1104
1104
|
|
1105
|
-
<span class="ruby-identifier">
|
1105
|
+
<span class="ruby-identifier">rss</span> = <span class="ruby-constant">RSS</span><span class="ruby-operator">::</span><span class="ruby-constant">Maker</span>.<span class="ruby-identifier">make</span>(<span class="ruby-value str">'2.0'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">feed</span><span class="ruby-operator">|</span>
|
1106
1106
|
<span class="ruby-identifier">feed</span>.<span class="ruby-identifier">channel</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">ann_project</span>
|
1107
1107
|
<span class="ruby-identifier">feed</span>.<span class="ruby-identifier">channel</span>.<span class="ruby-identifier">link</span> = <span class="ruby-identifier">project_module</span><span class="ruby-operator">::</span><span class="ruby-constant">WEBSITE</span>
|
1108
1108
|
<span class="ruby-identifier">feed</span>.<span class="ruby-identifier">channel</span>.<span class="ruby-identifier">description</span> = <span class="ruby-identifier">project_module</span><span class="ruby-operator">::</span><span class="ruby-constant">TAGLINE</span>
|
@@ -1117,7 +1117,7 @@ configuration.
|
|
1117
1117
|
<span class="ruby-identifier">item</span>.<span class="ruby-identifier">description</span> = <span class="ruby-identifier">ann_html</span>
|
1118
1118
|
<span class="ruby-keyword kw">end</span>
|
1119
1119
|
|
1120
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">ann_feed_dst</span>, <span class="ruby-identifier">
|
1120
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">ann_feed_dst</span>, <span class="ruby-identifier">rss</span>
|
1121
1121
|
<span class="ruby-keyword kw">end</span>
|
1122
1122
|
|
1123
1123
|
<span class="ruby-constant">CLOBBER</span>.<span class="ruby-identifier">include</span> <span class="ruby-identifier">ann_feed_dst</span>
|
@@ -1308,7 +1308,7 @@ configuration.
|
|
1308
1308
|
<span class="ruby-identifier">www</span> = <span class="ruby-constant">WWW</span><span class="ruby-operator">::</span><span class="ruby-constant">Mechanize</span>.<span class="ruby-identifier">new</span>
|
1309
1309
|
<span class="ruby-identifier">page</span> = <span class="ruby-identifier">www</span>.<span class="ruby-identifier">get</span> <span class="ruby-node">"http://rubyforge.org/news/?group_id=#{group_id}"</span>
|
1310
1310
|
|
1311
|
-
<span class="ruby-identifier">posts</span> = (<span class="ruby-identifier">page</span><span class="ruby-operator">/</span><span class="ruby-value str">'//a[starts-with(./@href, "/forum/forum.php?forum_id=")]/text()'</span>).<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">
|
1311
|
+
<span class="ruby-identifier">posts</span> = (<span class="ruby-identifier">page</span><span class="ruby-operator">/</span><span class="ruby-value str">'//a[starts-with(./@href, "/forum/forum.php?forum_id=")]/text()'</span>).<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span> }
|
1312
1312
|
|
1313
1313
|
<span class="ruby-identifier">already_announced</span> = <span class="ruby-identifier">posts</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">ann_subject</span>
|
1314
1314
|
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<dd>
|
44
44
|
<ul>
|
45
45
|
|
46
|
-
<li><a href="#
|
46
|
+
<li><a href="#M000012">history</a></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</dd>
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<dd>
|
53
53
|
<ul>
|
54
54
|
|
55
|
-
<li><a href="#
|
55
|
+
<li><a href="#M000011">project</a></li>
|
56
56
|
|
57
57
|
</ul>
|
58
58
|
</dd>
|
@@ -74,9 +74,9 @@
|
|
74
74
|
<div class="sectiontitle">Instance Public methods</div>
|
75
75
|
|
76
76
|
<div class="method">
|
77
|
-
<div class="title" id="
|
77
|
+
<div class="title" id="M000012">
|
78
78
|
|
79
|
-
<a name="
|
79
|
+
<a name="M000012"></a><b>history</b>()
|
80
80
|
|
81
81
|
</div>
|
82
82
|
|
@@ -92,12 +92,12 @@ Contains release notes for all project releases.
|
|
92
92
|
|
93
93
|
<div class="sourcecode">
|
94
94
|
<p class="source-link">
|
95
|
-
Source: <a href="javascript:toggleSource('
|
95
|
+
Source: <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show</a>
|
96
96
|
|
97
97
|
| <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/book.rb#L82" target="_blank" class="github_url">on GitHub</a>
|
98
98
|
|
99
99
|
</p>
|
100
|
-
<div id="
|
100
|
+
<div id="M000012_source" class="dyn-source">
|
101
101
|
<pre><span class="ruby-comment cmt"># File lib/inochi/book.rb, line 82</span>
|
102
102
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">history</span>
|
103
103
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span>
|
@@ -113,9 +113,9 @@ Contains release notes for all project releases.
|
|
113
113
|
</div>
|
114
114
|
|
115
115
|
<div class="method">
|
116
|
-
<div class="title" id="
|
116
|
+
<div class="title" id="M000011">
|
117
117
|
|
118
|
-
<a name="
|
118
|
+
<a name="M000011"></a><b>project</b>()
|
119
119
|
|
120
120
|
</div>
|
121
121
|
|
@@ -131,12 +131,12 @@ Defines a brief summary of this project.
|
|
131
131
|
|
132
132
|
<div class="sourcecode">
|
133
133
|
<p class="source-link">
|
134
|
-
Source: <a href="javascript:toggleSource('
|
134
|
+
Source: <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show</a>
|
135
135
|
|
136
136
|
| <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/book.rb#L70" target="_blank" class="github_url">on GitHub</a>
|
137
137
|
|
138
138
|
</p>
|
139
|
-
<div id="
|
139
|
+
<div id="M000011_source" class="dyn-source">
|
140
140
|
<pre><span class="ruby-comment cmt"># File lib/inochi/book.rb, line 70</span>
|
141
141
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">project</span>
|
142
142
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span>
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<dd>
|
59
59
|
<ul>
|
60
60
|
|
61
|
-
<li><a href="#
|
61
|
+
<li><a href="#M000008">new</a></li>
|
62
62
|
|
63
63
|
</ul>
|
64
64
|
</dd>
|
@@ -93,9 +93,9 @@
|
|
93
93
|
<div class="sectiontitle">Class Public methods</div>
|
94
94
|
|
95
95
|
<div class="method">
|
96
|
-
<div class="title" id="
|
96
|
+
<div class="title" id="M000008">
|
97
97
|
|
98
|
-
<a name="
|
98
|
+
<a name="M000008"></a><b>new</b>(basename = nil, dirname = nil)
|
99
99
|
|
100
100
|
</div>
|
101
101
|
|
@@ -104,12 +104,12 @@
|
|
104
104
|
|
105
105
|
<div class="sourcecode">
|
106
106
|
<p class="source-link">
|
107
|
-
Source: <a href="javascript:toggleSource('
|
107
|
+
Source: <a href="javascript:toggleSource('M000008_source')" id="l_M000008_source">show</a>
|
108
108
|
|
109
109
|
| <a href="http://github.com/sunaku/inochi/blob/94ea085869f0eab9b04917d057bdae5b64157781/lib/inochi/util/tempdir.rb#L12" target="_blank" class="github_url">on GitHub</a>
|
110
110
|
|
111
111
|
</p>
|
112
|
-
<div id="
|
112
|
+
<div id="M000008_source" class="dyn-source">
|
113
113
|
<pre><span class="ruby-comment cmt"># File lib/inochi/util/tempdir.rb, line 12</span>
|
114
114
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">basename</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">dirname</span> = <span class="ruby-keyword kw">nil</span>
|
115
115
|
<span class="ruby-identifier">args</span> = [<span class="ruby-identifier">basename</span> <span class="ruby-operator">||</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">$0</span>), <span class="ruby-identifier">dirname</span>].<span class="ruby-identifier">compact</span>
|
data/doc/api/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Sat, 03 Oct 2009 12:07:40 -0700
|
data/doc/api/favicon.ico
ADDED
Binary file
|
data/doc/api/files/CREDITS.html
CHANGED
data/doc/api/files/LICENSE.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
</h1>
|
20
20
|
<ul class="files">
|
21
21
|
<li>lib/inochi/book.rb</li>
|
22
|
-
<li>Last modified:
|
22
|
+
<li>Last modified: 2009-09-06 20:52:42 -0700</li>
|
23
23
|
</ul>
|
24
24
|
</div>
|
25
25
|
|
@@ -31,6 +31,8 @@
|
|
31
31
|
<div class="sectiontitle">Required Files</div>
|
32
32
|
<ul>
|
33
33
|
|
34
|
+
<li>trollop</li>
|
35
|
+
|
34
36
|
<li>launchy</li>
|
35
37
|
|
36
38
|
<li>rake/clean</li>
|
@@ -59,6 +61,18 @@
|
|
59
61
|
|
60
62
|
<li>time</li>
|
61
63
|
|
64
|
+
<li>rubyforge</li>
|
65
|
+
|
66
|
+
<li>addressable/uri</li>
|
67
|
+
|
68
|
+
<li>yaml</li>
|
69
|
+
|
70
|
+
<li>mechanize</li>
|
71
|
+
|
72
|
+
<li>mechanize</li>
|
73
|
+
|
74
|
+
<li>mechanize</li>
|
75
|
+
|
62
76
|
</ul>
|
63
77
|
|
64
78
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
</h1>
|
20
20
|
<ul class="files">
|
21
21
|
<li>lib/inochi/init.rb</li>
|
22
|
-
<li>Last modified:
|
22
|
+
<li>Last modified: 2009-09-06 20:53:19 -0700</li>
|
23
23
|
</ul>
|
24
24
|
</div>
|
25
25
|
|
@@ -33,18 +33,6 @@
|
|
33
33
|
|
34
34
|
<li>yaml</li>
|
35
35
|
|
36
|
-
<li>rubyforge</li>
|
37
|
-
|
38
|
-
<li>addressable/uri</li>
|
39
|
-
|
40
|
-
<li>yaml</li>
|
41
|
-
|
42
|
-
<li>mechanize</li>
|
43
|
-
|
44
|
-
<li>mechanize</li>
|
45
|
-
|
46
|
-
<li>mechanize</li>
|
47
|
-
|
48
36
|
</ul>
|
49
37
|
|
50
38
|
|