rbatch 1.12.1 → 1.12.2

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.
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
data/CHANGELOG CHANGED
@@ -1,65 +1,66 @@
1
+ CHANGE LOG
2
+
3
+ This document includes functions which is added or changed, does not include bugfix.
4
+ About bugfix, see commit log of https://github.com/fetaro/rbatch .
5
+
6
+ 1.0
1
7
  -----
2
- initial
8
+ * initial
3
9
 
4
- 1.1.0(2012/11/9)
10
+ 1.1 (2012/11/9)
5
11
  -----
6
- * make common config file
12
+ * add common config file
7
13
  * change log option
8
14
 
9
- 1.2.0(2012/11/13)
15
+ 1.2 (2012/11/13)
10
16
  -----
11
17
  * change log level option format
12
- * make log append option
18
+ * add log append option
13
19
 
14
- 1.3.0(2012/12/30)
20
+ 1.3 (2012/12/30)
15
21
  -----
16
22
  * add RBatch::Log to instance interface
17
23
  * add double run check option
18
24
 
19
- 1.4.0(2013/1/5)
25
+ 1.4 (2013/1/5)
20
26
  ----
21
27
  * add log_stdout option
22
28
  * add sample code
23
29
  * add cmd_raise option
24
30
  * add log_delete_old_log option
25
31
 
26
- 1.5.0(2013/1/11)
32
+ 1.5 (2013/1/11)
27
33
  ----
28
34
  * change default config dir "../config" -> "../conf"
29
35
 
30
- 1.6.0(2013/1/14)
36
+ 1.6 (2013/1/14)
31
37
  ----
32
38
  * add config key check
33
39
 
34
- 1.7.0(2013/01/30)
40
+ 1.7 (2013/01/30)
35
41
  ----
36
42
  * change log format
37
43
  * delete change log format option
38
44
 
39
- 1.8.0(2013/02/10)
45
+ 1.8 (2013/02/10)
40
46
  ----
41
47
  * add log_send_mail option
42
48
  * add cmd_timeout option
43
49
 
44
- 1.9.0(2013/02/11)
50
+ 1.9 (2013/02/11)
45
51
  ----
46
52
  * add "<host>" keyword to log_name option
47
- * Environmental variables ($TMPDIR and $HOSTNAME) are checked strictly
53
+ * change Environmental variables ($TMPDIR and $HOSTNAME) are checked strictly
48
54
 
49
- 1.10.0(2013/02/12)
55
+ 1.10 (2013/02/12)
50
56
  ----
51
57
  * add rbatch-init command
52
58
 
53
- 1.11.0(2013/02/24)
59
+ 1.11 (2013/02/24)
54
60
  ----
55
- * support MAC environment (change handling of the environment variable about hostname and temporary directory)
61
+ * add support for MAC-OSX environment (change handling of the environment variable about hostname and temporary directory)
56
62
 
57
- 1.12.0(2013/11/19)
63
+ 1.12 (2013/11/19)
58
64
  ----
59
65
  * add Common Config Function
60
- * document enhance
61
-
62
- 1.12.1(2013/11/21)
63
- ----
64
- * bug fix. Before, RBatch::Log block only rescue the exception which is extended StandardError (not Exception). Now fix it.
65
66
 
data/README.ja.md CHANGED
@@ -18,6 +18,8 @@ RBatchについて
18
18
 
19
19
  注意:このフレームワークはRuby 1.9.x以降で動作します。また、Rubyプラットフォームは"linux","mswin","mingw","cygwin"で動作します。
20
20
 
21
+ このソフトウェアは、MITライセンスのもとで公開しています。LICENSE.txtを見てください。
22
+
21
23
  ### はじめに
22
24
 
23
25
  RBatchでは、実行スクリプト、設定ファイルおよびログファイルについて、
data/README.md CHANGED
@@ -5,7 +5,7 @@ RBatch:Ruby-base Simple Batch Framework
5
5
 
6
6
  About RBatch
7
7
  --------------
