rbatch 1.12.1 → 1.12.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/CHANGELOG +23 -22
  2. data/README.ja.md +2 -0
  3. data/README.md +3 -1
  4. data/Rakefile +34 -0
  5. data/lib/rbatch/version.rb +1 -1
  6. data/rbatch.gemspec +2 -1
  7. data/{doc/rdoc → rdocs}/RBatch/Cmd.html +8 -13
  8. data/{doc/rdoc → rdocs}/RBatch/CmdException.html +8 -13
  9. data/{doc/rdoc → rdocs}/RBatch/CmdResult.html +8 -13
  10. data/rdocs/RBatch/CommonConfig/Exception.html +155 -0
  11. data/rdocs/RBatch/CommonConfig.html +351 -0
  12. data/{doc/rdoc → rdocs}/RBatch/Config/Exception.html +8 -13
  13. data/{doc/rdoc → rdocs}/RBatch/Config.html +8 -13
  14. data/{doc/rdoc → rdocs}/RBatch/Log.html +110 -113
  15. data/{doc/rdoc → rdocs}/RBatch.html +181 -90
  16. data/{doc/rdoc → rdocs}/RBatchException.html +8 -13
  17. data/{doc/rdoc/LICENSE.html → rdocs/Rbatch.html} +77 -17
  18. data/rdocs/created.rid +7 -0
  19. data/{doc/rdoc → rdocs}/index.html +28 -19
  20. data/{doc/rdoc → rdocs}/lib/rbatch/cmd_rb.html +3 -3
  21. data/rdocs/lib/rbatch/common_config_rb.html +56 -0
  22. data/{doc/rdoc → rdocs}/lib/rbatch/config_rb.html +3 -3
  23. data/{doc/rdoc → rdocs}/lib/rbatch/log_rb.html +3 -3
  24. data/rdocs/lib/rbatch/version_rb.html +52 -0
  25. data/{doc/rdoc → rdocs}/lib/rbatch_rb.html +5 -3
  26. metadata +49 -47
  27. data/HOW_TO_TEST.md +0 -9
  28. data/doc/rdoc/CHANGELOG.html +0 -207
  29. data/doc/rdoc/created.rid +0 -8
  30. /data/{doc/rdoc → rdocs}/images/brick.png +0 -0
  31. /data/{doc/rdoc → rdocs}/images/brick_link.png +0 -0
  32. /data/{doc/rdoc → rdocs}/images/bug.png +0 -0
  33. /data/{doc/rdoc → rdocs}/images/bullet_black.png +0 -0
  34. /data/{doc/rdoc → rdocs}/images/bullet_toggle_minus.png +0 -0
  35. /data/{doc/rdoc → rdocs}/images/bullet_toggle_plus.png +0 -0
  36. /data/{doc/rdoc → rdocs}/images/date.png +0 -0
  37. /data/{doc/rdoc → rdocs}/images/find.png +0 -0
  38. /data/{doc/rdoc → rdocs}/images/loadingAnimation.gif +0 -0
  39. /data/{doc/rdoc → rdocs}/images/macFFBgHack.png +0 -0
  40. /data/{doc/rdoc → rdocs}/images/package.png +0 -0
  41. /data/{doc/rdoc → rdocs}/images/page_green.png +0 -0
  42. /data/{doc/rdoc → rdocs}/images/page_white_text.png +0 -0
  43. /data/{doc/rdoc → rdocs}/images/page_white_width.png +0 -0
  44. /data/{doc/rdoc → rdocs}/images/plugin.png +0 -0
  45. /data/{doc/rdoc → rdocs}/images/ruby.png +0 -0
  46. /data/{doc/rdoc → rdocs}/images/tag_green.png +0 -0
  47. /data/{doc/rdoc → rdocs}/images/wrench.png +0 -0
  48. /data/{doc/rdoc → rdocs}/images/wrench_orange.png +0 -0
  49. /data/{doc/rdoc → rdocs}/images/zoom.png +0 -0
  50. /data/{doc/rdoc → rdocs}/js/darkfish.js +0 -0
  51. /data/{doc/rdoc → rdocs}/js/jquery.js +0 -0
  52. /data/{doc/rdoc → rdocs}/js/quicksearch.js +0 -0
  53. /data/{doc/rdoc → rdocs}/js/thickbox-compressed.js +0 -0
  54. /data/{doc/rdoc → rdocs}/rdoc.css +0 -0
