ariete 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +31 -0
  7. data/{LICENSE → LICENSE.txt} +1 -1
  8. data/README.md +56 -55
  9. data/Rakefile +4 -16
  10. data/ariete.gemspec +23 -0
  11. data/lib/ariete.rb +6 -26
  12. data/lib/ariete/version.rb +3 -0
  13. data/spec/ariete_spec.rb +37 -0
  14. data/spec/spec_helper.rb +2 -0
  15. metadata +70 -80
  16. data/CHANGELOG.md +0 -7
  17. data/CHANGELOG_jp.md +0 -7
  18. data/README_jp.md +0 -74
  19. data/doc/Ariete.html +0 -230
  20. data/doc/CaptureStdTest.html +0 -254
  21. data/doc/LICENSE.html +0 -105
  22. data/doc/Rakefile.html +0 -106
  23. data/doc/created.rid +0 -5
  24. data/doc/images/add.png +0 -0
  25. data/doc/images/brick.png +0 -0
  26. data/doc/images/brick_link.png +0 -0
  27. data/doc/images/bug.png +0 -0
  28. data/doc/images/bullet_black.png +0 -0
  29. data/doc/images/bullet_toggle_minus.png +0 -0
  30. data/doc/images/bullet_toggle_plus.png +0 -0
  31. data/doc/images/date.png +0 -0
  32. data/doc/images/delete.png +0 -0
  33. data/doc/images/find.png +0 -0
  34. data/doc/images/loadingAnimation.gif +0 -0
  35. data/doc/images/macFFBgHack.png +0 -0
  36. data/doc/images/package.png +0 -0
  37. data/doc/images/page_green.png +0 -0
  38. data/doc/images/page_white_text.png +0 -0
  39. data/doc/images/page_white_width.png +0 -0
  40. data/doc/images/plugin.png +0 -0
  41. data/doc/images/ruby.png +0 -0
  42. data/doc/images/tag_blue.png +0 -0
  43. data/doc/images/tag_green.png +0 -0
  44. data/doc/images/transparent.png +0 -0
  45. data/doc/images/wrench.png +0 -0
  46. data/doc/images/wrench_orange.png +0 -0
  47. data/doc/images/zoom.png +0 -0
  48. data/doc/index.html +0 -82
  49. data/doc/js/darkfish.js +0 -153
  50. data/doc/js/jquery.js +0 -18
  51. data/doc/js/navigation.js +0 -142
  52. data/doc/js/search.js +0 -94
  53. data/doc/js/search_index.js +0 -1
  54. data/doc/js/searcher.js +0 -228
  55. data/doc/rdoc.css +0 -543
  56. data/doc/table_of_contents.html +0 -69
  57. data/test/tb_capture_std.rb +0 -24
