ariete 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
- Ariete $stdout & $stderr Capture Module
1
+ Ariete STDOUT & STDERR Capture Module
2
2
  =======================================
3
3
 
4
4
  ## Introduction
5
5
 
6
- Ariete $stdout & $stderr Capture Module is a module that captures $stdout($stderr) and return as String. Ariete is useful on unit test.
6
+ Ariete STDOUT & STDERR Capture Module is a module that captures $stdout($stderr) and return as String. Ariete is useful on unit test.
7
7
 
8
8
  **usage**
9
9
 
10
10
  require "test/unit"
11
+ require "ariete"
11
12
  require_relative "klass"
12
13
 
13
14
  class KlassTest < Test::Unit::TestCase
@@ -1,13 +1,14 @@
1
- Ariete $stdout & $stderr Capture Module
1
+ Ariete STDOUT & STDERR Capture Module
2
2
  =======================================
3
3
 
4
4
  ## イントロダクション
5
5
 
6
- Ariete $stdout & $stderr Capture Moduleは、標準出力または標準エラー出力をキャプチャし、文字列として取得するためのモジュールである。主にユニットテストで使用することを想定している。
6
+ Ariete STDOUT & STDERR Capture Moduleは、標準出力または標準エラー出力をキャプチャし、文字列として取得するためのモジュールである。主にユニットテストで使用することを想定している。
7
7
 
8
8
  **usage**
9
9
 
10
10
  require "test/unit"
11
+ require "ariete"
11
12
  require_relative "klass"
12
13
 
13
14
  class KlassTest < Test::Unit::TestCase
data/Rakefile CHANGED
@@ -2,12 +2,12 @@ require "rake/gempackagetask"
2
2
 
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = "ariete"
5
- s.summary = "Ariete $stdout & $stderr Capture Module."
5
+ s.summary = "Ariete STDOUT & STDERR Capture Module."
6
6
  s.description = File.read(File.join(File.dirname(__FILE__), "README.md"))
7
- s.version = "0.0.1"
7
+ s.version = "0.1.0"
8
8
  s.author = "Moza USANE"
9
9
  s.email = "mozamimy@quellencode.org"
10
- s.homepage = "http://blog.quellencode.org/"
10
+ s.homepage = "http://quellencode.org/"
11
11
  s.platform = Gem::Platform::RUBY
12
12
  s.required_ruby_version = ">=1.9"
13
13
  s.files = Dir["**/**"]
@@ -1,248 +1,230 @@
1
- <?xml version="1.0" encoding="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">
1
+ <!DOCTYPE html>
2
+
3
+ <html>
5
4
  <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module Ariete - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
7
10
 
8
- <title>Module: Ariete</title>
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
9
14
 
10
- <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
11
21
 
12
- <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
22
 
17
- </head>
18
23
  <body id="top" class="module">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ariete.rb
51
+ </ul>
52
+ </nav>
19
53
 
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="./index.html">Home</a>
25
- <a href="./index.html#classes">Classes</a>
26
- <a href="./index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
-
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="./lib/ariete_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/ariete.rb">lib/ariete.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
54
+
55
+ </div>
43
56
 
44
-
45
- </div>
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+ <!-- Method Quickref -->
62
+ <nav id="method-list-section" class="section">
63
+ <h3 class="section-header">Methods</h3>
46
64
 
47
- <div id="class-metadata">
48
-
65
+ <ul class="link-list">
66
+
67
+ <li><a href="#method-i-capture_stderr">#capture_stderr</a>
68
+
69
+ <li><a href="#method-i-capture_stdout">#capture_stdout</a>
70
+
71
+ </ul>
72
+ </nav>
49
73
 
50
-
74
+ </div>
51
75
 
52
-
76
+ <div id="project-metadata">
77
+ <nav id="fileindex-section" class="section project-section">
78
+ <h3 class="section-header">Pages</h3>
53
79
 