@@ -0,0 +1,351 @@
1
+ <?xml version="1.0" encoding="harset=UTF-8 "?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=harset=UTF-8 " http-equiv="Content-Type" />
7
+
8
+ <title>Class: RBatch::CommonConfig</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../index.html">Home</a>
29
+ <a href="../index.html#classes">Classes</a>
30
+ <a href="../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../lib/rbatch/common_config_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/rbatch/common_config.rb">lib/rbatch/common_config.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link">Object</p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+ <div id="namespace-list-section" class="section">
66
+ <h3 class="section-header">Namespace</h3>
67
+ <ul class="link-list">
68
+
69
+ <li><span class="type">CLASS</span> <a href="CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
70
+
71
+ </ul>
72
+ </div>
73
+
74
+
75
+ <!-- Method Quickref -->
76
+
77
+ <div id="method-list-section" class="section">
78
+ <h3 class="section-header">Methods</h3>
79
+ <ul class="link-list">
80
+
81
+ <li><a href="#method-c-new">::new</a></li>
82
+
83
+ <li><a href="#method-i-%5B%5D">#[]</a></li>
84
+
85
+ <li><a href="#method-i-path">#path</a></li>
86
+
87
+ <li><a href="#method-i-to_s">#to_s</a></li>
88
+
89
+ </ul>
90
+ </div>
91
+
92
+
93
+ <!-- Included Modules -->
94
+
95
+ </div>
96
+
97
+ <div id="project-metadata">
98
+
99
+
100
+
101
+ <div id="classindex-section" class="section project-section">
102
+ <h3 class="section-header">Class Index
103
+ <span class="search-toggle"><img src="../images/find.png"
104
+ height="16" width="16" alt="[+]"
105
+ title="show/hide quicksearch" /></span></h3>
106
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
107
+ <fieldset>
108
+ <legend>Quicksearch</legend>
109
+ <input type="text" name="quicksearch" value=""
110
+ class="quicksearch-field" />
111
+ </fieldset>
112
+ </form>
113
+
114
+ <ul class="link-list">
115
+
116
+ <li><a href="../RBatch.html">RBatch</a></li>
117
+
118
+ <li><a href="../RBatch/Cmd.html">RBatch::Cmd</a></li>
119
+
120
+ <li><a href="../RBatch/CmdException.html">RBatch::CmdException</a></li>
121
+
122
+ <li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
123
+
124
+ <li><a href="../RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
125
+
126
+ <li><a href="../RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
127
+
128
+ <li><a href="../RBatch/Config.html">RBatch::Config</a></li>
129
+
130
+ <li><a href="../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
131
+
132
+ <li><a href="../RBatch/Log.html">RBatch::Log</a></li>
133
+
134
+ <li><a href="../RBatchException.html">RBatchException</a></li>
135
+
136
+ <li><a href="../Rbatch.html">Rbatch</a></li>
137
+
138
+ </ul>
139
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
140
+ </div>
141
+
142
+
143
+ </div>
144
+ </div>
145
+
146
+ <div id="documentation">
147
+ <h1 class="class">RBatch::CommonConfig</h1>
148
+
149
+ <div id="description">
150
+ <p>
151
+ Read common config file and return hash opject.
152
+ </p>
153
+ <p>
154
+ Default common config file path is &#8220;../conf/common.yaml&#8220;
155
+ </p>
156
+ <h4>Sample</h4>
157
+ <p>
158
+ config : ./conf/common.yaml
159
+ </p>
160
+ <pre>
161
+ key: value
162
+ array:
163
+ * item1
164
+ * item2
165
+ * item3
166
+ </pre>
167
+ <p>
168
+ script : ./bin/sample.rb
169
+ </p>
170
+ <pre>
171
+ require 'rbatch'
172
+ p RBatch::common_config
173
+ =&gt; {&quot;key&quot; =&gt; &quot;value&quot;, &quot;array&quot; =&gt; [&quot;item1&quot;, &quot;item2&quot;, &quot;item3&quot;]}</pre>
174
+
175
+ </div>
176
+
177
+ <!-- Constants -->
178
+
179
+
180
+ <!-- Attributes -->
181
+
182
+
183
+ <!-- Methods -->
184
+
185
+ <div id="public-class-method-details" class="method-section section">
186
+ <h3 class="section-header">Public Class Methods</h3>
187
+
188
+
189
+ <div id="new-method" class="method-detail ">
190
+ <a name="method-c-new"></a>
191
+
192
+ <div class="method-heading">
193
+
194
+ <span class="method-name">new</span><span
195
+ class="method-args">()</span>
196
+ <span class="method-click-advice">click to toggle source</span>
197
+
198
+ </div>
199
+
200
+ <div class="method-description">
201
+
202
+
203
+
204
+
205
+
206
+ <div class="method-source-code"
207
+ id="new-source">
208
+ <pre>
209
+ <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 28</span>
210
+ 28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
211
+ 29: <span class="ruby-identifier">file</span> = <span class="ruby-value str">&quot;common.yaml&quot;</span>
212
+ 30: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>),<span class="ruby-value str">&quot;..&quot;</span>),<span class="ruby-value str">&quot;conf&quot;</span>)
213
+ 31: <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dir</span>,<span class="ruby-identifier">file</span>)
214
+ 32: <span class="ruby-ivar">@config</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-ivar">@path</span>)
215
+ 33: <span class="ruby-keyword kw">end</span></pre>
216
+ </div>
217
+
218
+ </div>
219
+
220
+
221
+
222
+
223
+ </div>
224
+
225
+
226
+ </div>
227
+
228
+ <div id="public-instance-method-details" class="method-section section">
229
+ <h3 class="section-header">Public Instance Methods</h3>
230
+
231
+
232
+ <div id="--method" class="method-detail ">
233
+ <a name="method-i-%5B%5D"></a>
234
+
235
+ <div class="method-heading">
236
+
237
+ <span class="method-name">[]</span><span
238
+ class="method-args">(key)</span>
239
+ <span class="method-click-advice">click to toggle source</span>
240
+
241
+ </div>
242
+
243
+ <div class="method-description">
244
+
245
+
246
+
247
+
248
+
249
+ <div class="method-source-code"
250
+ id="--source">
251
+ <pre>
252
+ <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 34</span>
253
+ 34: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
254
+ 35: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CommonConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">&quot;Value of key=\&quot;#{key}\&quot; is nil&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
255
+ 36: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
256
+ 37: <span class="ruby-keyword kw">end</span></pre>
257
+ </div>
258
+
259
+ </div>
260
+
261
+
262
+
263
+
264
+ </div>
265
+
266
+
267
+ <div id="path-method" class="method-detail ">
268
+ <a name="method-i-path"></a>
269
+
270
+ <div class="method-heading">
271
+
272
+ <span class="method-name">path</span><span
273
+ class="method-args">()</span>
274
+ <span class="method-click-advice">click to toggle source</span>
275
+
276
+ </div>
277
+
278
+ <div class="method-description">
279
+
280
+
281
+
282
+
283
+
284
+ <div class="method-source-code"
285
+ id="path-source">
286
+ <pre>
287
+ <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 38</span>
288
+ 38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword kw">end</span></pre>
289
+ </div>
290
+
291
+ </div>
292
+
293
+
294
+
295
+
296
+ </div>
297
+
298
+
299
+ <div id="to-s-method" class="method-detail ">
300
+ <a name="method-i-to_s"></a>
301
+
302
+ <div class="method-heading">
303
+
304
+ <span class="method-name">to_s</span><span
305
+ class="method-args">()</span>
306
+ <span class="method-click-advice">click to toggle source</span>
307
+
308
+ </div>
309
+
310
+ <div class="method-description">
311
+
312
+
313
+
314
+
315
+
316
+ <div class="method-source-code"
317
+ id="to-s-source">
318
+ <pre>
319
+ <span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 39</span>
320
+ 39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword kw">end</span></pre>
321
+ </div>
322
+
323
+ </div>
324
+
325
+
326
+
327
+
328
+ </div>
329
+
330
+
331
+ </div>
332
+
333
+
334
+ </div>
335
+
336
+
337
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
338
+
339
+ <p>Disabled; run with --debug to generate this.</p>
340
+
341
+ </div>
342
+
343
+ <div id="validator-badges">
344
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
345
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
346
+ Rdoc Generator</a> 1.1.6</small>.</p>
347
+ </div>
348
+
349
+ </body>
350
+ </html>
351
+
@@ -1,9 +1,9 @@
1
- <?xml version="1.0" encoding="utf-8"?>
1
+ <?xml version="1.0" encoding="harset=UTF-8 "?>
2
2
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
3
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
6
+ <meta content="text/html; charset=harset=UTF-8 " http-equiv="Content-Type" />
7
7
 
