inochi 0.0.1 → 0.1.0

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/bin/inochi CHANGED
@@ -73,7 +73,7 @@
73
73
 
74
74
  preamble = %{
75
75
  require 'rubygems'
76
- gem '#{Inochi::PROGRAM}', '~> #{Inochi::VERSION[/^\d+/]}'
76
+ gem '#{Inochi::PROGRAM}', '#{Inochi::VERSION.requirement}'
77
77
  require '#{Inochi::PROGRAM}'
78
78
  }.strip
79
79
 
data/doc/api/Inochi.html CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  <tr>
26
26
  <th class="signature">
27
- <span class='name'><a title="book" href="#book-class_method">book</a></span><span class='args'>(project_symbol, book_template)</span>
27
+ <span class='name'><a href="#book-class_method" title="book">book</a></span><span class='args'>(project_symbol, book_template)</span>
28
28
  <span class='block'></span>
29
29
 
30
30
  </th>
@@ -39,7 +39,7 @@ Provides a common configuration for the project&#8217;s user manual:.
39
39
 
40
40
  <tr>
41
41
  <th class="signature">
42
- <span class='name'><a title="calc_program_name" href="#calc_program_name-class_method">calc_program_name</a></span><span class='args'>(project_symbol)</span>
42
+ <span class='name'><a href="#calc_program_name-class_method" title="calc_program_name">calc_program_name</a></span><span class='args'>(project_symbol)</span>
43
43
  <span class='block'></span>
44
44
 
45
45
  </th>
@@ -55,7 +55,7 @@ project name fully in lowercase.
55
55
 
56
56
  <tr>
57
57
  <th class="signature">
58
- <span class='name'><a title="calc_project_symbol" href="#calc_project_symbol-class_method">calc_project_symbol</a></span><span class='args'>(project_name)</span>
58
+ <span class='name'><a href="#calc_project_symbol-class_method" title="calc_project_symbol">calc_project_symbol</a></span><span class='args'>(project_name)</span>
59
59
  <span class='block'></span>
60
60
 
61
61
  </th>
@@ -70,7 +70,7 @@ Calculates the name of the project module from the given project name.
70
70
 
71
71
  <tr>
72
72
  <th class="signature">
73
- <span class='name'><a title="camel_to_snake_case" href="#camel_to_snake_case-class_method">camel_to_snake_case</a></span><span class='args'>(input)</span>
73
+ <span class='name'><a href="#camel_to_snake_case-class_method" title="camel_to_snake_case">camel_to_snake_case</a></span><span class='args'>(input)</span>
74
74
  <span class='block'></span>
75
75
 
76
76
  </th>
@@ -85,7 +85,7 @@ Transforms the given input from CamelCase to snake_case.
85
85
 
86
86
  <tr>
87
87
  <th class="signature">
88
- <span class='name'><a title="init" href="#init-class_method">init</a></span><span class='args'>(project_symbol, project_config = )</span>
88
+ <span class='name'><a href="#init-class_method" title="init">init</a></span><span class='args'>(project_symbol, project_config = )</span>
89
89
  <span class='block'></span>
90
90
 
91
91
  </th>
@@ -109,7 +109,7 @@ project) and providing a common configuration for the project module:.
109
109
 
110
110
  <tr>
111
111
  <th class="signature">
112
- <span class='name'><a title="main" href="#main-class_method">main</a></span><span class='args'>(project_symbol, *trollop_args, &amp;trollop_config)</span>
112
+ <span class='name'><a href="#main-class_method" title="main">main</a></span><span class='args'>(project_symbol, *trollop_args, &amp;trollop_config)</span>
113
113
  <span class='block'></span>
114
114
 
115
115
  </th>
@@ -124,7 +124,7 @@ Provides a common configuration for the main project executable:.
124
124
 
125
125
  <tr>
126
126
  <th class="signature">
127
- <span class='name'><a title="rake" href="#rake-class_method">rake</a></span><span class='args'>(project_symbol, options = )</span>
127
+ <span class='name'><a href="#rake-class_method" title="rake">rake</a></span><span class='args'>(project_symbol, options = )</span>
128
128
  <span class='block'>{|gem_spec| ... }</span>
129
129
 
130
130
  </th>
@@ -241,27 +241,6 @@ The eRuby template which serves as the documentation for the project.
241
241
  <pre class="lines">
242
242
 
243
243
 
244
- 889
245
- 890
246
- 891
247
- 892
248
- 893
249
- 894
250
- 895
251
- 896
252
- 897
253
- 898
254
- 899
255
- 900
256
- 901
257
- 902
258
- 903
259
- 904
260
- 905
261
- 906
262
- 907
263
- 908
264
- 909
265
244
  910
266
245
  911
267
246
  912
@@ -279,10 +258,31 @@ The eRuby template which serves as the documentation for the project.
279
258
  924
280
259
  925
281
260
  926
282
- 927</pre>
261
+ 927
262
+ 928
263
+ 929
264
+ 930
265
+ 931
266
+ 932
267
+ 933
268
+ 934
269
+ 935
270
+ 936
271
+ 937
272
+ 938
273
+ 939
274
+ 940
275
+ 941
276
+ 942
277
+ 943
278
+ 944
279
+ 945
280
+ 946
281
+ 947
282
+ 948</pre>
283
283
  </td>
284
284
  <td>
285
- <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 889</span>
285
+ <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 910</span>
286
286
 
287
287
  <span class='def def kw'>def</span> <span class='book identifier id'>book</span> <span class='project_symbol identifier id'>project_symbol</span><span class='comma token'>,</span> <span class='book_template identifier id'>book_template</span>
288
288
  <span class='project_module identifier id'>project_module</span> <span class='assign token'>=</span> <span class='fetch_project_module identifier id'>fetch_project_module</span><span class='lparen token'>(</span><span class='project_symbol identifier id'>project_symbol</span><span class='rparen token'>)</span>
@@ -361,12 +361,12 @@ project name fully in lowercase.
361
361
  <pre class="lines">
362
362
 
363
363
 
364
- 933
365
- 934
366
- 935</pre>
364
+ 954
365
+ 955
366
+ 956</pre>
367
367
  </td>
368
368
  <td>
369
- <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 933</span>
369
+ <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 954</span>
370
370
 
371
371
  <span class='def def kw'>def</span> <span class='calc_program_name identifier id'>calc_program_name</span> <span class='project_symbol identifier id'>project_symbol</span>