54
-
55
- <!-- Method Quickref -->
56
- <div id="method-list-section" class="section">
57
- <h3 class="section-header">Methods</h3>
58
- <ul class="link-list">
59
-
60
- <li><a href="#method-i-capture_stderr">#capture_stderr</a></li>
61
-
62
- <li><a href="#method-i-capture_stdout">#capture_stdout</a></li>
63
-
64
- </ul>
65
- </div>
66
-
67
-
68
-
69
- </div>
70
-
71
- <div id="project-metadata">
72
-
73
-
74
- <div id="fileindex-section" class="section project-section">
75
- <h3 class="section-header">Files</h3>
76
- <ul>
77
-
78
- <li class="file"><a href="./LICENSE.html">LICENSE</a></li>
79
-
80
- <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
81
-
82
- </ul>
83
- </div>
84
-
85
-
86
- <div id="classindex-section" class="section project-section">
87
- <h3 class="section-header">Class/Module Index
88
- <span class="search-toggle"><img src="./images/find.png"
89
- height="16" width="16" alt="[+]"
90
- title="show/hide quicksearch" /></span></h3>
91
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
92
- <fieldset>
93
- <legend>Quicksearch</legend>
94
- <input type="text" name="quicksearch" value=""
95
- class="quicksearch-field" />
96
- </fieldset>
97
- </form>
98
-
99
- <ul class="link-list">
100
-
101
- <li><a href="./Ariete.html">Ariete</a></li>
102
-
103
- <li><a href="./CaptureStdTest.html">CaptureStdTest</a></li>
104
-
105
- </ul>
106
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
107
- </div>
80
+ <ul>
81
+
82
+ <li class="file"><a href="./LICENSE.html">LICENSE</a>
83
+
84
+ <li class="file"><a href="./Rakefile.html">Rakefile</a>
85
+
86
+ </ul>
87
+ </nav>
88
+
89
+ <nav id="classindex-section" class="section project-section">
90
+ <h3 class="section-header">Class and Module Index</h3>
91
+
92
+ <ul class="link-list">
93
+
94
+ <li><a href="./Ariete.html">Ariete</a>
95
+
96
+ <li><a href="./CaptureStdTest.html">CaptureStdTest</a>
97
+
98
+ </ul>
99
+ </nav>
108
100
 
109
-
110
- </div>
111
101
  </div>
102
+ </nav>
112
103
 
113
- <div id="documentation">
114
- <h1 class="module">Ariete</h1>
104
+ <div id="documentation">
105
+ <h1 class="module">module Ariete</h1>
115
106
 
116
- <div id="description" class="description">
117
-
118
- <p><a href="Ariete.html">Ariete</a> $stdout &amp; $stderr Capture Module</p>
119
- <table class="rdoc-list"><tr><td class="rdoc-term"><p>Author</p></td>
120
- <td>
107
+ <div id="description" class="description">
108
+
109
+ <p><a href="Ariete.html">Ariete</a> STDOUT &amp; STDERR Capture Module</p>
110
+ <dl class="rdoc-list note-list"><dt>Author
111
+ <dd>
121
112
  <p>Moza USANE (<a
122
113
  href="mailto:mozamimy@quellencode.org">mozamimy@quellencode.org</a>)</p>
123
- </td></tr><tr><td class="rdoc-term"><p>Copyright</p></td>
124
- <td>
114
+ </dd><dt>Copyright
115
+ <dd>
125
116
  <p>Copyright © 2012 Moza USANE</p>
126
- </td></tr><tr><td class="rdoc-term"><p>License</p></td>
127
- <td>
117
+ </dd><dt>License
118
+ <dd>
128
119
  <p>MIT License (see the <a href="LICENSE.html">LICENSE</a> file)</p>
129
- </td></tr></table>
120
+ </dd></dl>
130
121
 
131
- </div><!-- description -->
122
+ </div><!-- description -->
132
123
 
124
+
125
+
126
+
127
+ <section id="5Buntitled-5D" class="documentation-section">
133
128
 
134
-
135
-
136
- <div id="5Buntitled-5D" class="documentation-section">
137
-
138
129
 
139
-
130
+
140
131
 
141
-
132
+
142
133
 
143
-
134
+
144
135
 
145
- <!-- Methods -->
146
-
147
- <div id="public-instance-method-details" class="method-section section">
148
- <h3 class="section-header">Public Instance Methods</h3>
136
+ <!-- Methods -->
137
+
138
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
139
+ <h3 class="section-header">Public Instance Methods</h3>
149
140
 
150
-
151
- <div id="capture_stderr-method" class="method-detail ">
152
- <a name="method-i-capture_stderr"></a>
141
+
142
+ <div id="method-i-capture_stderr" class="method-detail ">
143
+
144
+ <div class="method-heading">
145
+ <span class="method-name">capture_stderr</span><span
146
+ class="method-args">()</span>
147
+ <span class="method-click-advice">click to toggle source</span>
148
+ </div>
149
+
153
150
 
151
+ <div class="method-description">
154
152
 