@@ -1,105 +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>LICENSE - 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="file">
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="project-metadata">
47
- <nav id="fileindex-section" class="section project-section">
48
- <h3 class="section-header">Pages</h3>
49
-
50
- <ul>
51
-
52
- <li class="file"><a href="./LICENSE.html">LICENSE</a>
53
-
54
- <li class="file"><a href="./Rakefile.html">Rakefile</a>
55
-
56
- </ul>
57
- </nav>
58
-
59
- <nav id="classindex-section" class="section project-section">
60
- <h3 class="section-header">Class and Module Index</h3>
61
-
62
- <ul class="link-list">
63
-
64
- <li><a href="./Ariete.html">Ariete</a>
65
-
66
- <li><a href="./CaptureStdTest.html">CaptureStdTest</a>
67
-
68
- </ul>
69
- </nav>
70
-
71
- </div>
72
- </nav>
73
-
74
- <div id="documentation" class="description">
75
-
76
- <p>Copyright © 2012 Moza USANE</p>
77
-
78
- <p>Permission is hereby granted, free of charge, to any person obtaining a
79
- copy of this software and associated documentation files (the “Software”),
80
- to deal in the Software without restriction, including without limitation
81
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
82
- and/or sell copies of the Software, and to permit persons to whom the
83
- Software is furnished to do so, subject to the following conditions:</p>
84
-
85
- <p>The above copyright notice and this permission notice shall be included in
86
- all copies or substantial portions of the Software.</p>
87
-
88
- <p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
89
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
90
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
91
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
92
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
94
- DEALINGS IN THE SOFTWARE.</p>
95
-
96
- </div>
97
-
98
-
99
-
100
- <footer id="validator-badges">
101
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
102
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
103
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
104
- </footer>
105
-
@@ -1,106 +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>Rakefile - 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="file">
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="project-metadata">
47
- <nav id="fileindex-section" class="section project-section">
48
- <h3 class="section-header">Pages</h3>
49
-
50
- <ul>
51
-
52
- <li class="file"><a href="./LICENSE.html">LICENSE</a>
53
-
54
- <li class="file"><a href="./Rakefile.html">Rakefile</a>
55
-
56
- </ul>
57
- </nav>
58
-
59
- <nav id="classindex-section" class="section project-section">
60
- <h3 class="section-header">Class and Module Index</h3>
61
-
62
- <ul class="link-list">
63
-
64
- <li><a href="./Ariete.html">Ariete</a>
65
-
66
- <li><a href="./CaptureStdTest.html">CaptureStdTest</a>
67
-
68
- </ul>
69
- </nav>
70
-
71
- </div>
72
- </nav>
73
-
74
- <div id="documentation" class="description">
75
-
76
- <p>require “rake/gempackagetask”</p>
77
-
78
- <p>spec = Gem::Specification.new do |s|</p>
79
-
80
- <pre>s.name = &quot;ariete&quot;
81
- s.summary = &quot;Ariete STDOUT &amp; STDERR Capture Module.&quot;
82
- s.description = File.read(File.join(File.dirname(__FILE__), &quot;README.md&quot;))
83
- s.version = &quot;0.1.0&quot;
84
- s.author = &quot;Moza USANE&quot;
85
- s.email = &quot;mozamimy@quellencode.org&quot;
86
- s.homepage = &quot;http://quellencode.org/&quot;
87
- s.platform = Gem::Platform::RUBY
88
- s.required_ruby_version = &quot;&gt;=1.9&quot;
89
- s.files = Dir[&quot;**/**&quot;]
90
- s.test_files = Dir[&quot;test/test*.rb&quot;]
91
- s.has_rdoc = true</pre>
92
-
93
- <p>end</p>
94
-
95
- <p>Rake::GemPackageTask.new(spec).define</p>
96
-
97
- </div>
98
-
99
-
100
-
101
- <footer id="validator-badges">
102
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
103
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
104
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
105
- </footer>
106
-
@@ -1,5 +0,0 @@
1
- Wed, 12 Dec 2012 11:42:50 +0900
2
- ./Rakefile Wed, 12 Dec 2012 11:42:37 +0900
3
- ./test/tb_capture_std.rb Mon, 10 Dec 2012 14:55:07 +0900
4
- ./lib/ariete.rb Wed, 12 Dec 2012 11:41:01 +0900
5
- ./LICENSE Tue, 13 Nov 2012 09:41:23 +0900
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,82 +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>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>
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="project-metadata">
47
- <nav id="fileindex-section" class="section project-section">
48
- <h3 class="section-header">Pages</h3>
49
-
50
- <ul>
51
-
52
- <li class="file"><a href="./LICENSE.html">LICENSE</a>
53
-
54
- <li class="file"><a href="./Rakefile.html">Rakefile</a>
55
-
56
- </ul>
57
- </nav>
58
-
59
- <nav id="classindex-section" class="section project-section">
60
- <h3 class="section-header">Class and Module Index</h3>
61
-
62
- <ul class="link-list">
63
-
64
- <li><a href="./Ariete.html">Ariete</a>
65
-
66
- <li><a href="./CaptureStdTest.html">CaptureStdTest</a>
67
-
68
- </ul>
69
- </nav>
70
-
71
- </div>
72
- </nav>
73
-
74
- <p>This is the API documentation for RDoc Documentation.
75
-
76
-
77
- <footer id="validator-badges">
78
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
79
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
80
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
81
- </footer>
82
-
@@ -1,153 +0,0 @@
1
- /**
2
- *
3
- * Darkfish Page Functions
4
- * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
5
- *
6
- * Author: Michael Granger <mgranger@laika.com>
7
- *
8
- */
9
-
10
- /* Provide console simulation for firebug-less environments */
11
- if (!("console" in window) || !("firebug" in console)) {
12
- var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
13
- "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
14
-
15
- window.console = {};
16
- for (var i = 0; i < names.length; ++i)
17
- window.console[names[i]] = function() {};
18
- };
19
-
20
-
21
- /**
22
- * Unwrap the first element that matches the given @expr@ from the targets and return them.
23
- */
24
- $.fn.unwrap = function( expr ) {
25
- return this.each( function() {
26
- $(this).parents( expr ).eq( 0 ).after( this ).remove();
27
- });
28
- };
29
-
30
-
31
- function showSource( e ) {
32
- var target = e.target;
33
- var codeSections = $(target).
34
- parents('.method-detail').
35
- find('.method-source-code');
36
-
37
- $(target).
38
- parents('.method-detail').
39
- find('.method-source-code').
40
- slideToggle();
41
- };
42
-
43
- function hookSourceViews() {
44
- $('.method-heading').click( showSource );
45
- };
46
-
47
- function toggleDebuggingSection() {
48
- $('.debugging-section').slideToggle();
49
- };
50
-
51
- function hookDebuggingToggle() {
52
- $('#debugging-toggle img').click( toggleDebuggingSection );
53
- };
54
-
55
- function hookTableOfContentsToggle() {
56
- $('.indexpage li .toc-toggle').each( function() {
57
- $(this).click( function() {
58
- $(this).toggleClass('open');
59
- });
60
-
61
- var section = $(this).next();
62
-
63
- $(this).click( function() {
64
- section.slideToggle();
65
- });
66
- });
67
- }
68
-
69
- function hookSearch() {
70
- var input = $('#search-field').eq(0);
71
- var result = $('#search-results').eq(0);
72
- $(result).show();
73
-
74
- var search_section = $('#search-section').get(0);
75
- $(search_section).show();
76
-
77
- var search = new Search(search_data, input, result);
78
-
79
- search.renderItem = function(result) {
80
- var li = document.createElement('li');
81
- var html = '';
82
-
83
- // TODO add relative path to <script> per-page
84
- html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
85
- if (result.params)
86
- html += '<span class="params">' + result.params + '</span>';
87
- html += '</a>';
88
-
89
-
90
- if (result.namespace)
91
- html += '<p class="search-namespace">' + this.hlt(result.namespace);
92
-
93
- if (result.snippet)
94
- html += '<div class="search-snippet">' + result.snippet + '</div>';
95
-
96
- li.innerHTML = html;
97
-
98
- return li;
99
- }
100
-
101
- search.select = function(result) {
102
- var result_element = result.get(0);
103
- window.location.href = result_element.firstChild.firstChild.href;
104
- }
105
-
106
- search.scrollIntoView = search.scrollInWindow;
107
- };
108
-
109
- function highlightTarget( anchor ) {
110
- console.debug( "Highlighting target '%s'.", anchor );
111
-
112
- $("a[name=" + anchor + "]").each( function() {
113
- if ( !$(this).parent().parent().hasClass('target-section') ) {
114
- console.debug( "Wrapping the target-section" );
115
- $('div.method-detail').unwrap( 'div.target-section' );
116
- $(this).parent().wrap( '<div class="target-section"></div>' );
117
- } else {
118
- console.debug( "Already wrapped." );
119
- }
120
- });
121
- };
122
-
123
- function highlightLocationTarget() {
124
- console.debug( "Location hash: %s", window.location.hash );
125
- if ( ! window.location.hash || window.location.hash.length == 0 ) return;
126
-
127
- var anchor = window.location.hash.substring(1);
128
- console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
129
-
130
- highlightTarget( anchor );
131
- };
132
-
133
- function highlightClickTarget( event ) {
134
- console.debug( "Highlighting click target for event %o", event.target );
135
- try {
136
- var anchor = $(event.target).attr( 'href' ).substring(1);
137
- console.debug( "Found target anchor: %s", anchor );
138
- highlightTarget( anchor );
139
- } catch ( err ) {
140
- console.error( "Exception while highlighting: %o", err );
141
- };
142
- };
143
-
144
-
145
- $(document).ready( function() {
146
- hookSourceViews();
147
- hookDebuggingToggle();
148
- hookSearch();
149
- highlightLocationTarget();
150
- hookTableOfContentsToggle();
151
-
152
- $('ul.link-list a').bind( "click", highlightClickTarget );
153
- });