ariete 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/README.md +3 -2
- data/README_jp.md +3 -2
- data/Rakefile +3 -3
- data/doc/Ariete.html +172 -190
- data/doc/CaptureStdTest.html +191 -214
- data/doc/LICENSE.html +74 -77
- data/doc/Rakefile.html +77 -80
- data/doc/created.rid +4 -4
- data/doc/images/add.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/index.html +65 -53
- data/doc/js/darkfish.js +99 -62
- data/doc/js/jquery.js +15 -29
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +119 -339
- data/doc/table_of_contents.html +69 -0
- data/lib/ariete.rb +3 -3
- metadata +41 -36
- data/doc/js/quicksearch.js +0 -114
- data/doc/js/thickbox-compressed.js +0 -10
- data/doc/lib/ariete_rb.html +0 -54
- data/doc/test/tb_capture_std_rb.html +0 -54
data/README.md
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
-
Ariete
|
1
|
+
Ariete STDOUT & STDERR Capture Module
|
2
2
|
=======================================
|
3
3
|
|
4
4
|
## Introduction
|
5
5
|
|
6
|
-
Ariete
|
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
|
data/README_jp.md
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
-
Ariete
|
1
|
+
Ariete STDOUT & STDERR Capture Module
|
2
2
|
=======================================
|
3
3
|
|
4
4
|
## イントロダクション
|
5
5
|
|
6
|
-
Ariete
|
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
|
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
|
7
|
+
s.version = "0.1.0"
|
8
8
|
s.author = "Moza USANE"
|
9
9
|
s.email = "mozamimy@quellencode.org"
|
10
|
-
s.homepage = "http://
|
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["**/**"]
|
data/doc/Ariete.html
CHANGED
@@ -1,248 +1,230 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
5
4
|
<head>
|
6
|
-
|
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
|
-
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
9
14
|
|
10
|
-
|
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
|
-
|
21
|
-
|
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&height=550&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
|
-
|
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
|
-
|
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
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
114
|
-
|
104
|
+
<div id="documentation">
|
105
|
+
<h1 class="module">module Ariete</h1>
|
115
106
|
|
116
|
-
|
117
|
-
|
118
|
-
<p><a href="Ariete.html">Ariete</a>
|
119
|
-
<
|
120
|
-
<
|
107
|
+
<div id="description" class="description">
|
108
|
+
|
109
|
+
<p><a href="Ariete.html">Ariete</a> STDOUT & 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
|
-
</
|
124
|
-
<
|
114
|
+
</dd><dt>Copyright
|
115
|
+
<dd>
|
125
116
|
<p>Copyright © 2012 Moza USANE</p>
|
126
|
-
</
|
127
|
-
<
|
117
|
+
</dd><dt>License
|
118
|
+
<dd>
|
128
119
|
<p>MIT License (see the <a href="LICENSE.html">LICENSE</a> file)</p>
|
129
|
-
</
|
120
|
+
</dd></dl>
|
130
121
|
|
131
|
-
|
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
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
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
|
-
|
152
|
-
|
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
|
-
<
|
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
|
-
<
|
168
|
-
<
|
155
|
+
<h4 id="method-i-capture_stderr-label-Args">Args</h4>
|
156
|
+
<dl class="rdoc-list note-list"><dt>&block
|
157
|
+
<dd>
|
169
158
|
<p>a block that you want to capture</p>
|
170
|
-
</
|
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
|
-
|
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
|
-
|
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
|
-
|
193
|
-
<a name="method-i-capture_stdout"></a>
|
176
|
+
|
177
|
+
</div><!-- capture_stderr-method -->
|
194
178
|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
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
|
-
|
204
|
-
|
205
|
-
|
189
|
+
<div class="method-description">
|
190
|
+
|
191
|
+
<p>Capture STDOUT’s output and return as String.</p>
|
206
192
|
|
207
|
-
<h4>Args</h4>
|
208
|
-
<
|
209
|
-
<
|
193
|
+
<h4 id="method-i-capture_stdout-label-Args">Args</h4>
|
194
|
+
<dl class="rdoc-list note-list"><dt>&block
|
195
|
+
<dd>
|
210
196
|
<p>a block that you want to capture</p>
|
211
|
-
</
|
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
|
-
|
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
|
-
|
224
|
-
|
225
|
-
</div>
|
226
|
-
|
208
|
+
</div><!-- capture_stdout-source -->
|
227
209
|
|
210
|
+
</div>
|
228
211
|
|
229
|
-
|
230
|
-
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</div><!-- capture_stdout-method -->
|
231
216
|
|
232
|
-
|
233
|
-
</div><!-- public-instance-method-details -->
|
234
217
|
|
235
|
-
</
|
218
|
+
</section><!-- public-instance-method-details -->
|
236
219
|
|
220
|
+
</section><!-- 5Buntitled-5D -->
|
237
221
|
|
238
|
-
|
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
|
-
|
247
|
-
</
|
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
|
|