ariete 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rspec +2 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +31 -0
- data/{LICENSE → LICENSE.txt} +1 -1
- data/README.md +56 -55
- data/Rakefile +4 -16
- data/ariete.gemspec +23 -0
- data/lib/ariete.rb +6 -26
- data/lib/ariete/version.rb +3 -0
- data/spec/ariete_spec.rb +37 -0
- data/spec/spec_helper.rb +2 -0
- metadata +70 -80
- data/CHANGELOG.md +0 -7
- data/CHANGELOG_jp.md +0 -7
- data/README_jp.md +0 -74
- data/doc/Ariete.html +0 -230
- data/doc/CaptureStdTest.html +0 -254
- data/doc/LICENSE.html +0 -105
- data/doc/Rakefile.html +0 -106
- data/doc/created.rid +0 -5
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -82
- data/doc/js/darkfish.js +0 -153
- data/doc/js/jquery.js +0 -18
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -94
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/rdoc.css +0 -543
- data/doc/table_of_contents.html +0 -69
- data/test/tb_capture_std.rb +0 -24
data/doc/table_of_contents.html
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>Table of Contents - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "./";
|
13
|
-
</script>
|
14
|
-
|
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>
|
21
|
-
|
22
|
-
|
23
|
-
<body class="indexpage">
|
24
|
-
<h1>Table of Contents - RDoc Documentation</h1>
|
25
|
-
|
26
|
-
<h2>Pages</h2>
|
27
|
-
<ul>
|
28
|
-
<li class="file">
|
29
|
-
<a href="LICENSE.html">LICENSE</a>
|
30
|
-
</li>
|
31
|
-
<li class="file">
|
32
|
-
<a href="Rakefile.html">Rakefile</a>
|
33
|
-
</li>
|
34
|
-
|
35
|
-
</ul>
|
36
|
-
|
37
|
-
<h2 id="classes">Classes/Modules</h2>
|
38
|
-
<ul>
|
39
|
-
<li class="module">
|
40
|
-
<a href="Ariete.html">Ariete</a>
|
41
|
-
</li>
|
42
|
-
<li class="class">
|
43
|
-
<a href="CaptureStdTest.html">CaptureStdTest</a>
|
44
|
-
</li>
|
45
|
-
|
46
|
-
</ul>
|
47
|
-
|
48
|
-
<h2 id="methods">Methods</h2>
|
49
|
-
<ul>
|
50
|
-
|
51
|
-
<li class="method"><a href="Ariete.html#method-i-capture_stderr">#capture_stderr — Ariete</a>
|
52
|
-
|
53
|
-
<li class="method"><a href="Ariete.html#method-i-capture_stdout">#capture_stdout — Ariete</a>
|
54
|
-
|
55
|
-
<li class="method"><a href="CaptureStdTest.html#method-i-output">#output — CaptureStdTest</a>
|
56
|
-
|
57
|
-
<li class="method"><a href="CaptureStdTest.html#method-i-test_stderr">#test_stderr — CaptureStdTest</a>
|
58
|
-
|
59
|
-
<li class="method"><a href="CaptureStdTest.html#method-i-test_stdout">#test_stdout — CaptureStdTest</a>
|
60
|
-
|
61
|
-
</ul>
|
62
|
-
|
63
|
-
|
64
|
-
<footer id="validator-badges">
|
65
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
66
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
67
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
68
|
-
</footer>
|
69
|
-
|
data/test/tb_capture_std.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# encoding: utf-8
|
3
|
-
|
4
|
-
require "test/unit"
|
5
|
-
require_relative "../lib/ariete"
|
6
|
-
|
7
|
-
class CaptureStdTest < Test::Unit::TestCase
|
8
|
-
include Ariete
|
9
|
-
|
10
|
-
def test_stdout
|
11
|
-
result = capture_stdout {output("Ariete")}
|
12
|
-
assert_equal("Ariete is a kind of rabbit.\n", result)
|
13
|
-
end
|
14
|
-
|
15
|
-
def test_stderr
|
16
|
-
result = capture_stderr {output("Ariete")}
|
17
|
-
assert_equal("Ariete means 'Lop' in Italian\n", result)
|
18
|
-
end
|
19
|
-
|
20
|
-
def output(str)
|
21
|
-
puts "#{str} is a kind of rabbit."
|
22
|
-
warn "#{str} means 'Lop' in Italian"
|
23
|
-
end
|
24
|
-
end
|