8
8
  <title>Class: RBatch::Config::Exception</title>
9
9
 
@@ -73,17 +73,6 @@
73
73
  <div id="project-metadata">
74
74
 
75
75
 
76
- <div id="fileindex-section" class="section project-section">
77
- <h3 class="section-header">Files</h3>
78
- <ul>
79
-
80
- <li class="file"><a href="../../CHANGELOG.html">CHANGELOG</a></li>
81
-
82
- <li class="file"><a href="../../LICENSE.html">LICENSE</a></li>
83
-
84
- </ul>
85
- </div>
86
-
87
76
 
88
77
  <div id="classindex-section" class="section project-section">
89
78
  <h3 class="section-header">Class Index
@@ -108,6 +97,10 @@
108
97
 
109
98
  <li><a href="../../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
110
99
 
100
+ <li><a href="../../RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
101
+
102
+ <li><a href="../../RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
103
+
111
104
  <li><a href="../../RBatch/Config.html">RBatch::Config</a></li>
112
105
 
113
106
  <li><a href="../../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
@@ -116,6 +109,8 @@
116
109
 
117
110
  <li><a href="../../RBatchException.html">RBatchException</a></li>
118
111
 
112
+ <li><a href="../../Rbatch.html">Rbatch</a></li>
113
+
119
114
  </ul>
