syc-spector 0.0.1
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 +17 -0
- data/bin/sycspector +7 -0
- data/doc/Inspector/Console.html +256 -0
- data/doc/Inspector/Options.html +301 -0
- data/doc/Inspector/Runner.html +239 -0
- data/doc/Inspector/Separator.html +456 -0
- data/doc/Inspector.html +157 -0
- data/doc/Object.html +165 -0
- data/doc/README.html +119 -0
- data/doc/TestConsole.html +143 -0
- data/doc/TestOptions.html +246 -0
- data/doc/TestSeparator.html +270 -0
- data/doc/created.rid +11 -0
- 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 +94 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- 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 +543 -0
- data/doc/table_of_contents.html +109 -0
- data/lib/inspector/console.rb +60 -0
- data/lib/inspector/options.rb +212 -0
- data/lib/inspector/pattern.rb +11 -0
- data/lib/inspector/runner.rb +31 -0
- data/lib/inspector/separator.rb +182 -0
- data/sycspector.gemspec +18 -0
- data/test/test_console.rb +26 -0
- data/test/test_options.rb +115 -0
- data/test/test_separator.rb +118 -0
- metadata +140 -0
@@ -0,0 +1,239 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Inspector::Runner - 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 id="top" class="class">
|
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/inspector/runner.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-run">#run</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</nav>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div id="project-metadata">
|
83
|
+
<nav id="fileindex-section" class="section project-section">
|
84
|
+
<h3 class="section-header">Pages</h3>
|
85
|
+
|
86
|
+
<ul>
|
87
|
+
|
88
|
+
<li class="file"><a href="../README.html">README</a>
|
89
|
+
|
90
|
+
</ul>
|
91
|
+
</nav>
|
92
|
+
|
93
|
+
<nav id="classindex-section" class="section project-section">
|
94
|
+
<h3 class="section-header">Class and Module Index</h3>
|
95
|
+
|
96
|
+
<ul class="link-list">
|
97
|
+
|
98
|
+
<li><a href="../Inspector.html">Inspector</a>
|
99
|
+
|
100
|
+
<li><a href="../Inspector/Console.html">Inspector::Console</a>
|
101
|
+
|
102
|
+
<li><a href="../Inspector/Options.html">Inspector::Options</a>
|
103
|
+
|
104
|
+
<li><a href="../Inspector/Runner.html">Inspector::Runner</a>
|
105
|
+
|
106
|
+
<li><a href="../Inspector/Separator.html">Inspector::Separator</a>
|
107
|
+
|
108
|
+
<li><a href="../Object.html">Object</a>
|
109
|
+
|
110
|
+
<li><a href="../TestConsole.html">TestConsole</a>
|
111
|
+
|
112
|
+
<li><a href="../TestOptions.html">TestOptions</a>
|
113
|
+
|
114
|
+
<li><a href="../TestSeparator.html">TestSeparator</a>
|
115
|
+
|
116
|
+
</ul>
|
117
|
+
</nav>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
</nav>
|
121
|
+
|
122
|
+
<div id="documentation">
|
123
|
+
<h1 class="class">class Inspector::Runner</h1>
|
124
|
+
|
125
|
+
<div id="description" class="description">
|
126
|
+
|
127
|
+
<p>Processes based on the provided command line arguments the scan of the file
|
128
|
+
or shows the last processed files.</p>
|
129
|
+
|
130
|
+
</div><!-- description -->
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<!-- Methods -->
|
145
|
+
|
146
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
147
|
+
<h3 class="section-header">Public Class Methods</h3>
|
148
|
+
|
149
|
+
|
150
|
+
<div id="method-c-new" class="method-detail ">
|
151
|
+
|
152
|
+
<div class="method-heading">
|
153
|
+
<span class="method-name">new</span><span
|
154
|
+
class="method-args">(argv)</span>
|
155
|
+
<span class="method-click-advice">click to toggle source</span>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
|
159
|
+
<div class="method-description">
|
160
|
+
|
161
|
+
<p>Initializes runner and invokes <a href="Options.html">Options</a> with the
|
162
|
+
command line arguments provided</p>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
<div class="method-source-code" id="new-source">
|
167
|
+
<pre><span class="ruby-comment"># File lib/inspector/runner.rb, line 12</span>
|
168
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">argv</span>)
|
169
|
+
<span class="ruby-ivar">@options</span> = <span class="ruby-constant">Options</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">argv</span>)
|
170
|
+
<span class="ruby-keyword">end</span></pre>
|
171
|
+
</div><!-- new-source -->
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</div><!-- new-method -->
|
179
|
+
|
180
|
+
|
181
|
+
</section><!-- public-class-method-details -->
|
182
|
+
|
183
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
184
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
185
|
+
|
186
|
+
|
187
|
+
<div id="method-i-run" class="method-detail ">
|
188
|
+
|
189
|
+
<div class="method-heading">
|
190
|
+
<span class="method-name">run</span><span
|
191
|
+
class="method-args">()</span>
|
192
|
+
<span class="method-click-advice">click to toggle source</span>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
<div class="method-description">
|
197
|
+
|
198
|
+
<p>Runs the <a href="Separator.html">Separator</a> or shows the requested
|
199
|
+
valid or invalid file. To show the file ‘less’ is used.</p>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
<div class="method-source-code" id="run-source">
|
204
|
+
<pre><span class="ruby-comment"># File lib/inspector/runner.rb, line 18</span>
|
205
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">run</span>
|
206
|
+
<span class="ruby-identifier">opts</span> = <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">options</span>
|
207
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:infile</span>]
|
208
|
+
<span class="ruby-identifier">separator</span> = <span class="ruby-constant">Separator</span>.<span class="ruby-identifier">new</span>
|
209
|
+
<span class="ruby-identifier">separator</span>.<span class="ruby-identifier">process</span>(<span class="ruby-identifier">opts</span>)
|
210
|
+
<span class="ruby-identifier">separator</span>.<span class="ruby-identifier">print_statistics</span>(<span class="ruby-identifier">opts</span>)
|
211
|
+
<span class="ruby-ivar">@options</span>.<span class="ruby-identifier">save_result_files</span> <span class="ruby-identifier">opts</span>
|
212
|
+
<span class="ruby-keyword">end</span>
|
213
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">show</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:show</span>]
|
214
|
+
<span class="ruby-identifier">system</span> <span class="ruby-node">"less #{@options.get_file_from_history show}"</span>
|
215
|
+
<span class="ruby-keyword">end</span>
|
216
|
+
<span class="ruby-keyword">end</span></pre>
|
217
|
+
</div><!-- run-source -->
|
218
|
+
|
219
|
+
</div>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</div><!-- run-method -->
|
225
|
+
|
226
|
+
|
227
|
+
</section><!-- public-instance-method-details -->
|
228
|
+
|
229
|
+
</section><!-- 5Buntitled-5D -->
|
230
|
+
|
231
|
+
</div><!-- documentation -->
|
232
|
+
|
233
|
+
|
234
|
+
<footer id="validator-badges">
|
235
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
236
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
237
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
238
|
+
</footer>
|
239
|
+
|