155
- <div class="method-heading">
156
- <span class="method-name">capture_stderr</span><span
157
- class="method-args"></span>
158
- <span class="method-click-advice">click to toggle source</span>
159
- </div>
160
-
161
-
162
- <div class="method-description">
163
-
164
- <p>Capture $stderr’s output and return as String.</p>
153
+ <p>Capture STDERR’s output and return as String.</p>
165
154
 
166
- <h4>Args</h4>
167
- <table class="rdoc-list"><tr><td class="rdoc-term"><p>&amp;block </p></td>
168
- <td>
155
+ <h4 id="method-i-capture_stderr-label-Args">Args</h4>
156
+ <dl class="rdoc-list note-list"><dt>&amp;block
157
+ <dd>
169
158
  <p>a block that you want to capture</p>
170
- </td></tr></table>
159
+ </dd></dl>
171
160
 
172
- <h4>Return</h4>
161
+ <h4 id="method-i-capture_stderr-label-Return">Return</h4>
173
162
 
174
163
  <p>Captured string</p>
175
-
164
+
176
165
 
177
-
178
- <div class="method-source-code" id="capture_stderr-source">
179
- <pre>
180
- <span class="ruby-comment"># File lib/ariete.rb, line 27</span>
166
+
167
+ <div class="method-source-code" id="capture_stderr-source">
168
+ <pre><span class="ruby-comment"># File lib/ariete.rb, line 27</span>
181
169
  </pre>
182
- </div><!-- capture_stderr-source -->
183
-
184
- </div>
185
-
170
+ </div><!-- capture_stderr-source -->
186
171
 
172
+ </div>
187
173
 
188
-
189
- </div><!-- capture_stderr-method -->
174
+
190
175
 
191
-
192
- <div id="capture_stdout-method" class="method-detail ">
193
- <a name="method-i-capture_stdout"></a>
176
+
177
+ </div><!-- capture_stderr-method -->
194
178
 
195
-
196
- <div class="method-heading">
197
- <span class="method-name">capture_stdout</span><span
198
- class="method-args"></span>
199
- <span class="method-click-advice">click to toggle source</span>
200
- </div>
201
-
179
+
180
+ <div id="method-i-capture_stdout" class="method-detail ">
181
+
182
+ <div class="method-heading">
183
+ <span class="method-name">capture_stdout</span><span
184
+ class="method-args">()</span>
185
+ <span class="method-click-advice">click to toggle source</span>
186
+ </div>
187
+
202
188
 
203
- <div class="method-description">
204
-
205
- <p>Capture $stdout’s output and return as String.</p>
189
+ <div class="method-description">
190
+
191
+ <p>Capture STDOUT’s output and return as String.</p>
206
192
 
207
- <h4>Args</h4>
208
- <table class="rdoc-list"><tr><td class="rdoc-term"><p>&amp;block </p></td>
209
- <td>
193
+ <h4 id="method-i-capture_stdout-label-Args">Args</h4>
194
+ <dl class="rdoc-list note-list"><dt>&amp;block
195
+ <dd>
210
196
  <p>a block that you want to capture</p>
211
- </td></tr></table>
197
+ </dd></dl>
212
198
 
213
- <h4>Return</h4>
199
+ <h4 id="method-i-capture_stdout-label-Return">Return</h4>
214
200
 
215
201
  <p>Captured string</p>
216
-
202
+
217
203
 
218
-
219
- <div class="method-source-code" id="capture_stdout-source">
220
- <pre>
221
- <span class="ruby-comment"># File lib/ariete.rb, line 19</span>
204
+
205
+ <div class="method-source-code" id="capture_stdout-source">
206
+ <pre><span class="ruby-comment"># File lib/ariete.rb, line 19</span>
222
207
  </pre>
223
- </div><!-- capture_stdout-source -->
224
-
225
- </div>
226
-
208
+ </div><!-- capture_stdout-source -->
227
209
 
210
+ </div>
228
211
 
229
-
230
- </div><!-- capture_stdout-method -->
212
+
213
+
214
+
215
+ </div><!-- capture_stdout-method -->
231
216
 
232
-
233
- </div><!-- public-instance-method-details -->
234
217
 
235
- </div><!-- 5Buntitled-5D -->
218
+ </section><!-- public-instance-method-details -->
236
219
 
220
+ </section><!-- 5Buntitled-5D -->
237
221
 
238
- </div><!-- documentation -->
222
+ </div><!-- documentation -->
239
223
 
240
- <div id="validator-badges">
241
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
242
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
243
- Rdoc Generator</a> 2</small>.</p>
244
- </div>
245
224
 
246
- </body>
247
- </html>
225
+ <footer id="validator-badges">
226
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
227
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
228
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
229
+ </footer>
248
230