8
- This is Ruby-base Batch Script Framework. RBatch offers convenient functions, when you write batch scripts such as "data backup script" or "proccess starting script".
8
+ This is Ruby-base Batch Script Framework. RBatch has many fanctions to help with your making a batch script such as "data backup script" or "proccess starting script".
9
9
 
10
10
  There are following functions.
11
11
 
@@ -18,6 +18,8 @@ There are following functions.
18
18
 
19
19
  Note: RBatch works on Ruby 1.9.x or later, and on Ruby platform of "linux","mswin","mingw","cygwin".
20
20
 
21
+ Note: This software is released under the MIT License, see LICENSE.txt.
22
+
21
23
  ### First
22
24
 
23
25
  RBach has convention of file naming and directorory structure.
data/Rakefile CHANGED
@@ -1 +1,35 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rake/rdoctask'
3
+
4
+ desc "Test lib/ by using test/cases/test_*.rb"
5
+ task :test do
6
+ result = 0
7
+ cases = FileList["test/cases/*.rb"]
8
+ cases.each do | c |
9
+ cmd_str="ruby -I lib #{c}"
10
+ stdout_file = Tempfile::new("rbatch_tmpout",".")
11
+ stderr_file = Tempfile::new("rbatch_tmperr",".")
12
+ pid = spawn(cmd_str,:out => [stdout_file,"w"],:err => [stderr_file,"w"])
13
+ status = Process.waitpid2(pid)[1] >> 8
14
+ puts ""
15
+ puts "> " + cmd_str
16
+ puts "------------------------------"
17
+ puts File.read(stdout_file)
18
+ puts "------------------------------"
19
+ if status != 0
20
+ result = 1
21
+ end
22
+ end
23
+ if result == 0
24
+ puts "\nTest Success \n"
25
+ else
26
+ puts "\nTest Failed \n"
27
+ end
28
+ exit result
29
+ end
30
+
31
+ Rake::RDocTask.new do |rd|
32
+ rd.rdoc_dir = 'rdocs'
33
+ rd.rdoc_files = FileList["lib/**/*.rb"]
34
+ rd.options << '-charset=UTF-8 '
35
+ end
@@ -1,3 +1,3 @@
1
1
  module Rbatch
2
- VERSION = "1.12.1"
2
+ VERSION = "1.12.2"
3
3
  end
data/rbatch.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
8
8
  gem.version = Rbatch::VERSION
9
9
  gem.authors = ["fetaro"]
10
10
  gem.email = ["fetaro@gmail.com"]
11
- gem.description = "Ruby-based simple batch framework"
11
+ gem.description = "RBatch has many fanctions to help with your making a batch script such as \"data backup script\" or \"proccess starting script\"."
12
12
  gem.summary = "Ruby-based simple batch framework"
13
13
  gem.homepage = "https://github.com/fetaro/rbatch"
14
14
 
@@ -18,4 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.required_ruby_version = ">= 1.9.0"
21
+ gem.license = 'MIT'
21
22
  end
@@ -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::Cmd</title>
9
9
 
@@ -84,17 +84,6 @@
84
84
  <div id="project-metadata">
85
85
 
86
86
 
87
- <div id="fileindex-section" class="section project-section">
88
- <h3 class="section-header">Files</h3>
89
- <ul>
90
-
91
- <li class="file"><a href="../CHANGELOG.html">CHANGELOG</a></li>
92
-
93
- <li class="file"><a href="../LICENSE.html">LICENSE</a></li>
94
-
95
- </ul>
96
- </div>
97
-
98
87
 
99
88
  <div id="classindex-section" class="section project-section">
100
89
  <h3 class="section-header">Class Index
@@ -119,6 +108,10 @@
119
108
 
120
109
  <li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
121
110
 
111
+ <li><a href="../RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
112
+
113
+ <li><a href="../RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
114
+
122
115
  <li><a href="../RBatch/Config.html">RBatch::Config</a></li>
123
116
 
124
117
  <li><a href="../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
@@ -127,6 +120,8 @@
127
120
 
128
121
  <li><a href="../RBatchException.html">RBatchException</a></li>
129
122
 