120
115
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
121
116
  </div>
@@ -1,9 +1,9 @@
1
- <?xml version="1.0" encoding="utf-8"?>
1
+ <?xml version="1.0" encoding="harset=UTF-8 "?>
2
2
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
3
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
6
+ <meta content="text/html; charset=harset=UTF-8 " http-equiv="Content-Type" />
7
7
 
8
8
  <title>Class: RBatch::Config</title>
9
9
 
@@ -97,17 +97,6 @@
97
97
  <div id="project-metadata">
98
98
 
99
99
 
100
- <div id="fileindex-section" class="section project-section">
101
- <h3 class="section-header">Files</h3>
102
- <ul>
103
-
104
- <li class="file"><a href="../CHANGELOG.html">CHANGELOG</a></li>
105
-
106
- <li class="file"><a href="../LICENSE.html">LICENSE</a></li>
107
-
108
- </ul>
109
- </div>
110
-
111
100
 
112
101
  <div id="classindex-section" class="section project-section">
113
102
  <h3 class="section-header">Class Index
@@ -132,6 +121,10 @@
132
121
 
133
122
  <li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
134
123
 
124
+ <li><a href="../RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
125
+
126
+ <li><a href="../RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
127
+
135
128
  <li><a href="../RBatch/Config.html">RBatch::Config</a></li>
136
129
 
137
130
  <li><a href="../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
@@ -140,6 +133,8 @@
140
133
 
141
134
  <li><a href="../RBatchException.html">RBatchException</a></li>
142
135
 
136
+ <li><a href="../Rbatch.html">Rbatch</a></li>
137
+
143
138
  </ul>
144
139
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
145
140
  </div>