372
372
  <span class='camel_to_snake_case identifier id'>camel_to_snake_case</span><span class='lparen token'>(</span><span class='project_symbol identifier id'>project_symbol</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='downcase identifier id'>downcase</span>
@@ -408,13 +408,13 @@ Calculates the name of the project module from the given project name.
408
408
  <pre class="lines">
409
409
 
410
410
 
411
- 940
412
- 941
413
- 942
414
- 943</pre>
411
+ 961
412
+ 962
413
+ 963
414
+ 964</pre>
415
415
  </td>
416
416
  <td>
417
- <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 940</span>
417
+ <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 961</span>
418
418
 
419
419
  <span class='def def kw'>def</span> <span class='calc_project_symbol identifier id'>calc_project_symbol</span> <span class='project_name identifier id'>project_name</span>
420
420
  <span class='name identifier id'>name</span> <span class='assign token'>=</span> <span class='project_name identifier id'>project_name</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/\W+/</span><span class='comma token'>,</span> <span class='string val'>'_'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='squeeze identifier id'>squeeze</span><span class='lparen token'>(</span><span class='string val'>'_'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/^_|_$/</span><span class='comma token'>,</span> <span class='string val'>''</span><span class='rparen token'>)</span>
@@ -457,22 +457,22 @@ Transforms the given input from CamelCase to snake_case.
457
457
  <pre class="lines">
458
458
 
459
459
 
460
- 948
461
- 949
462
- 950
463
- 951
464
- 952
465
- 953
466
- 954
467
- 955
468
- 956
469
- 957
470
- 958
471
- 959
472
- 960</pre>
460
+ 969
461
+ 970
462
+ 971
463
+ 972
464
+ 973
465
+ 974
466
+ 975
467
+ 976
468
+ 977
469
+ 978
470
+ 979
471
+ 980
472
+ 981</pre>
473
473
  </td>
474
474
  <td>
475
- <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 948</span>
475
+ <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 969</span>
476
476
 
477
477
  <span class='def def kw'>def</span> <span class='camel_to_snake_case identifier id'>camel_to_snake_case</span> <span class='input identifier id'>input</span>
478
478
  <span class='input identifier id'>input</span> <span class='assign token'>=</span> <span class='input identifier id'>input</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='dup identifier id'>dup</span>
@@ -742,7 +742,24 @@ The newly configured project module.
742
742
  131
743
743
  132
744
744
  133
745
- 134</pre>
745
+ 134
746
+ 135
747
+ 136
748
+ 137
749
+ 138
750
+ 139
751
+ 140
752
+ 141
753
+ 142
754
+ 143
755
+ 144
756
+ 145
757
+ 146
758
+ 147
759
+ 148
760
+ 149
761
+ 150
762
+ 151</pre>
746
763
  </td>
747
764
  <td>
748
765
  <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 88</span>
@@ -788,6 +805,23 @@ The newly configured project module.
788
805
  <span class='comment val'># make configuration parameters available as constants</span>
789
806
  <span class='project_config identifier id'>project_config</span><span class='lbrack token'>[</span><span class='symbol val'>:inochi</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='project_config identifier id'>project_config</span>
790
807
 
808
+ <span class='class class kw'>class</span> <span class='lshft op'>&lt;&lt;</span> <span class='project_config identifier id'>project_config</span><span class='lbrack token'>[</span><span class='symbol val'>:version</span><span class='rbrack token'>]</span>
809
+ <span class='comment val'># Returns the major number in this version.</span>
810
+ <span class='def def kw'>def</span> <span class='major identifier id'>major</span>
811
+ <span class='to_s identifier id'>to_s</span><span class='lbrack token'>[</span><span class='regexp val'>/^\d+/</span><span class='rbrack token'>]</span>
812
+ <span class='end end kw'>end</span>
813
+
814
+ <span class='comment val'># Returns a string describing any version with the current major number.</span>
815
+ <span class='def def kw'>def</span> <span class='series identifier id'>series</span>
816
+ <span class='dstring node'>&quot;#{major}.x.x&quot;</span>
817
+ <span class='end end kw'>end</span>
818
+
819
+ <span class='comment val'># Returns a Gem::Requirement expression.</span>
820
+ <span class='def def kw'>def</span> <span class='requirement identifier id'>requirement</span>
821
+ <span class='dstring node'>&quot;~&gt; #{major}&quot;</span>
822
+ <span class='end end kw'>end</span>
823
+ <span class='end end kw'>end</span>
824
+
791
825
  <span class='project_config identifier id'>project_config</span><span class='dot token'>.</span><span class='each_pair identifier id'>each_pair</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='param identifier id'>param</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='bitor op'>|</span>
792
826
  <span class='project_module identifier id'>project_module</span><span class='dot token'>.</span><span class='const_set identifier id'>const_set</span> <span class='param identifier id'>param</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='upcase identifier id'>upcase</span><span class='comma token'>,</span> <span class='value identifier id'>value</span>
793
827
  <span class='end end kw'>end</span>
@@ -895,23 +929,6 @@ The result of Trollop::options().
895
929
  <pre class="lines">
896
930
 
897
931
 
898
- 164
899
- 165
900
- 166
901
- 167
902
- 168
903
- 169
904
- 170
905
- 171
906
- 172
907
- 173
908
- 174
909
- 175
910
- 176
911
- 177
912
- 178
913
- 179
914
- 180
915
932
  181
916
933
  182
917
934
  183
@@ -936,10 +953,27 @@ The result of Trollop::options().
936
953
  202
937
954
  203
938
955
  204
939
- 205</pre>
956
+ 205
957
+ 206
958
+ 207
959
+ 208
960
+ 209
961
+ 210
962
+ 211
963
+ 212
964
+ 213
965
+ 214
966
+ 215
967
+ 216
968
+ 217
969
+ 218
970
+ 219
971
+ 220
972
+ 221
973
+ 222</pre>
940
974
  </td>
941
975
  <td>
942
- <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 164</span>
976
+ <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 181</span>
943
977
 
944
978
  <span class='def def kw'>def</span> <span class='main identifier id'>main</span> <span class='project_symbol identifier id'>project_symbol</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='trollop_args identifier id'>trollop_args</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='trollop_config identifier id'>trollop_config</span>
945
979
  <span class='program_file identifier id'>program_file</span> <span class='assign token'>=</span> <span class='first_caller_file identifier id'>first_caller_file</span>
@@ -1177,23 +1211,6 @@ the gem specification
1177
1211
  <pre class="lines">
1178
1212
 
1179
1213
 
1180
- 285
1181
- 286
1182
- 287
1183
- 288
1184
- 289
1185
- 290
1186
- 291
1187
- 292
1188
- 293
1189
- 294
1190
- 295
1191
- 296
1192
- 297
1193
- 298
1194
- 299
1195
- 300
1196
- 301
1197
1214
  302
1198
1215
  303
1199
1216
  304
@@ -1746,10 +1763,31 @@ the gem specification
1746
1763
  851
1747
1764
  852
1748
1765
  853
1749
- 854</pre>
1766
+ 854
1767
+ 855
1768
+ 856
1769
+ 857
1770
+ 858
1771
+ 859
1772
+ 860
1773
+ 861
1774
+ 862
1775
+ 863
1776
+ 864
1777
+ 865
1778
+ 866
1779
+ 867
1780
+ 868
1781
+ 869
1782
+ 870
1783
+ 871
1784
+ 872
1785
+ 873
1786
+ 874
1787
+ 875</pre>
1750
1788
  </td>
1751
1789
  <td>
1752
- <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 285</span>
1790
+ <pre class="code"><span class="info file"># File 'lib/inochi/inochi.rb', line 302</span>
1753
1791
 
1754
1792
  <span class='def def kw'>def</span> <span class='rake identifier id'>rake</span> <span class='project_symbol identifier id'>project_symbol</span><span class='comma token'>,</span> <span class='options identifier id'>options</span> <span class='assign token'>=</span> <span class='semicolon token'>;</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='gem_config identifier id'>gem_config</span>
1755
1793
  <span class='program_file identifier id'>program_file</span> <span class='assign token'>=</span> <span class='first_caller_file identifier id'>first_caller_file</span>
@@ -1797,7 +1835,11 @@ the gem specification
1797
1835
  <span class='doc_man_doc identifier id'>doc_man_doc</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span>
1798
1836
  <span class='task identifier id'>task</span> <span class='symbol val'>:doc_man_doc</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='doc_man_src identifier id'>doc_man_src</span> <span class='do do kw'>do</span>
1799
1837
  <span class='unless unless kw'>unless</span> <span class='doc_man_doc identifier id'>doc_man_doc</span>
1800
- <span class='require identifier id'>require</span> <span class='string val'>'erbook'</span> <span class='unless unless_mod kw'>unless</span> <span class='defined? defined kw'>defined?</span> <span class='ERBook constant id'>ERBook</span>
1838
+ <span class='unless unless kw'>unless</span> <span class='project_symbol identifier id'>project_symbol</span> <span class='eq op'>==</span> <span class='colon op'>:</span><span class='ERBook constant id'>ERBook</span>
1839
+ <span class='gem identifier id'>gem</span> <span class='string val'>'erbook'</span><span class='comma token'>,</span> <span class='string val'>'~&gt; 6'</span>
1840
+ <span class='require identifier id'>require</span> <span class='string val'>'erbook'</span>
1841
+ <span class='end end kw'>end</span>
1842
+
1801
1843
  <span class='doc_man_txt identifier id'>doc_man_txt</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='read identifier id'>read</span><span class='lparen token'>(</span><span class='doc_man_src identifier id'>doc_man_src</span><span class='rparen token'>)</span>
1802
1844
  <span class='doc_man_doc identifier id'>doc_man_doc</span> <span class='assign token'>=</span> <span class='ERBook constant id'>ERBook</span><span class='colon2 op'>::</span><span class='Document constant id'>Document</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:xhtml</span><span class='comma token'>,</span> <span class='doc_man_txt identifier id'>doc_man_txt</span><span class='comma token'>,</span> <span class='doc_man_src identifier id'>doc_man_src</span><span class='comma token'>,</span> <span class='symbol val'>:unindent</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='true true kw'>true</span><span class='rparen token'>)</span>
1803
1845
  <span class='end end kw'>end</span>
@@ -2075,7 +2117,7 @@ the gem specification
2075
2117
  <span class='gem identifier id'>gem</span><span class='dot token'>.</span><span class='has_rdoc identifier id'>has_rdoc</span> <span class='assign token'>=</span> <span class='true true kw'>true</span>
2076
2118
 
2077
2119
  <span class='unless unless kw'>unless</span> <span class='project_module identifier id'>project_module</span> <span class='eq op'>==</span> <span class='Inochi constant id'>Inochi</span>
2078
- <span class='gem identifier id'>gem</span><span class='dot token'>.</span><span class='add_dependency identifier id'>add_dependency</span> <span class='string val'>'inochi'</span><span class='comma token'>,</span> <span class='dstring node'>&quot;~&gt; #{Inochi::VERSION[/^\d+/]}&quot;</span>
2120
+ <span class='gem identifier id'>gem</span><span class='dot token'>.</span><span class='add_dependency identifier id'>add_dependency</span> <span class='string val'>'inochi'</span><span class='comma token'>,</span> <span class='Inochi constant id'>Inochi</span><span class='colon2 op'>::</span><span class='VERSION constant id'>VERSION</span><span class='dot token'>.</span><span class='requirement identifier id'>requirement</span>
2079
2121
  <span class='end end kw'>end</span>
2080
2122
 
2081
2123
  <span class='project_module identifier id'>project_module</span><span class='colon2 op'>::</span><span class='REQUIRE constant id'>REQUIRE</span><span class='dot token'>.</span><span class='each_pair identifier id'>each_pair</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='gem_name identifier id'>gem_name</span><span class='comma token'>,</span> <span class='version_reqs identifier id'>version_reqs</span><span class='bitor op'>|</span>
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
  <li nowrap>
19
- <a title="book" href="Inochi.html#book-class_method">book</a>
19
+ <a href="Inochi.html#book-class_method" title="book">book</a>
20
20
 
21
21
  <em>(module Inochi)</em>
22
22
 
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
  <li nowrap>
27
- <a title="calc_program_name" href="Inochi.html#calc_program_name-class_method">calc_program_name</a>
27
+ <a href="Inochi.html#calc_program_name-class_method" title="calc_program_name">calc_program_name</a>
28
28
 
29
29
  <em>(module Inochi)</em>
30
30
 
@@ -32,7 +32,7 @@
32
32
 
33
33
 
34
34
  <li nowrap>
35
- <a title="calc_project_symbol" href="Inochi.html#calc_project_symbol-class_method">calc_project_symbol</a>
35
+ <a href="Inochi.html#calc_project_symbol-class_method" title="calc_project_symbol">calc_project_symbol</a>
36
36
 
37
37
  <em>(module Inochi)</em>
38
38
 
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
  <li nowrap>
43
- <a title="camel_to_snake_case" href="Inochi.html#camel_to_snake_case-class_method">camel_to_snake_case</a>
43
+ <a href="Inochi.html#camel_to_snake_case-class_method" title="camel_to_snake_case">camel_to_snake_case</a>
44
44
 
45
45
  <em>(module Inochi)</em>
46
46
 
@@ -48,7 +48,7 @@
48
48
 
49
49
 
50
50
  <li nowrap>
51
- <a title="fetch_project_module" href="Inochi.html#fetch_project_module-class_method">fetch_project_module</a>
51
+ <a href="Inochi.html#fetch_project_module-class_method" title="fetch_project_module">fetch_project_module</a>
52
52
 
53
53
  <em>(module Inochi)</em>
54
54
 
@@ -56,7 +56,7 @@
56
56
 
57
57
 
58
58
  <li nowrap>
59
- <a title="first_caller_file" href="Inochi.html#first_caller_file-class_method">first_caller_file</a>
59
+ <a href="Inochi.html#first_caller_file-class_method" title="first_caller_file">first_caller_file</a>
60
60
 
61
61
  <em>(module Inochi)</em>
62
62
 
@@ -64,7 +64,7 @@
64
64
 
65
65
 
66
66
  <li nowrap>
67
- <a title="init" href="Inochi.html#init-class_method">init</a>
67
+ <a href="Inochi.html#init-class_method" title="init">init</a>
68
68
 
69
69
  <em>(module Inochi)</em>
70
70
 
@@ -72,7 +72,7 @@
72
72
 
73
73
 
74
74
  <li nowrap>
75
- <a title="main" href="Inochi.html#main-class_method">main</a>
75
+ <a href="Inochi.html#main-class_method" title="main">main</a>
76
76
 
77
77
  <em>(module Inochi)</em>
78
78
 
@@ -80,7 +80,7 @@
80
80
 
81
81
 
82
82
  <li nowrap>
83
- <a title="rake" href="Inochi.html#rake-class_method">rake</a>
83
+ <a href="Inochi.html#rake-class_method" title="rake">rake</a>
84
84
 
85
85
  <em>(module Inochi)</em>
86
86
 
@@ -14,7 +14,7 @@
14
14
  <h1>All Modules / Classes</h1>
15
15
  <ul>
16
16
 
17
- <li><a title="Inochi" href="Inochi.html">Inochi</a> <em>(module)</em></li>
17
+ <li><a href="Inochi.html" title="Inochi">Inochi</a> <em>(module)</em></li>
18
18
 
19
19
  </ul>
20
20
  </div>
data/doc/history.erb CHANGED
@@ -1,5 +1,21 @@
1
1
  <% chapter "History", "history" do %>
2
2
  <% project_history do %>
3
+ <% section "Version 0.1.0 (2009-01-13)" do %>
4
+ This release reattempts to fix the [circular dependency problem](http://www.ruby-forum.com/topic/176173#771281) that occurred when installing either **<%= $project %>** or **<%= ERBook::PROJECT %>**.
5
+
6
+ <% paragraph "New features" do %>
7
+ * `Inochi.init()` now adds `#major()`, `#series()`, and `#requirement()` instance methods to a project's `VERSION` constant.
8
+ <% end %>
9
+
10
+ <% paragraph "Bug fixes" do %>
11
+ * Solved circular dependency problem by making inochi gem not dependent on erbook gem. However, **<%= ERBook::PROJECT %>** is still required during runtime and is supplied on the `gem install` command for **<%= $project %>**.
12
+
13
+ <%= xref "Installation" %> has been updated accordingly.
14
+
15
+ * Add forgotten Rake dependency for **<%= $project %>** gem.
16
+ <% end %>
17
+ <% end %>
18
+
3
19
  <% section "Version 0.0.1 (2009-01-13)" do %>
4
20
  This release fixes some show-stopper bugs.
5
21
 
@@ -10,7 +26,7 @@
10
26
  <% paragraph "Bug fixes" do %>
11
27
  * Florian Gilcher reported that the name of the project library was [being determined incorrectly](http://www.ruby-forum.com/topic/176173#771351).
12
28
 
13
- * Florian Gilcher reported that there was a [circular dependency problem](http://www.ruby-forum.com/topic/176173#771281) problem when installing the **<%= $project %>** gem.
29
+ * Florian Gilcher reported that there was a [circular dependency problem](http://www.ruby-forum.com/topic/176173#771281) when installing the **<%= $project %>** gem.
14
30
 
15
31
  The solution is to specify the <tt>--force</tt> option when installing the gem. <%= xref "Installation" %> has been updated accordingly.
16
32
 
data/doc/index.xhtml CHANGED
@@ -12,9 +12,9 @@
12
12
  <html xmlns="http://www.w3.org/1999/xhtml">
13
13
  <head>
14
14
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
15
- <meta name="generator" content="ERBook 6.0.0"/>
15
+ <meta name="generator" content="ERBook 6.0.1"/>
16
16
 
17
- <title>Inochi 0.0.1</title>
17
+ <title>Inochi 0.1.0</title>
18
18
 
19
19
  <meta name="author" content="Suraj N. Kurapati"/>
20
20
 
@@ -642,7 +642,7 @@
642
642
 
643
643
  <div class="logo"><img src='inochi.png' alt='project logo' /></div>
644
644
 
645
- <h1 class="title">Inochi 0.0.1</h1>
645
+ <h1 class="title">Inochi 0.1.0</h1>
646
646
 
647
647
  <h2 class="subtitle">Gives life to RubyGems-based software</h2>
648
648
 
@@ -663,7 +663,7 @@
663
663
  <a name="Contents"/><div class="nav" id="Contents"><a title="Reverse jump to listing" href="#rev:Contents">&equiv;</a>&#x25B3;&#x25BD;<a title="Jump to this segment" href="#Contents">&#x25CE;</a></div>
664
664
  <h1 class="title">Contents</h1>
665
665
  <ul>
666
- <li>1&nbsp;&nbsp;<a id="rev:Introduction" href="#Introduction">Introduction</a><ul><li><a id="rev:Etymology" href="#Etymology">Etymology</a></li><li>1.1&nbsp;&nbsp;<a id="rev:Logistics" href="#Logistics">Logistics</a><ul><li><a id="rev:Version-numbers" href="#Version-numbers">Version numbers</a></li></ul></li><li>1.2&nbsp;&nbsp;<a id="rev:License" href="#License">License</a></li><li>1.3&nbsp;&nbsp;<a id="rev:Credits" href="#Credits">Credits</a></li></ul></li><li>2&nbsp;&nbsp;<a id="rev:Setup" href="#Setup">Setup</a><ul><li>2.1&nbsp;&nbsp;<a id="rev:Requirements" href="#Requirements">Requirements</a></li><li>2.2&nbsp;&nbsp;<a id="rev:Installation" href="#Installation">Installation</a></li><li>2.3&nbsp;&nbsp;<a id="rev:Manifest" href="#Manifest">Manifest</a></li></ul></li><li>3&nbsp;&nbsp;<a id="rev:Usage" href="#Usage">Usage</a><ul><li>3.1&nbsp;&nbsp;<a id="rev:Command-line-interface" href="#Command-line-interface">Command-line interface</a></li><li>3.2&nbsp;&nbsp;<a id="rev:Ruby-library-interface" href="#Ruby-library-interface">Ruby library interface</a></li><li>3.3&nbsp;&nbsp;<a id="rev:Tutorial" href="#Tutorial">Tutorial</a><ul><li>3.3.1&nbsp;&nbsp;<a id="rev:Have-a-brilliant-idea" href="#Have-a-brilliant-idea">Have a brilliant idea</a></li><li>3.3.2&nbsp;&nbsp;<a id="rev:Generate-your-project" href="#Generate-your-project">Generate your project</a></li><li>3.3.3&nbsp;&nbsp;<a id="rev:Configure-your-project" href="#Configure-your-project">Configure your project</a><ul><li>3.3.3.1&nbsp;&nbsp;<a id="rev:Project-information" href="#Project-information">Project information</a></li><li>3.3.3.2&nbsp;&nbsp;<a id="rev:Project-executable" href="#Project-executable">Project executable</a></li><li>3.3.3.3&nbsp;&nbsp;<a id="rev:Rake-tasks" href="#Rake-tasks">Rake tasks</a></li><li>3.3.3.4&nbsp;&nbsp;<a id="rev:User-manual" href="#User-manual">User manual</a><ul><li><a id="rev:doc-index.erb" href="#doc-index.erb"><tt>doc/index.erb</tt></a></li><li><a id="rev:doc-intro.erb" href="#doc-intro.erb"><tt>doc/intro.erb</tt></a></li><li><a id="rev:doc-setup.erb" href="#doc-setup.erb"><tt>doc/setup.erb</tt></a></li><li><a id="rev:doc-theory.erb" href="#doc-theory.erb"><tt>doc/theory.erb</tt></a></li><li><a id="rev:doc-usage.erb" href="#doc-usage.erb"><tt>doc/usage.erb</tt></a></li><li><a id="rev:doc-history.erb" href="#doc-history.erb"><tt>doc/history.erb</tt></a></li></ul></li></ul></li><li>3.3.4&nbsp;&nbsp;<a id="rev:Implement-your-project" href="#Implement-your-project">Implement your project</a><ul><li><a id="rev:Goodbye-LOAD_PATH-hello-require" href="#Goodbye-LOAD_PATH-hello-require">Goodbye <code class="code"><span style="color:#d70;font-weight:bold">$LOAD_PATH</span></code>, hello <code class="code">require()</code></a></li></ul></li><li>3.3.5&nbsp;&nbsp;<a id="rev:Test-your-project" href="#Test-your-project">Test your project</a></li><li>3.3.6&nbsp;&nbsp;<a id="rev:Publish-your-project" href="#Publish-your-project">Publish your project</a><ul><li>3.3.6.1&nbsp;&nbsp;<a id="rev:Build-a-RubyGem" href="#Build-a-RubyGem">Build a RubyGem</a></li><li>3.3.6.2&nbsp;&nbsp;<a id="rev:Publish-a-RubyGem" href="#Publish-a-RubyGem">Publish a RubyGem</a></li><li>3.3.6.3&nbsp;&nbsp;<a id="rev:Announce-a-release" href="#Announce-a-release">Announce a release</a><ul><li><a id="rev:Login-information" href="#Login-information">Login information</a></li><li>3.3.6.3.1&nbsp;&nbsp;<a id="rev:Manual-release-announcement" href="#Manual-release-announcement">Manual release announcement</a></li></ul></li><li>3.3.6.4&nbsp;&nbsp;<a id="rev:Publish-the-documentation" href="#Publish-the-documentation">Publish the documentation</a></li></ul></li></ul></li></ul></li><li>4&nbsp;&nbsp;<a id="rev:history" href="#history">History</a><ul><li>4.1&nbsp;&nbsp;<a id="rev:Version-0.0.1-2009-01-13" href="#Version-0.0.1-2009-01-13">Version 0.0.1 (2009-01-13)</a><ul><li><a id="rev:Contributor-kudos" href="#Contributor-kudos">Contributor kudos</a></li><li><a id="rev:Bug-fixes" href="#Bug-fixes">Bug fixes</a></li><li><a id="rev:Housekeeping" href="#Housekeeping">Housekeeping</a></li></ul></li><li>4.1&nbsp;&nbsp;<a id="rev:Version-0.0.0-2009-01-13" href="#Version-0.0.0-2009-01-13">Version 0.0.0 (2009-01-13)</a></li></ul></li>
666
+ <li>1&nbsp;&nbsp;<a id="rev:Introduction" href="#Introduction">Introduction</a><ul><li><a id="rev:Etymology" href="#Etymology">Etymology</a></li><li>1.1&nbsp;&nbsp;<a id="rev:Logistics" href="#Logistics">Logistics</a><ul><li><a id="rev:Version-numbers" href="#Version-numbers">Version numbers</a></li></ul></li><li>1.2&nbsp;&nbsp;<a id="rev:License" href="#License">License</a></li><li>1.3&nbsp;&nbsp;<a id="rev:Credits" href="#Credits">Credits</a></li></ul></li><li>2&nbsp;&nbsp;<a id="rev:Setup" href="#Setup">Setup</a><ul><li>2.1&nbsp;&nbsp;<a id="rev:Requirements" href="#Requirements">Requirements</a></li><li>2.2&nbsp;&nbsp;<a id="rev:Installation" href="#Installation">Installation</a></li><li>2.3&nbsp;&nbsp;<a id="rev:Manifest" href="#Manifest">Manifest</a></li></ul></li><li>3&nbsp;&nbsp;<a id="rev:Usage" href="#Usage">Usage</a><ul><li>3.1&nbsp;&nbsp;<a id="rev:Command-line-interface" href="#Command-line-interface">Command-line interface</a></li><li>3.2&nbsp;&nbsp;<a id="rev:Ruby-library-interface" href="#Ruby-library-interface">Ruby library interface</a></li><li>3.3&nbsp;&nbsp;<a id="rev:Tutorial" href="#Tutorial">Tutorial</a><ul><li>3.3.1&nbsp;&nbsp;<a id="rev:Have-a-brilliant-idea" href="#Have-a-brilliant-idea">Have a brilliant idea</a></li><li>3.3.2&nbsp;&nbsp;<a id="rev:Generate-your-project" href="#Generate-your-project">Generate your project</a></li><li>3.3.3&nbsp;&nbsp;<a id="rev:Configure-your-project" href="#Configure-your-project">Configure your project</a><ul><li>3.3.3.1&nbsp;&nbsp;<a id="rev:Project-information" href="#Project-information">Project information</a></li><li>3.3.3.2&nbsp;&nbsp;<a id="rev:Project-executable" href="#Project-executable">Project executable</a></li><li>3.3.3.3&nbsp;&nbsp;<a id="rev:Rake-tasks" href="#Rake-tasks">Rake tasks</a></li><li>3.3.3.4&nbsp;&nbsp;<a id="rev:User-manual" href="#User-manual">User manual</a><ul><li><a id="rev:doc-index.erb" href="#doc-index.erb"><tt>doc/index.erb</tt></a></li><li><a id="rev:doc-intro.erb" href="#doc-intro.erb"><tt>doc/intro.erb</tt></a></li><li><a id="rev:doc-setup.erb" href="#doc-setup.erb"><tt>doc/setup.erb</tt></a></li><li><a id="rev:doc-theory.erb" href="#doc-theory.erb"><tt>doc/theory.erb</tt></a></li><li><a id="rev:doc-usage.erb" href="#doc-usage.erb"><tt>doc/usage.erb</tt></a></li><li><a id="rev:doc-history.erb" href="#doc-history.erb"><tt>doc/history.erb</tt></a></li></ul></li></ul></li><li>3.3.4&nbsp;&nbsp;<a id="rev:Implement-your-project" href="#Implement-your-project">Implement your project</a><ul><li><a id="rev:Goodbye-LOAD_PATH-hello-require" href="#Goodbye-LOAD_PATH-hello-require">Goodbye <code class="code"><span style="color:#d70;font-weight:bold">$LOAD_PATH</span></code>, hello <code class="code">require()</code></a></li></ul></li><li>3.3.5&nbsp;&nbsp;<a id="rev:Test-your-project" href="#Test-your-project">Test your project</a></li><li>3.3.6&nbsp;&nbsp;<a id="rev:Publish-your-project" href="#Publish-your-project">Publish your project</a><ul><li>3.3.6.1&nbsp;&nbsp;<a id="rev:Build-a-RubyGem" href="#Build-a-RubyGem">Build a RubyGem</a></li><li>3.3.6.2&nbsp;&nbsp;<a id="rev:Publish-a-RubyGem" href="#Publish-a-RubyGem">Publish a RubyGem</a></li><li>3.3.6.3&nbsp;&nbsp;<a id="rev:Announce-a-release" href="#Announce-a-release">Announce a release</a><ul><li><a id="rev:Login-information" href="#Login-information">Login information</a></li><li>3.3.6.3.1&nbsp;&nbsp;<a id="rev:Manual-release-announcement" href="#Manual-release-announcement">Manual release announcement</a></li></ul></li><li>3.3.6.4&nbsp;&nbsp;<a id="rev:Publish-the-documentation" href="#Publish-the-documentation">Publish the documentation</a></li></ul></li></ul></li></ul></li><li>4&nbsp;&nbsp;<a id="rev:history" href="#history">History</a><ul><li>4.1&nbsp;&nbsp;<a id="rev:Version-0.1.0-2009-01-13" href="#Version-0.1.0-2009-01-13">Version 0.1.0 (2009-01-13)</a><ul><li><a id="rev:New-features" href="#New-features">New features</a></li><li><a id="rev:Bug-fixes" href="#Bug-fixes">Bug fixes</a></li></ul></li><li>4.1&nbsp;&nbsp;<a id="rev:Version-0.0.1-2009-01-13" href="#Version-0.0.1-2009-01-13">Version 0.0.1 (2009-01-13)</a><ul><li><a id="rev:Contributor-kudos" href="#Contributor-kudos">Contributor kudos</a></li><li><a id="rev:Bug-fixes-608680498" href="#Bug-fixes-608680498">Bug fixes</a></li><li><a id="rev:Housekeeping" href="#Housekeeping">Housekeeping</a></li></ul></li><li>4.1&nbsp;&nbsp;<a id="rev:Version-0.0.0-2009-01-13" href="#Version-0.0.0-2009-01-13">Version 0.0.0 (2009-01-13)</a></li></ul></li>
667
667
 
668
668
  </ul>
669
669
  </div>
@@ -818,6 +818,8 @@
818
818
  <p>The &#8220;inochi.png&#8221; image and its &#8220;inochi.svg&#8221; source utilize the <a href='http://openclipart.org/media/files/Peileppe/8978'>&#8220;3 flowers&#8221;</a> graphic, which was created and released into the public domain by <a href='http://openclipart.org/media/people/Peileppe'>Peileppe Production</a> on June 25, 2008.</p></div>
819
819
  </div></p></div>
820
820
  </div>
821
+
822
+
821
823
  <div class="chapter">
822
824
  <a name="Setup"/><div class="nav" id="Setup"><a title="Reverse jump to listing" href="#rev:Setup">&equiv;</a><a title="Jump to previous segment" href="#Credits">&#x25B3;</a><a title="Jump to next segment" href="#Requirements">&#x25BD;</a><a title="Jump to this segment" href="#Setup">&#x25CE;</a></div>
823
825
  <h1 class="title">
@@ -832,7 +834,8 @@
832
834
  </h2>
833
835
  <div class="content"><p>Your system needs the following software to run <strong>Inochi</strong>.</p>
834
836
  <table border="1"><thead><tr><th>Software</th><th>Description</th><th>Notes</th></tr></thead><tbody><tr><td style='text-align: left;'><a href='http://ruby-lang.org'>Ruby</a></td><td style='text-align: left;'>Ruby language interpreter</td><td style='text-align: left;'>Version 1.8.6 or 1.8.7 is required.</td>
835
- </tr><tr><td style='text-align: left;'><a href='http://rubygems.org'>RubyGems</a></td><td style='text-align: left;'>Ruby packaging system</td><td style='text-align: left;'>Version 1.0.0 or newer is required.</td>
837
+ </tr><tr><td style='text-align: left;'><a href='http://rubygems.org'>RubyGems</a></td><td style='text-align: left;'>Ruby packaging system</td><td style='text-align: left;'>Version 1.x.x is required.</td>
838
+ </tr><tr><td style='text-align: left;'><a href='http://snk.tuxfamily.org/lib/erbook/'>ERBook</a></td><td style='text-align: left;'>Extensible document processor based on eRuby</td><td style='text-align: left;'>Version 6.x.x is required.</td>
836
839
  </tr><tr><td style='text-align: left;'><a href='http://lynx.isc.org'>Lynx</a></td><td style='text-align: left;'>Text-mode web browser</td><td style='text-align: left;'>Version 2.8.6 or newer is required to convert HTML into plain text.</td>
837
840
  </tr></tbody></table></div>
838
841
  </div> <div class="section">
@@ -842,7 +845,7 @@
842
845
  </h2>
843
846
  <div class="content"><p>You can install <strong>Inochi</strong> by running this command:</p>
844
847
 
845
- <pre>gem install inochi --force</pre>
848
+ <pre>gem install erbook inochi</pre>
846
849
 
847
850
  <p>To check whether the installation was sucessful, run this command:</p>
848
851
 
@@ -851,7 +854,7 @@
851
854
  <p>If the installation was successful, you will see output like this:</p>
852
855
 
853
856
  <p><pre>project: Inochi
854
- version: 0.0.1
857
+ version: 0.1.0
855
858
  release: 2009-01-19
856
859
  website: http://snk.tuxfamily.org/lib/inochi
857
860
  install: /home/sun/src/inochi</pre></p>
@@ -1095,7 +1098,7 @@ kdiff3 --auto &quot;$old_file&quot; &quot;$new_file&quot; --output &quot;$output
1095
1098
  <p>View the available Rake tasks:</p>
1096
1099
 
1097
1100
  <p><pre># rake -T
1098
- (in /tmp/Inochi20090119-24865-uajivf-0/word_count)
1101
+ (in /tmp/Inochi20090119-28736-efadjc-0/word_count)
1099
1102
  rake ann # Build all release announcements.
1100
1103
  rake ann:feed # Build RSS announcement: doc/ann.xml
1101
1104
  rake ann:html # Build HTML announcement: ANN.html
@@ -1119,7 +1122,7 @@ rake pub:pak # Publish release packages to RubyForge.
1119
1122
  <p>Try the main project executable:</p>
1120
1123
 
1121
1124
  <p><pre># ruby bin/word_count
1122
- Command-line options: {:version=&gt;false, :help=&gt;false, :manual=&gt;false}
1125
+ Command-line options: {:help=&gt;false, :manual=&gt;false, :version=&gt;false}
1123
1126
  Command-line arguments: []
1124
1127
  </pre></p>
1125
1128
 
@@ -1146,7 +1149,7 @@ project: WordCount
1146
1149
  version: 0.0.0
1147
1150
  release: 2009-01-19
1148
1151
  website: http://word_count.rubyforge.org
1149
- install: /tmp/Inochi20090119-24865-uajivf-0/word_count
1152
+ install: /tmp/Inochi20090119-28736-efadjc-0/word_count
1150
1153
  </pre></p>
1151
1154
 
1152
1155
  <p>See the user manual:</p>
@@ -1603,8 +1606,8 @@ puts <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">
1603
1606
  <div class="content"><p>Build a RubyGem by running:</p>
1604
1607
 
1605
1608
  <p><pre># rake pak
1606
- (in /tmp/Inochi20090119-24865-uajivf-0/word_count)
1607
- (in /tmp/Inochi20090119-24865-uajivf-0/word_count)
1609
+ (in /tmp/Inochi20090119-28736-efadjc-0/word_count)
1610
+ (in /tmp/Inochi20090119-28736-efadjc-0/word_count)
1608
1611
  Successfully built RubyGem
1609
1612
  Name: word_count
1610
1613
  Version: 0.0.0
@@ -1744,7 +1747,7 @@ puts <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">
1744
1747
  <div class="content"><p>Build release announcements by running:</p>
1745
1748
 
1746
1749
  <p><pre># rake ann
1747
- (in /tmp/Inochi20090119-24865-uajivf-0/word_count)
1750
+ (in /tmp/Inochi20090119-28736-efadjc-0/word_count)
1748
1751
  </pre></p>
1749
1752
 
1750
1753
  <p>This produces the following files in your project directory:</p>
@@ -1773,27 +1776,55 @@ puts <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">
1773
1776
  </div></p></div>
1774
1777
  </div></p></div>
1775
1778
  </div><div class="chapter">
1776
- <a name="history"/><div class="nav" id="history"><a title="Reverse jump to listing" href="#rev:history">&equiv;</a><a title="Jump to previous segment" href="#Publish-the-documentation">&#x25B3;</a><a title="Jump to next segment" href="#Version-0.0.1-2009-01-13">&#x25BD;</a><a title="Jump to this segment" href="#history">&#x25CE;</a></div>
1779
+ <a name="history"/><div class="nav" id="history"><a title="Reverse jump to listing" href="#rev:history">&equiv;</a><a title="Jump to previous segment" href="#Publish-the-documentation">&#x25B3;</a><a title="Jump to next segment" href="#Version-0.1.0-2009-01-13">&#x25BD;</a><a title="Jump to this segment" href="#history">&#x25CE;</a></div>
1777
1780
  <h1 class="title">
1778
1781
  Chapter&nbsp;4
1779
1782
  <br/>
1780
1783
  <big>History</big>
1781
1784
  </h1>
1782
1785
  <div class="content"><p><p><div class="section">
1783
- <a name="Version-0.0.1-2009-01-13"/><div class="nav" id="Version-0.0.1-2009-01-13"><a title="Reverse jump to listing" href="#rev:Version-0.0.1-2009-01-13">&equiv;</a><a title="Jump to previous segment" href="#history">&#x25B3;</a><a title="Jump to next segment" href="#Contributor-kudos">&#x25BD;</a><a title="Jump to this segment" href="#Version-0.0.1-2009-01-13">&#x25CE;</a></div>
1786
+ <a name="Version-0.1.0-2009-01-13"/><div class="nav" id="Version-0.1.0-2009-01-13"><a title="Reverse jump to listing" href="#rev:Version-0.1.0-2009-01-13">&equiv;</a><a title="Jump to previous segment" href="#history">&#x25B3;</a><a title="Jump to next segment" href="#New-features">&#x25BD;</a><a title="Jump to this segment" href="#Version-0.1.0-2009-01-13">&#x25CE;</a></div>
1787
+ <h2 class="title">
1788
+ 4.1&nbsp;&nbsp;Version 0.1.0 (2009-01-13)
1789
+ </h2>
1790
+ <div class="content"><p>This release reattempts to fix the <a href='http://www.ruby-forum.com/topic/176173#771281'>circular dependency problem</a> that occurred when installing either <strong>Inochi</strong> or <strong>ERBook</strong>.</p>
1791
+
1792
+ <p><div class="paragraph">
1793
+ <a name="New-features"/><div class="nav" id="New-features"><a title="Reverse jump to listing" href="#rev:New-features">&equiv;</a><a title="Jump to previous segment" href="#Version-0.1.0-2009-01-13">&#x25B3;</a><a title="Jump to next segment" href="#Bug-fixes">&#x25BD;</a><a title="Jump to this segment" href="#New-features">&#x25CE;</a></div>
1794
+ <p class="title">New features</p>
1795
+ <div class="content"><ul>
1796
+ <li><code class="code"><span style="color:#036;font-weight:bold">Inochi</span>.init()</code> now adds <code class="code"><span style="color:#666">#major()</span></code>, <code class="code"><span style="color:#666">#series()</span></code>, and <code class="code"><span style="color:#666">#requirement()</span></code> instance methods to a project&#8217;s <code class="code"><span style="color:#036;font-weight:bold">VERSION</span></code> constant.</li>
1797
+ </ul></div>
1798
+ </div> <div class="paragraph">
1799
+ <a name="Bug-fixes"/><div class="nav" id="Bug-fixes"><a title="Reverse jump to listing" href="#rev:Bug-fixes">&equiv;</a><a title="Jump to previous segment" href="#New-features">&#x25B3;</a><a title="Jump to next segment" href="#Version-0.0.1-2009-01-13">&#x25BD;</a><a title="Jump to this segment" href="#Bug-fixes">&#x25CE;</a></div>
1800
+ <p class="title">Bug fixes</p>
1801
+ <div class="content"><ul>
1802
+ <li>
1803
+ <p>Solved circular dependency problem by making inochi gem not dependent on erbook gem. However, <strong>ERBook</strong> is still required during runtime and is supplied on the <code class="code">gem install</code> command for <strong>Inochi</strong>.</p>
1804
+
1805
+ <p><a class="xref" href="#Installation">Section 2.2. Installation</a> has been updated accordingly.</p>
1806
+ </li>
1807
+
1808
+ <li>
1809
+ <p>Add forgotten Rake dependency for <strong>Inochi</strong> gem.</p>
1810
+ </li>
1811
+ </ul></div>
1812
+ </div></p></div>
1813
+ </div> <div class="section">
1814
+ <a name="Version-0.0.1-2009-01-13"/><div class="nav" id="Version-0.0.1-2009-01-13"><a title="Reverse jump to listing" href="#rev:Version-0.0.1-2009-01-13">&equiv;</a><a title="Jump to previous segment" href="#Bug-fixes">&#x25B3;</a><a title="Jump to next segment" href="#Contributor-kudos">&#x25BD;</a><a title="Jump to this segment" href="#Version-0.0.1-2009-01-13">&#x25CE;</a></div>
1784
1815
  <h2 class="title">
1785
1816
  4.1&nbsp;&nbsp;Version 0.0.1 (2009-01-13)
1786
1817
  </h2>
1787
1818
  <div class="content"><p>This release fixes some show-stopper bugs.</p>
1788
1819
 
1789
1820
  <p><div class="paragraph">
1790
- <a name="Contributor-kudos"/><div class="nav" id="Contributor-kudos"><a title="Reverse jump to listing" href="#rev:Contributor-kudos">&equiv;</a><a title="Jump to previous segment" href="#Version-0.0.1-2009-01-13">&#x25B3;</a><a title="Jump to next segment" href="#Bug-fixes">&#x25BD;</a><a title="Jump to this segment" href="#Contributor-kudos">&#x25CE;</a></div>
1821
+ <a name="Contributor-kudos"/><div class="nav" id="Contributor-kudos"><a title="Reverse jump to listing" href="#rev:Contributor-kudos">&equiv;</a><a title="Jump to previous segment" href="#Version-0.0.1-2009-01-13">&#x25B3;</a><a title="Jump to next segment" href="#Bug-fixes-608680498">&#x25BD;</a><a title="Jump to this segment" href="#Contributor-kudos">&#x25CE;</a></div>
1791
1822
  <p class="title">Contributor kudos</p>
1792
1823
  <div class="content"><ul>
1793
1824
  <li>Florian Gilcher tried the first release of <strong>Inochi</strong> and reported bugs.</li>
1794
1825
  </ul></div>
1795
1826
  </div> <div class="paragraph">
1796
- <a name="Bug-fixes"/><div class="nav" id="Bug-fixes"><a title="Reverse jump to listing" href="#rev:Bug-fixes">&equiv;</a><a title="Jump to previous segment" href="#Contributor-kudos">&#x25B3;</a><a title="Jump to next segment" href="#Housekeeping">&#x25BD;</a><a title="Jump to this segment" href="#Bug-fixes">&#x25CE;</a></div>
1827
+ <a name="Bug-fixes-608680498"/><div class="nav" id="Bug-fixes-608680498"><a title="Reverse jump to listing" href="#rev:Bug-fixes-608680498">&equiv;</a><a title="Jump to previous segment" href="#Contributor-kudos">&#x25B3;</a><a title="Jump to next segment" href="#Housekeeping">&#x25BD;</a><a title="Jump to this segment" href="#Bug-fixes-608680498">&#x25CE;</a></div>
1797
1828
  <p class="title">Bug fixes</p>
1798
1829
  <div class="content"><ul>
1799
1830
  <li>
@@ -1801,7 +1832,7 @@ puts <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">
1801
1832
  </li>
1802
1833
 
1803
1834
  <li>
1804
- <p>Florian Gilcher reported that there was a <a href='http://www.ruby-forum.com/topic/176173#771281'>circular dependency problem</a> problem when installing the <strong>Inochi</strong> gem.</p>
1835
+ <p>Florian Gilcher reported that there was a <a href='http://www.ruby-forum.com/topic/176173#771281'>circular dependency problem</a> when installing the <strong>Inochi</strong> gem.</p>
1805
1836
 
1806
1837
  <p>The solution is to specify the <tt>--force</tt> option when installing the gem. <a class="xref" href="#Installation">Section 2.2. Installation</a> has been updated accordingly.</p>
1807
1838
  </li>
@@ -1811,7 +1842,7 @@ puts <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">
1811
1842
  </li>
1812
1843
  </ul></div>
1813
1844
  </div> <div class="paragraph">
1814
- <a name="Housekeeping"/><div class="nav" id="Housekeeping"><a title="Reverse jump to listing" href="#rev:Housekeeping">&equiv;</a><a title="Jump to previous segment" href="#Bug-fixes">&#x25B3;</a><a title="Jump to next segment" href="#Version-0.0.0-2009-01-13">&#x25BD;</a><a title="Jump to this segment" href="#Housekeeping">&#x25CE;</a></div>
1845
+ <a name="Housekeeping"/><div class="nav" id="Housekeeping"><a title="Reverse jump to listing" href="#rev:Housekeeping">&equiv;</a><a title="Jump to previous segment" href="#Bug-fixes-608680498">&#x25B3;</a><a title="Jump to next segment" href="#Version-0.0.0-2009-01-13">&#x25BD;</a><a title="Jump to this segment" href="#Housekeeping">&#x25CE;</a></div>
1815
1846
  <p class="title">Housekeeping</p>
1816
1847
  <div class="content"><ul>
1817
1848
  <li>Only add project libraries to <code class="code"><span style="color:#d70;font-weight:bold">$LOAD_PATH</span></code> if not already there.</li>
@@ -1836,7 +1867,7 @@ puts <span style="background-color:#fff0f0;color:#D20"><span style="color:#710">
1836
1867
 
1837
1868
  <div id="footer">
1838
1869
 
1839
- Generated by <a href="http://snk.tuxfamily.org/lib/erbook/">ERBook 6.0.0</a> on Mon Jan 19 11:20:33 -0800 2009.
1870
+ Generated by <a href="http://snk.tuxfamily.org/lib/erbook/">ERBook 6.0.1</a> on Mon Jan 19 12:55:48 -0800 2009.
1840
1871
 
1841
1872
  <div id="footer-credits">
1842
1873
  <p>
data/doc/setup.erb CHANGED
@@ -1,18 +1,21 @@
1
+ <% STDERR.puts "hey: #{ERBook::VERSION.object_id}" %>
2
+
1
3
  <% chapter "Setup" do %>
2
4
  <% section "Requirements" do %>
3
5
  Your system needs the following software to run **<%= $project %>**.
4
6
 
5
- | Software | Description | Notes |
6
- | -------- | ----------- | ----- |
7
- | [Ruby](http://ruby-lang.org) | Ruby language interpreter | Version 1.8.6 or 1.8.7 is required. |
8
- | [RubyGems](http://rubygems.org) | Ruby packaging system | Version 1.0.0 or newer is required. |
9
- | [Lynx](http://lynx.isc.org) | Text-mode web browser | Version 2.8.6 or newer is required to convert HTML into plain text. |
7
+ | Software | Description | Notes |
8
+ | -------- | ----------- | ----- |
9
+ | [Ruby](http://ruby-lang.org) | Ruby language interpreter | Version 1.8.6 or 1.8.7 is required. |
10
+ | [RubyGems](http://rubygems.org) | Ruby packaging system | Version 1.x.x is required. |
11
+ | [<%= ERBook::PROJECT %>](<%= ERBook::WEBSITE %>) | <%= ERBook::TAGLINE %> | Version <%= ERBook::VERSION.series %> is required. |
12
+ | [Lynx](http://lynx.isc.org) | Text-mode web browser | Version 2.8.6 or newer is required to convert HTML into plain text. |
10
13
  <% end %>
11
14
 
12
15
  <% section "Installation" do %>
13
16
  You can install **<%= $project %>** by running this command:
14
17
 
15
- gem install <%= $program %> --force
18
+ gem install <%= ERBook::PROGRAM %> <%= $program %>
16
19
 
17
20
  To check whether the installation was sucessful, run this command:
18
21
 
data/lib/inochi.rb CHANGED
@@ -1,15 +1,15 @@
1
1
  require File.join(File.dirname(File.expand_path(__FILE__)), 'inochi', 'inochi')
2
2
 
3
3
  Inochi.init :Inochi,
4
- :version => '0.0.1',
4
+ :version => '0.1.0',
5
5
  :release => '2009-01-19',
6
6
  :tagline => 'Gives life to RubyGems-based software',
7
7
  :website => 'http://snk.tuxfamily.org/lib/inochi',
8
8
  :require => {
9
+ 'rake' => '~> 0',
9
10
  'rubyforge' => '~> 1', # for publishing gems to RubyForge
10
11
  'mechanize' => '~> 0', # for automating web browsing
11
12
  'trollop' => '~> 1', # for parsing command-line options
12
- 'erbook' => '~> 6', # for processing the user manual
13
13
  'launchy' => '~> 0', # for launching a web browser
14
14
  'yard' => nil, # for generating API documentation
15
15
  'addressable' => '~> 2', # for parsing URIs properly
data/lib/inochi/inochi.rb CHANGED
@@ -126,6 +126,23 @@ class << self
126
126
  # make configuration parameters available as constants
127
127
  project_config[:inochi] = project_config
128
128
 
129
+ class << project_config[:version]
130
+ # Returns the major number in this version.
131
+ def major
132
+ to_s[/^\d+/]
133
+ end
134
+
135
+ # Returns a string describing any version with the current major number.
136
+ def series
137
+ "#{major}.x.x"
138
+ end
139
+
140
+ # Returns a Gem::Requirement expression.
141
+ def requirement
142
+ "~> #{major}"
143
+ end
144
+ end
145
+
129
146
  project_config.each_pair do |param, value|
130
147
  project_module.const_set param.to_s.upcase, value
131
148
  end
@@ -328,7 +345,11 @@ class << self
328
345
  doc_man_doc = nil
329
346
  task :doc_man_doc => doc_man_src do
330
347
  unless doc_man_doc
331
- require 'erbook' unless defined? ERBook
348
+ unless project_symbol == :ERBook
349
+ gem 'erbook', '~> 6'
350
+ require 'erbook'
351
+ end
352
+
332
353
  doc_man_txt = File.read(doc_man_src)
333
354
  doc_man_doc = ERBook::Document.new(:xhtml, doc_man_txt, doc_man_src, :unindent => true)
334
355
  end
@@ -606,7 +627,7 @@ class << self
606
627
  gem.has_rdoc = true
607
628
 
608
629
  unless project_module == Inochi
609
- gem.add_dependency 'inochi', "~> #{Inochi::VERSION[/^\d+/]}"
630
+ gem.add_dependency 'inochi', Inochi::VERSION.requirement
610
631
  end
611
632
 
612
633
  project_module::REQUIRE.each_pair do |gem_name, version_reqs|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inochi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suraj N. Kurapati
@@ -13,14 +13,14 @@ date: 2009-01-19 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: erbook
16
+ name: rake
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: "6"
23
+ version: "0"
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: addressable