bauxite 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/Rakefile +69 -0
  4. data/bin/bauxite +27 -0
  5. data/doc/Bauxite/Action.html +1463 -0
  6. data/doc/Bauxite/ActionModule.html +342 -0
  7. data/doc/Bauxite/Context.html +1439 -0
  8. data/doc/Bauxite/Errors/AssertionError.html +107 -0
  9. data/doc/Bauxite/Errors/FileNotFoundError.html +107 -0
  10. data/doc/Bauxite/Errors.html +100 -0
  11. data/doc/Bauxite/Loggers/CompositeLogger.html +325 -0
  12. data/doc/Bauxite/Loggers/EchoLogger.html +164 -0
  13. data/doc/Bauxite/Loggers/FileLogger.html +215 -0
  14. data/doc/Bauxite/Loggers/NullLogger.html +334 -0
  15. data/doc/Bauxite/Loggers/TerminalLogger.html +586 -0
  16. data/doc/Bauxite/Loggers/XtermLogger.html +287 -0
  17. data/doc/Bauxite/Loggers.html +103 -0
  18. data/doc/Bauxite/Selector.html +422 -0
  19. data/doc/Bauxite/SelectorModule.html +283 -0
  20. data/doc/Bauxite.html +98 -0
  21. data/doc/created.rid +37 -0
  22. data/doc/fonts/Lato-Light.ttf +0 -0
  23. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  24. data/doc/fonts/Lato-Regular.ttf +0 -0
  25. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  26. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  27. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  28. data/doc/fonts.css +167 -0
  29. data/doc/images/add.png +0 -0
  30. data/doc/images/arrow_up.png +0 -0
  31. data/doc/images/brick.png +0 -0
  32. data/doc/images/brick_link.png +0 -0
  33. data/doc/images/bug.png +0 -0
  34. data/doc/images/bullet_black.png +0 -0
  35. data/doc/images/bullet_toggle_minus.png +0 -0
  36. data/doc/images/bullet_toggle_plus.png +0 -0
  37. data/doc/images/date.png +0 -0
  38. data/doc/images/delete.png +0 -0
  39. data/doc/images/find.png +0 -0
  40. data/doc/images/loadingAnimation.gif +0 -0
  41. data/doc/images/macFFBgHack.png +0 -0
  42. data/doc/images/package.png +0 -0
  43. data/doc/images/page_green.png +0 -0
  44. data/doc/images/page_white_text.png +0 -0
  45. data/doc/images/page_white_width.png +0 -0
  46. data/doc/images/plugin.png +0 -0
  47. data/doc/images/ruby.png +0 -0
  48. data/doc/images/tag_blue.png +0 -0
  49. data/doc/images/tag_green.png +0 -0
  50. data/doc/images/transparent.png +0 -0
  51. data/doc/images/wrench.png +0 -0
  52. data/doc/images/wrench_orange.png +0 -0
  53. data/doc/images/zoom.png +0 -0
  54. data/doc/index.html +111 -0
  55. data/doc/js/darkfish.js +140 -0
  56. data/doc/js/jquery.js +18 -0
  57. data/doc/js/navigation.js +142 -0
  58. data/doc/js/search.js +109 -0
  59. data/doc/js/search_index.js +1 -0
  60. data/doc/js/searcher.js +228 -0
  61. data/doc/rdoc.css +580 -0
  62. data/doc/table_of_contents.html +510 -0
  63. data/lib/bauxite/actions/alias.rb +51 -0
  64. data/lib/bauxite/actions/assert.rb +49 -0
  65. data/lib/bauxite/actions/assertv.rb +40 -0
  66. data/lib/bauxite/actions/break.rb +39 -0
  67. data/lib/bauxite/actions/click.rb +35 -0
  68. data/lib/bauxite/actions/debug.rb +99 -0
  69. data/lib/bauxite/actions/echo.rb +36 -0
  70. data/lib/bauxite/actions/exec.rb +46 -0
  71. data/lib/bauxite/actions/js.rb +41 -0
  72. data/lib/bauxite/actions/load.rb +49 -0
  73. data/lib/bauxite/actions/open.rb +34 -0
  74. data/lib/bauxite/actions/params.rb +40 -0
  75. data/lib/bauxite/actions/replace.rb +37 -0
  76. data/lib/bauxite/actions/reset.rb +37 -0
  77. data/lib/bauxite/actions/return.rb +62 -0
  78. data/lib/bauxite/actions/ruby.rb +58 -0
  79. data/lib/bauxite/actions/set.rb +39 -0
  80. data/lib/bauxite/actions/source.rb +44 -0
  81. data/lib/bauxite/actions/store.rb +38 -0
  82. data/lib/bauxite/actions/test.rb +61 -0
  83. data/lib/bauxite/actions/tryload.rb +79 -0
  84. data/lib/bauxite/actions/wait.rb +38 -0
  85. data/lib/bauxite/actions/write.rb +40 -0
  86. data/lib/bauxite/application.rb +150 -0
  87. data/lib/bauxite/core/Action.rb +205 -0
  88. data/lib/bauxite/core/Context.rb +575 -0
  89. data/lib/bauxite/core/Errors.rb +36 -0
  90. data/lib/bauxite/core/Logger.rb +86 -0
  91. data/lib/bauxite/core/Selector.rb +156 -0
  92. data/lib/bauxite/loggers/composite.rb +70 -0
  93. data/lib/bauxite/loggers/echo.rb +36 -0
  94. data/lib/bauxite/loggers/file.rb +45 -0
  95. data/lib/bauxite/loggers/terminal.rb +130 -0
  96. data/lib/bauxite/loggers/xterm.rb +79 -0
  97. data/lib/bauxite/selectors/attr.rb +39 -0
  98. data/lib/bauxite/selectors/default.rb +38 -0
  99. data/lib/bauxite/selectors/frame.rb +60 -0
  100. data/lib/bauxite.rb +29 -0
  101. data/test/alias.bxt +6 -0
  102. data/test/assertv.bxt +2 -0
  103. data/test/delay/page.html +5 -0
  104. data/test/delay.bxt +2 -0
  105. data/test/exec.bxt +6 -0
  106. data/test/format/page.html +7 -0
  107. data/test/format.bxt +17 -0
  108. data/test/frame/child_frame.html +7 -0
  109. data/test/frame/grandchild_frame.html +5 -0
  110. data/test/frame/page.html +5 -0
  111. data/test/frame.bxt +6 -0
  112. data/test/js.bxt +5 -0
  113. data/test/load/child.bxt +13 -0
  114. data/test/load.bxt +17 -0
  115. data/test/ruby/custom.rb +5 -0
  116. data/test/ruby.bxt +2 -0
  117. data/test/selectors/page.html +7 -0
  118. data/test/selectors.bxt +7 -0
  119. data/test/stdin.bxt +1 -0
  120. data/test/test/test1.bxt +2 -0
  121. data/test/test/test2.bxt +3 -0
  122. data/test/test/test3.bxt +2 -0
  123. data/test/test.bxt.manual +4 -0
  124. metadata +194 -0