123
+ <li><a href="../Rbatch.html">Rbatch</a></li>
124
+
130
125
  </ul>
131
126
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
132
127
  </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::CmdException</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::CmdResult</title>
9
9
 
@@ -98,17 +98,6 @@
98
98
  <div id="project-metadata">
99
99
 
100
100
 
101
- <div id="fileindex-section" class="section project-section">
102
- <h3 class="section-header">Files</h3>
103
- <ul>
104
-
105
- <li class="file"><a href="../CHANGELOG.html">CHANGELOG</a></li>
106
-
107
- <li class="file"><a href="../LICENSE.html">LICENSE</a></li>
108
-
109
- </ul>
110
- </div>
111
-
112
101
 
113
102
  <div id="classindex-section" class="section project-section">
114
103
  <h3 class="section-header">Class Index
@@ -133,6 +122,10 @@
133
122
 
134
123
  <li><a href="../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
135
124
 
125
+ <li><a href="../RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
126
+
127
+ <li><a href="../RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
128
+
136
129
  <li><a href="../RBatch/Config.html">RBatch::Config</a></li>
137
130
 
138
131
  <li><a href="../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
@@ -141,6 +134,8 @@
141
134
 
142
135
  <li><a href="../RBatchException.html">RBatchException</a></li>
143
136
 
137
+ <li><a href="../Rbatch.html">Rbatch</a></li>
138
+
144
139
  </ul>
145
140
  <div id="no-class-search-results" style="display: none;">No matching classes.</div>
146
141
  </div>
@@ -0,0 +1,155 @@
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::Exception</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"><a href="Exception.html">RBatch::CommonConfig::Exception</a></p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+
66
+ <!-- Method Quickref -->
67
+
68
+
69
+ <!-- Included Modules -->
70
+
71
+ </div>
72
+
73
+ <div id="project-metadata">
74
+
75
+
76
+
77
+ <div id="classindex-section" class="section project-section">
78
+ <h3 class="section-header">Class Index
79
+ <span class="search-toggle"><img src="../../images/find.png"
80
+ height="16" width="16" alt="[+]"
81
+ title="show/hide quicksearch" /></span></h3>
82
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
83
+ <fieldset>
84
+ <legend>Quicksearch</legend>
85
+ <input type="text" name="quicksearch" value=""
86
+ class="quicksearch-field" />
87
+ </fieldset>
88
+ </form>
89
+
90
+ <ul class="link-list">
91
+
92
+ <li><a href="../../RBatch.html">RBatch</a></li>
93
+
94
+ <li><a href="../../RBatch/Cmd.html">RBatch::Cmd</a></li>
95
+
96
+ <li><a href="../../RBatch/CmdException.html">RBatch::CmdException</a></li>
97
+
98
+ <li><a href="../../RBatch/CmdResult.html">RBatch::CmdResult</a></li>
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
+
104
+ <li><a href="../../RBatch/Config.html">RBatch::Config</a></li>
105
+
106
+ <li><a href="../../RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
107
+
108
+ <li><a href="../../RBatch/Log.html">RBatch::Log</a></li>
109
+
110
+ <li><a href="../../RBatchException.html">RBatchException</a></li>
111
+
112
+ <li><a href="../../Rbatch.html">Rbatch</a></li>
113
+
114
+ </ul>
115
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
116
+ </div>
117
+
118
+
119
+ </div>
120
+ </div>
121
+
122
+ <div id="documentation">
123
+ <h1 class="class">RBatch::CommonConfig::Exception</h1>
124
+
125
+ <div id="description">
126
+
127
+ </div>
128
+
129
+ <!-- Constants -->
130
+
131
+
132
+ <!-- Attributes -->
133
+
134
+
135
+ <!-- Methods -->
136
+
137
+
138
+ </div>
139
+
140
+
141
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
142
+
143
+ <p>Disabled; run with --debug to generate this.</p>
144
+
145
+ </div>
146
+
147
+ <div id="validator-badges">
148
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
149
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
150
+ Rdoc Generator</a> 1.1.6</small>.</p>
151
+ </div>
152
+
153
+ </body>
154
+ </html>
155
+