@@ -0,0 +1,334 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Bauxite::Loggers::NullLogger - RDoc Documentation</title>
8
+
9
+ <link href="../../fonts.css" rel="stylesheet">
10
+ <link href="../../rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "../../";
14
+ </script>
15
+
16
+ <script src="../../js/jquery.js"></script>
17
+ <script src="../../js/navigation.js"></script>
18
+ <script src="../../js/search_index.js"></script>
19
+ <script src="../../js/search.js"></script>
20
+ <script src="../../js/searcher.js"></script>
21
+ <script src="../../js/darkfish.js"></script>
22
+
23
+
24
+ <body id="top" role="document" class="class">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../../table_of_contents.html#pages">Pages</a>
34
+ <a href="../../table_of_contents.html#classes">Classes</a>
35
+ <a href="../../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+ <div id="parent-class-section" class="nav-section">
61
+ <h3>Parent</h3>
62
+
63
+
64
+ <p class="link">Object
65
+
66
+ </div>
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <div id="method-list-section" class="nav-section">
72
+ <h3>Methods</h3>
73
+
74
+ <ul class="link-list" role="directory">
75
+
76
+ <li ><a href="#method-c-new">::new</a>
77
+
78
+ <li ><a href="#method-i-debug_prompt">#debug_prompt</a>
79
+
80
+ <li ><a href="#method-i-log">#log</a>
81
+
82
+ <li ><a href="#method-i-log_cmd">#log_cmd</a>
83
+
84
+ <li ><a href="#method-i-progress">#progress</a>
85
+
86
+ </ul>
87
+ </div>
88
+
89
+ </div>
90
+ </nav>
91
+
92
+ <main role="main" aria-labelledby="class-Bauxite::Loggers::NullLogger">
93
+ <h1 id="class-Bauxite::Loggers::NullLogger" class="class">
94
+ class Bauxite::Loggers::NullLogger
95
+ </h1>
96
+
97
+ <section class="description">
98
+
99
+ <p>Test logger class.</p>
100
+
101
+ <p>Test loggers handle test output format.</p>
102
+
103
+ <p>The default logger does not provide any output logging.</p>
104
+
105
+ <p>This default behavior can be overriden in a custom logger passed to the <a
106
+ href="../Context.html">Context</a> constructor (see <a
107
+ href="../Context.html#method-c-new">Bauxite::Context.new</a>). By
108
+ convention, custom loggers are defined in the &#39;loggers/&#39; directory.</p>
109
+
110
+ </section>
111
+
112
+
113
+
114
+
115
+ <section id="5Buntitled-5D" class="documentation-section">
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
126
+ <header>
127
+ <h3>Public Class Methods</h3>
128
+ </header>
129
+
130
+
131
+ <div id="method-c-new" class="method-detail ">
132
+
133
+ <div class="method-heading">
134
+ <span class="method-name">new</span><span
135
+ class="method-args">(options)</span>
136
+
137
+ <span class="method-click-advice">click to toggle source</span>
138
+
139
+ </div>
140
+
141
+
142
+ <div class="method-description">
143
+
144
+ <p>Constructs a new null logger instance.</p>
145
+
146
+
147
+
148
+
149
+ <div class="method-source-code" id="new-source">
150
+ <pre><span class="ruby-comment"># File lib/bauxite/core/Logger.rb, line 44</span>
151
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>)
152
+ <span class="ruby-ivar">@options</span> = <span class="ruby-identifier">options</span>
153
+ <span class="ruby-keyword">end</span></pre>
154
+ </div>
155
+
156
+ </div>
157
+
158
+
159
+
160
+
161
+ </div>
162
+
163
+
164
+ </section>
165
+
166
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
167
+ <header>
168
+ <h3>Public Instance Methods</h3>
169
+ </header>
170
+
171
+
172
+ <div id="method-i-debug_prompt" class="method-detail ">
173
+
174
+ <div class="method-heading">
175
+ <span class="method-name">debug_prompt</span><span
176
+ class="method-args">()</span>
177
+
178
+ <span class="method-click-advice">click to toggle source</span>
179
+
180
+ </div>
181
+
182
+
183
+ <div class="method-description">
184
+
185
+ <p>Returns the prompt shown by the debug console (see <a
186
+ href="../Context.html#method-i-debug">Bauxite::Context#debug</a>).</p>
187
+
188
+ <p>For example:</p>
189
+
190
+ <pre class="ruby"><span class="ruby-identifier">log</span>.<span class="ruby-identifier">debug_prompt</span>
191
+ <span class="ruby-comment"># =&gt; returns the debug prompt</span>
192
+ </pre>
193
+
194
+
195
+
196
+
197
+ <div class="method-source-code" id="debug_prompt-source">
198
+ <pre><span class="ruby-comment"># File lib/bauxite/core/Logger.rb, line 68</span>
199
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">debug_prompt</span>
200
+ <span class="ruby-string">&#39;debug&gt; &#39;</span>
201
+ <span class="ruby-keyword">end</span></pre>
202
+ </div>
203
+
204
+ </div>
205
+
206
+
207
+
208
+
209
+ </div>
210
+
211
+
212
+ <div id="method-i-log" class="method-detail ">
213
+
214
+ <div class="method-heading">
215
+ <span class="method-name">log</span><span
216
+ class="method-args">(s, type = :info)</span>
217
+
218
+ <span class="method-click-advice">click to toggle source</span>
219
+
220
+ </div>
221
+
222
+
223
+ <div class="method-description">
224
+
225
+ <p>Logs the specified string.</p>
226
+
227
+ <p><code>type</code>, if specified, should be one of <code>:error</code>,
228
+ <code>:warning</code>, <code>:info</code> (default), <code>:debug</code>.</p>
229
+
230
+
231
+
232
+
233
+ <div class="method-source-code" id="log-source">
234
+ <pre><span class="ruby-comment"># File lib/bauxite/core/Logger.rb, line 81</span>
235
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">s</span>, <span class="ruby-identifier">type</span> = <span class="ruby-value">:info</span>)
236
+ <span class="ruby-identifier">print</span> <span class="ruby-identifier">s</span>
237
+ <span class="ruby-keyword">end</span></pre>
238
+ </div>
239
+
240
+ </div>
241
+
242
+
243
+
244
+
245
+ </div>
246
+
247
+
248
+ <div id="method-i-log_cmd" class="method-detail ">
249
+
250
+ <div class="method-heading">
251
+ <span class="method-name">log_cmd</span><span
252
+ class="method-args">(action) { || ... }</span>
253
+
254
+ <span class="method-click-advice">click to toggle source</span>
255
+
256
+ </div>
257
+
258
+
259
+ <div class="method-description">
260
+
261
+ <p>Executes the given block in a logging context.</p>
262
+
263
+ <p>This default implementation does not provide any logging capabilities.</p>
264
+
265
+ <p>For example:</p>
266
+
267
+ <pre class="ruby"><span class="ruby-identifier">log</span>.<span class="ruby-identifier">log_cmd</span>(<span class="ruby-string">&#39;echo&#39;</span>, <span class="ruby-string">&#39;Hello World!&#39;</span>) <span class="ruby-keyword">do</span>
268
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">&#39;Hello World!&#39;</span>
269
+ <span class="ruby-keyword">end</span>
270
+ <span class="ruby-comment"># =&gt; echoes &#39;Hello World!&#39;</span>
271
+ </pre>
272
+
273
+
274
+
275
+
276
+ <div class="method-source-code" id="log_cmd-source">
277
+ <pre><span class="ruby-comment"># File lib/bauxite/core/Logger.rb, line 59</span>
278
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">log_cmd</span>(<span class="ruby-identifier">action</span>)
279
+ <span class="ruby-keyword">yield</span>
280
+ <span class="ruby-keyword">end</span></pre>
281
+ </div>
282
+
283
+ </div>
284
+
285
+
286
+
287
+
288
+ </div>
289
+
290
+
291
+ <div id="method-i-progress" class="method-detail ">
292
+
293
+ <div class="method-heading">
294
+ <span class="method-name">progress</span><span
295
+ class="method-args">(value)</span>
296
+
297
+ <span class="method-click-advice">click to toggle source</span>
298
+
299
+ </div>
300
+
301
+
302
+ <div class="method-description">
303
+
304
+ <p>Updates the progress of the current action.</p>
305
+
306
+
307
+
308
+
309
+ <div class="method-source-code" id="progress-source">
310
+ <pre><span class="ruby-comment"># File lib/bauxite/core/Logger.rb, line 73</span>
311
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">progress</span>(<span class="ruby-identifier">value</span>)
312
+ <span class="ruby-keyword">end</span></pre>
313
+ </div>
314
+
315
+ </div>
316
+
317
+
318
+
319
+
320
+ </div>
321
+
322
+
323
+ </section>
324
+
325
+ </section>
326
+ </main>
327
+
328
+
329
+ <footer id="validator-badges" role="contentinfo">
330
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
331
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
332
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
333
+ </footer>
334
+