bauxite 0.6.18 → 0.6.19
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.
- checksums.yaml +4 -4
- data/LICENSE +21 -21
- data/README.md +293 -293
- data/Rakefile +128 -128
- data/bin/bauxite +27 -27
- data/doc/Bauxite.html +6 -9
- data/doc/Bauxite/Action.html +298 -315
- data/doc/Bauxite/ActionModule.html +23 -26
- data/doc/Bauxite/Application.html +36 -38
- data/doc/Bauxite/Context.html +303 -303
- data/doc/Bauxite/Errors.html +6 -9
- data/doc/Bauxite/Errors/AssertionError.html +6 -9
- data/doc/Bauxite/Errors/FileNotFoundError.html +6 -9
- data/doc/Bauxite/Errors/FormatError.html +6 -9
- data/doc/Bauxite/Loggers.html +6 -9
- data/doc/Bauxite/Loggers/CompositeLogger.html +29 -32
- data/doc/Bauxite/Loggers/EchoLogger.html +10 -13
- data/doc/Bauxite/Loggers/FileLogger.html +25 -28
- data/doc/Bauxite/Loggers/HtmlLogger.html +99 -102
- data/doc/Bauxite/Loggers/NullLogger.html +16 -19
- data/doc/Bauxite/Loggers/ReportLogger.html +43 -46
- data/doc/Bauxite/Loggers/TerminalLogger.html +76 -79
- data/doc/Bauxite/Loggers/XtermLogger.html +28 -31
- data/doc/Bauxite/Parser.html +87 -89
- data/doc/Bauxite/ParserModule.html +19 -22
- data/doc/Bauxite/Selector.html +99 -105
- data/doc/Bauxite/SelectorModule.html +27 -30
- data/doc/README_md.html +117 -103
- data/doc/created.rid +58 -58
- data/doc/fonts.css +167 -167
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.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 +117 -103
- data/doc/js/darkfish.js +32 -11
- data/doc/js/jquery.js +0 -0
- data/doc/js/navigation.js +0 -0
- data/doc/js/search.js +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/searcher.js +0 -0
- data/doc/rdoc.css +580 -580
- data/doc/table_of_contents.html +69 -72
- data/lib/bauxite.rb +28 -28
- data/lib/bauxite/actions/alias.rb +51 -51
- data/lib/bauxite/actions/assert.rb +49 -49
- data/lib/bauxite/actions/asserth.rb +60 -60
- data/lib/bauxite/actions/assertm.rb +49 -49
- data/lib/bauxite/actions/assertv.rb +40 -40
- data/lib/bauxite/actions/assertw.rb +47 -47
- data/lib/bauxite/actions/break.rb +39 -39
- data/lib/bauxite/actions/capture.rb +61 -61
- data/lib/bauxite/actions/click.rb +36 -36
- data/lib/bauxite/actions/debug.rb +103 -103
- data/lib/bauxite/actions/doif.rb +43 -43
- data/lib/bauxite/actions/dounless.rb +43 -43
- data/lib/bauxite/actions/echo.rb +36 -36
- data/lib/bauxite/actions/exec.rb +46 -46
- data/lib/bauxite/actions/exit.rb +35 -35
- data/lib/bauxite/actions/failif.rb +52 -52
- data/lib/bauxite/actions/js.rb +41 -41
- data/lib/bauxite/actions/load.rb +49 -49
- data/lib/bauxite/actions/open.rb +35 -35
- data/lib/bauxite/actions/params.rb +40 -40
- data/lib/bauxite/actions/replace.rb +37 -37
- data/lib/bauxite/actions/reset.rb +38 -38
- data/lib/bauxite/actions/return.rb +68 -68
- data/lib/bauxite/actions/ruby.rb +58 -58
- data/lib/bauxite/actions/select.rb +48 -48
- data/lib/bauxite/actions/set.rb +39 -39
- data/lib/bauxite/actions/setif.rb +44 -44
- data/lib/bauxite/actions/source.rb +44 -44
- data/lib/bauxite/actions/store.rb +38 -38
- data/lib/bauxite/actions/submit.rb +37 -37
- data/lib/bauxite/actions/test.rb +67 -67
- data/lib/bauxite/actions/tryload.rb +71 -71
- data/lib/bauxite/actions/wait.rb +38 -38
- data/lib/bauxite/actions/write.rb +44 -44
- data/lib/bauxite/application.rb +349 -349
- data/lib/bauxite/core/action.rb +199 -199
- data/lib/bauxite/core/context.rb +791 -791
- data/lib/bauxite/core/errors.rb +41 -41
- data/lib/bauxite/core/logger.rb +169 -169
- data/lib/bauxite/core/parser.rb +85 -85
- data/lib/bauxite/core/selector.rb +152 -152
- data/lib/bauxite/loggers/composite.rb +91 -91
- data/lib/bauxite/loggers/echo.rb +36 -36
- data/lib/bauxite/loggers/file.rb +68 -68
- data/lib/bauxite/loggers/html.rb +154 -154
- data/lib/bauxite/loggers/terminal.rb +134 -134
- data/lib/bauxite/loggers/xterm.rb +101 -101
- data/lib/bauxite/parsers/csv.rb +43 -43
- data/lib/bauxite/parsers/default.rb +42 -42
- data/lib/bauxite/parsers/html.rb +79 -79
- data/lib/bauxite/selectors/attr.rb +39 -39
- data/lib/bauxite/selectors/frame.rb +60 -60
- data/lib/bauxite/selectors/json.rb +88 -88
- data/lib/bauxite/selectors/sid.rb +38 -38
- data/lib/bauxite/selectors/smart.rb +80 -80
- data/lib/bauxite/selectors/window.rb +77 -77
- data/test/alert.bxt +3 -3
- data/test/alert/page.html +4 -4
- data/test/alias.bxt +9 -9
- data/test/asserth.bxt +2 -2
- data/test/assertv.bxt +1 -1
- data/test/assertw.bxt +7 -7
- data/test/broken.bxt.manual +0 -0
- data/test/bug_load_path.bxt.manual +0 -0
- data/test/bug_load_path/broken.bxt.manual +0 -0
- data/test/bug_load_path/test.bxt +0 -0
- data/test/capture.bxt.manual +20 -20
- data/test/capture/my_test.bxt +1 -1
- data/test/capture/page.html +6 -6
- data/test/capture_on_error.bxt.manual +3 -3
- data/test/capture_on_error/my_test.bxt +1 -1
- data/test/capture_on_error/page.html +2 -2
- data/test/debug.bxt.manual +0 -0
- data/test/default_selector.bxt.manual +7 -7
- data/test/default_selector/page.html +10 -10
- data/test/default_selector_var.bxt +1 -1
- data/test/delay.bxt +2 -2
- data/test/delay/page.html +4 -4
- data/test/doif.bxt +6 -6
- data/test/dounless.bxt +6 -6
- data/test/exec.bxt +6 -6
- data/test/exit.bxt +3 -3
- data/test/exit/test.bxt +3 -3
- data/test/extension.bxt.manual +4 -4
- data/test/extension/custom.rb +12 -12
- data/test/extension/page.html +4 -4
- data/test/failif.bxt +7 -7
- data/test/failif/page.html +5 -5
- data/test/format.bxt +17 -17
- data/test/format/page.html +6 -6
- data/test/frame.bxt +6 -6
- data/test/frame/child_frame.html +6 -6
- data/test/frame/grandchild_frame.html +4 -4
- data/test/frame/page.html +4 -4
- data/test/js.bxt +4 -4
- data/test/json.bxt +19 -19
- data/test/json/array.json +3 -3
- data/test/json/object.json +13 -13
- data/test/load.bxt +18 -18
- data/test/load/child.bxt +12 -12
- data/test/parsers.bxt +1 -1
- data/test/parsers.csv +7 -7
- data/test/parsers.html +32 -32
- data/test/parsers/page.html +6 -6
- data/test/return.bxt +1 -1
- data/test/return/f1.bxt +1 -1
- data/test/return/f2.bxt +1 -1
- data/test/return/f3.bxt +1 -1
- data/test/return/f4.bxt +2 -2
- data/test/ruby.bxt +1 -1
- data/test/ruby/custom.rb +5 -5
- data/test/select.bxt +9 -9
- data/test/select/page.html +8 -8
- data/test/selectors.bxt +7 -7
- data/test/selectors/page.html +6 -6
- data/test/set_builtin.bxt +5 -0
- data/test/set_builtin/page.html +5 -0
- data/test/setif.bxt +3 -3
- data/test/smart_selector.bxt +17 -17
- data/test/smart_selector/page.html +17 -17
- data/test/stdin.bxt +0 -0
- data/test/submit.bxt +4 -4
- data/test/submit/page.html +6 -6
- data/test/submit/page2.html +4 -4
- data/test/test.bxt.manual +6 -6
- data/test/test/test1.bxt +2 -2
- data/test/test/test2.bxt +3 -3
- data/test/test/test3.bxt +2 -2
- data/test/test/test4.bxt +1 -1
- data/test/test/test5.bxt +1 -1
- data/test/window.bxt +14 -14
- data/test/window/page.html +5 -5
- data/test/window/popup.html +4 -4
- metadata +5 -3
data/doc/table_of_contents.html
CHANGED
@@ -6,20 +6,17 @@
|
|
6
6
|
|
7
7
|
<title>Table of Contents - RDoc Documentation</title>
|
8
8
|
|
9
|
-
<link href="./fonts.css" rel="stylesheet">
|
10
|
-
<link href="./rdoc.css" rel="stylesheet">
|
11
|
-
|
12
9
|
<script type="text/javascript">
|
13
10
|
var rdoc_rel_prefix = "./";
|
14
11
|
</script>
|
15
12
|
|
16
13
|
<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
14
|
<script src="./js/darkfish.js"></script>
|
22
15
|
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
23
20
|
|
24
21
|
<body id="top" class="table-of-contents">
|
25
22
|
<main role="main">
|
@@ -176,54 +173,54 @@
|
|
176
173
|
<span class="container">Bauxite::Context</span>
|
177
174
|
|
178
175
|
<li class="method">
|
179
|
-
<a href="Bauxite/
|
176
|
+
<a href="Bauxite/Context.html#method-c-new">::new</a>
|
180
177
|
—
|
181
|
-
<span class="container">Bauxite::
|
178
|
+
<span class="container">Bauxite::Context</span>
|
182
179
|
|
183
180
|
<li class="method">
|
184
|
-
<a href="Bauxite/Loggers/
|
181
|
+
<a href="Bauxite/Loggers/NullLogger.html#method-c-new">::new</a>
|
185
182
|
—
|
186
|
-
<span class="container">Bauxite::Loggers::
|
183
|
+
<span class="container">Bauxite::Loggers::NullLogger</span>
|
187
184
|
|
188
185
|
<li class="method">
|
189
|
-
<a href="Bauxite/
|
186
|
+
<a href="Bauxite/Loggers/ReportLogger.html#method-c-new">::new</a>
|
190
187
|
—
|
191
|
-
<span class="container">Bauxite::
|
188
|
+
<span class="container">Bauxite::Loggers::ReportLogger</span>
|
192
189
|
|
193
190
|
<li class="method">
|
194
|
-
<a href="Bauxite/Loggers/
|
191
|
+
<a href="Bauxite/Loggers/CompositeLogger.html#method-c-new">::new</a>
|
195
192
|
—
|
196
|
-
<span class="container">Bauxite::Loggers::
|
193
|
+
<span class="container">Bauxite::Loggers::CompositeLogger</span>
|
197
194
|
|
198
195
|
<li class="method">
|
199
|
-
<a href="Bauxite/
|
196
|
+
<a href="Bauxite/Loggers/FileLogger.html#method-c-new">::new</a>
|
200
197
|
—
|
201
|
-
<span class="container">Bauxite::
|
198
|
+
<span class="container">Bauxite::Loggers::FileLogger</span>
|
202
199
|
|
203
200
|
<li class="method">
|
204
|
-
<a href="Bauxite/
|
201
|
+
<a href="Bauxite/Loggers/HtmlLogger.html#method-c-new">::new</a>
|
205
202
|
—
|
206
|
-
<span class="container">Bauxite::
|
203
|
+
<span class="container">Bauxite::Loggers::HtmlLogger</span>
|
207
204
|
|
208
205
|
<li class="method">
|
209
|
-
<a href="Bauxite/Loggers/
|
206
|
+
<a href="Bauxite/Loggers/TerminalLogger.html#method-c-new">::new</a>
|
210
207
|
—
|
211
|
-
<span class="container">Bauxite::Loggers::
|
208
|
+
<span class="container">Bauxite::Loggers::TerminalLogger</span>
|
212
209
|
|
213
210
|
<li class="method">
|
214
|
-
<a href="Bauxite/
|
211
|
+
<a href="Bauxite/ActionModule.html#method-c-new">::new</a>
|
215
212
|
—
|
216
|
-
<span class="container">Bauxite::
|
213
|
+
<span class="container">Bauxite::ActionModule</span>
|
217
214
|
|
218
215
|
<li class="method">
|
219
|
-
<a href="Bauxite/
|
216
|
+
<a href="Bauxite/ParserModule.html#method-c-new">::new</a>
|
220
217
|
—
|
221
|
-
<span class="container">Bauxite::
|
218
|
+
<span class="container">Bauxite::ParserModule</span>
|
222
219
|
|
223
220
|
<li class="method">
|
224
|
-
<a href="Bauxite/
|
221
|
+
<a href="Bauxite/SelectorModule.html#method-c-new">::new</a>
|
225
222
|
—
|
226
|
-
<span class="container">Bauxite::
|
223
|
+
<span class="container">Bauxite::SelectorModule</span>
|
227
224
|
|
228
225
|
<li class="method">
|
229
226
|
<a href="Bauxite/Context.html#method-c-parse_action_default">::parse_action_default</a>
|
@@ -286,14 +283,14 @@
|
|
286
283
|
<span class="container">Bauxite::Loggers::XtermLogger</span>
|
287
284
|
|
288
285
|
<li class="method">
|
289
|
-
<a href="Bauxite/Loggers/
|
286
|
+
<a href="Bauxite/Loggers/TerminalLogger.html#method-i-_screen_width">#_screen_width</a>
|
290
287
|
—
|
291
|
-
<span class="container">Bauxite::Loggers::
|
288
|
+
<span class="container">Bauxite::Loggers::TerminalLogger</span>
|
292
289
|
|
293
290
|
<li class="method">
|
294
|
-
<a href="Bauxite/Loggers/
|
291
|
+
<a href="Bauxite/Loggers/XtermLogger.html#method-i-_screen_width">#_screen_width</a>
|
295
292
|
—
|
296
|
-
<span class="container">Bauxite::Loggers::
|
293
|
+
<span class="container">Bauxite::Loggers::XtermLogger</span>
|
297
294
|
|
298
295
|
<li class="method">
|
299
296
|
<a href="Bauxite/Context.html#method-i-add_alias">#add_alias</a>
|
@@ -361,19 +358,19 @@
|
|
361
358
|
<span class="container">Bauxite::Parser</span>
|
362
359
|
|
363
360
|
<li class="method">
|
364
|
-
<a href="Bauxite/
|
361
|
+
<a href="Bauxite/Action.html#method-i-debug">#debug</a>
|
365
362
|
—
|
366
|
-
<span class="container">Bauxite::
|
363
|
+
<span class="container">Bauxite::Action</span>
|
367
364
|
|
368
365
|
<li class="method">
|
369
|
-
<a href="Bauxite/
|
366
|
+
<a href="Bauxite/Context.html#method-i-debug">#debug</a>
|
370
367
|
—
|
371
|
-
<span class="container">Bauxite::
|
368
|
+
<span class="container">Bauxite::Context</span>
|
372
369
|
|
373
370
|
<li class="method">
|
374
|
-
<a href="Bauxite/Loggers/
|
371
|
+
<a href="Bauxite/Loggers/NullLogger.html#method-i-debug_prompt">#debug_prompt</a>
|
375
372
|
—
|
376
|
-
<span class="container">Bauxite::Loggers::
|
373
|
+
<span class="container">Bauxite::Loggers::NullLogger</span>
|
377
374
|
|
378
375
|
<li class="method">
|
379
376
|
<a href="Bauxite/Loggers/CompositeLogger.html#method-i-debug_prompt">#debug_prompt</a>
|
@@ -381,9 +378,9 @@
|
|
381
378
|
<span class="container">Bauxite::Loggers::CompositeLogger</span>
|
382
379
|
|
383
380
|
<li class="method">
|
384
|
-
<a href="Bauxite/Loggers/
|
381
|
+
<a href="Bauxite/Loggers/TerminalLogger.html#method-i-debug_prompt">#debug_prompt</a>
|
385
382
|
—
|
386
|
-
<span class="container">Bauxite::Loggers::
|
383
|
+
<span class="container">Bauxite::Loggers::TerminalLogger</span>
|
387
384
|
|
388
385
|
<li class="method">
|
389
386
|
<a href="Bauxite/Parser.html#method-i-default">#default</a>
|
@@ -456,29 +453,29 @@
|
|
456
453
|
<span class="container">Bauxite::Action</span>
|
457
454
|
|
458
455
|
<li class="method">
|
459
|
-
<a href="Bauxite/Loggers/
|
456
|
+
<a href="Bauxite/Loggers/NullLogger.html#method-i-finalize">#finalize</a>
|
460
457
|
—
|
461
|
-
<span class="container">Bauxite::Loggers::
|
458
|
+
<span class="container">Bauxite::Loggers::NullLogger</span>
|
462
459
|
|
463
460
|
<li class="method">
|
464
|
-
<a href="Bauxite/Loggers/
|
461
|
+
<a href="Bauxite/Loggers/ReportLogger.html#method-i-finalize">#finalize</a>
|
465
462
|
—
|
466
|
-
<span class="container">Bauxite::Loggers::
|
463
|
+
<span class="container">Bauxite::Loggers::ReportLogger</span>
|
467
464
|
|
468
465
|
<li class="method">
|
469
|
-
<a href="Bauxite/Loggers/
|
466
|
+
<a href="Bauxite/Loggers/CompositeLogger.html#method-i-finalize">#finalize</a>
|
470
467
|
—
|
471
|
-
<span class="container">Bauxite::Loggers::
|
468
|
+
<span class="container">Bauxite::Loggers::CompositeLogger</span>
|
472
469
|
|
473
470
|
<li class="method">
|
474
|
-
<a href="Bauxite/Loggers/
|
471
|
+
<a href="Bauxite/Loggers/FileLogger.html#method-i-finalize">#finalize</a>
|
475
472
|
—
|
476
|
-
<span class="container">Bauxite::Loggers::
|
473
|
+
<span class="container">Bauxite::Loggers::FileLogger</span>
|
477
474
|
|
478
475
|
<li class="method">
|
479
|
-
<a href="Bauxite/Loggers/
|
476
|
+
<a href="Bauxite/Loggers/HtmlLogger.html#method-i-finalize">#finalize</a>
|
480
477
|
—
|
481
|
-
<span class="container">Bauxite::Loggers::
|
478
|
+
<span class="container">Bauxite::Loggers::HtmlLogger</span>
|
482
479
|
|
483
480
|
<li class="method">
|
484
481
|
<a href="Bauxite/Context.html#method-i-find">#find</a>
|
@@ -520,11 +517,6 @@
|
|
520
517
|
—
|
521
518
|
<span class="container">Bauxite::Action</span>
|
522
519
|
|
523
|
-
<li class="method">
|
524
|
-
<a href="Bauxite/Loggers/CompositeLogger.html#method-i-log">#log</a>
|
525
|
-
—
|
526
|
-
<span class="container">Bauxite::Loggers::CompositeLogger</span>
|
527
|
-
|
528
520
|
<li class="method">
|
529
521
|
<a href="Bauxite/Loggers/NullLogger.html#method-i-log">#log</a>
|
530
522
|
—
|
@@ -535,6 +527,11 @@
|
|
535
527
|
—
|
536
528
|
<span class="container">Bauxite::Loggers::ReportLogger</span>
|
537
529
|
|
530
|
+
<li class="method">
|
531
|
+
<a href="Bauxite/Loggers/CompositeLogger.html#method-i-log">#log</a>
|
532
|
+
—
|
533
|
+
<span class="container">Bauxite::Loggers::CompositeLogger</span>
|
534
|
+
|
538
535
|
<li class="method">
|
539
536
|
<a href="Bauxite/Loggers/FileLogger.html#method-i-log">#log</a>
|
540
537
|
—
|
@@ -545,20 +542,25 @@
|
|
545
542
|
—
|
546
543
|
<span class="container">Bauxite::Loggers::TerminalLogger</span>
|
547
544
|
|
545
|
+
<li class="method">
|
546
|
+
<a href="Bauxite/Loggers/NullLogger.html#method-i-log_cmd">#log_cmd</a>
|
547
|
+
—
|
548
|
+
<span class="container">Bauxite::Loggers::NullLogger</span>
|
549
|
+
|
548
550
|
<li class="method">
|
549
551
|
<a href="Bauxite/Loggers/ReportLogger.html#method-i-log_cmd">#log_cmd</a>
|
550
552
|
—
|
551
553
|
<span class="container">Bauxite::Loggers::ReportLogger</span>
|
552
554
|
|
553
555
|
<li class="method">
|
554
|
-
<a href="Bauxite/Loggers/
|
556
|
+
<a href="Bauxite/Loggers/CompositeLogger.html#method-i-log_cmd">#log_cmd</a>
|
555
557
|
—
|
556
|
-
<span class="container">Bauxite::Loggers::
|
558
|
+
<span class="container">Bauxite::Loggers::CompositeLogger</span>
|
557
559
|
|
558
560
|
<li class="method">
|
559
|
-
<a href="Bauxite/Loggers/
|
561
|
+
<a href="Bauxite/Loggers/EchoLogger.html#method-i-log_cmd">#log_cmd</a>
|
560
562
|
—
|
561
|
-
<span class="container">Bauxite::Loggers::
|
563
|
+
<span class="container">Bauxite::Loggers::EchoLogger</span>
|
562
564
|
|
563
565
|
<li class="method">
|
564
566
|
<a href="Bauxite/Loggers/FileLogger.html#method-i-log_cmd">#log_cmd</a>
|
@@ -566,14 +568,9 @@
|
|
566
568
|
<span class="container">Bauxite::Loggers::FileLogger</span>
|
567
569
|
|
568
570
|
<li class="method">
|
569
|
-
<a href="Bauxite/Loggers/
|
570
|
-
—
|
571
|
-
<span class="container">Bauxite::Loggers::CompositeLogger</span>
|
572
|
-
|
573
|
-
<li class="method">
|
574
|
-
<a href="Bauxite/Loggers/EchoLogger.html#method-i-log_cmd">#log_cmd</a>
|
571
|
+
<a href="Bauxite/Loggers/TerminalLogger.html#method-i-log_cmd">#log_cmd</a>
|
575
572
|
—
|
576
|
-
<span class="container">Bauxite::Loggers::
|
573
|
+
<span class="container">Bauxite::Loggers::TerminalLogger</span>
|
577
574
|
|
578
575
|
<li class="method">
|
579
576
|
<a href="Bauxite/Action.html#method-i-open">#open</a>
|
@@ -600,6 +597,11 @@
|
|
600
597
|
—
|
601
598
|
<span class="container">Bauxite::Context</span>
|
602
599
|
|
600
|
+
<li class="method">
|
601
|
+
<a href="Bauxite/Loggers/NullLogger.html#method-i-progress">#progress</a>
|
602
|
+
—
|
603
|
+
<span class="container">Bauxite::Loggers::NullLogger</span>
|
604
|
+
|
603
605
|
<li class="method">
|
604
606
|
<a href="Bauxite/Loggers/CompositeLogger.html#method-i-progress">#progress</a>
|
605
607
|
—
|
@@ -610,11 +612,6 @@
|
|
610
612
|
—
|
611
613
|
<span class="container">Bauxite::Loggers::TerminalLogger</span>
|
612
614
|
|
613
|
-
<li class="method">
|
614
|
-
<a href="Bauxite/Loggers/NullLogger.html#method-i-progress">#progress</a>
|
615
|
-
—
|
616
|
-
<span class="container">Bauxite::Loggers::NullLogger</span>
|
617
|
-
|
618
615
|
<li class="method">
|
619
616
|
<a href="Bauxite/Action.html#method-i-replace">#replace</a>
|
620
617
|
—
|
@@ -745,7 +742,7 @@
|
|
745
742
|
|
746
743
|
<footer id="validator-badges" role="contentinfo">
|
747
744
|
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
748
|
-
<p>Generated by <a href="http://
|
749
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-
|
745
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
746
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
750
747
|
</footer>
|
751
748
|
|
data/lib/bauxite.rb
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
#--
|
2
|
-
# Copyright (c) 2014 Patricio Zavolinsky
|
3
|
-
#
|
4
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
# of this software and associated documentation files (the "Software"), to deal
|
6
|
-
# in the Software without restriction, including without limitation the rights
|
7
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
# copies of the Software, and to permit persons to whom the Software is
|
9
|
-
# furnished to do so, subject to the following conditions:
|
10
|
-
#
|
11
|
-
# The above copyright notice and this permission notice shall be included in
|
12
|
-
# all copies or substantial portions of the Software.
|
13
|
-
#
|
14
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
-
# SOFTWARE.
|
21
|
-
#++
|
22
|
-
|
23
|
-
#--
|
24
|
-
module Bauxite
|
25
|
-
VERSION = "0.6.
|
26
|
-
end
|
27
|
-
#++
|
28
|
-
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2014 Patricio Zavolinsky
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
# of this software and associated documentation files (the "Software"), to deal
|
6
|
+
# in the Software without restriction, including without limitation the rights
|
7
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
# copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in
|
12
|
+
# all copies or substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
# SOFTWARE.
|
21
|
+
#++
|
22
|
+
|
23
|
+
#--
|
24
|
+
module Bauxite
|
25
|
+
VERSION = "0.6.19"
|
26
|
+
end
|
27
|
+
#++
|
28
|
+
|
29
29
|
require_relative 'bauxite/application'
|
@@ -1,51 +1,51 @@
|
|
1
|
-
#--
|
2
|
-
# Copyright (c) 2014 Patricio Zavolinsky
|
3
|
-
#
|
4
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
# of this software and associated documentation files (the "Software"), to deal
|
6
|
-
# in the Software without restriction, including without limitation the rights
|
7
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
# copies of the Software, and to permit persons to whom the Software is
|
9
|
-
# furnished to do so, subject to the following conditions:
|
10
|
-
#
|
11
|
-
# The above copyright notice and this permission notice shall be included in
|
12
|
-
# all copies or substantial portions of the Software.
|
13
|
-
#
|
14
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
-
# SOFTWARE.
|
21
|
-
#++
|
22
|
-
|
23
|
-
class Bauxite::Action
|
24
|
-
# Aliases +name+ to +action+ with additional arguments.
|
25
|
-
#
|
26
|
-
# In +args+ the variables <tt>${1}</tt>..<tt>${n}</tt> will be expanded
|
27
|
-
# to the arguments given to the alias. Also <tt>${n*}</tt> will be expanded
|
28
|
-
# to the space separated list of arguments from the n-th on. Finally,
|
29
|
-
# <tt>${n*q}</tt> will behave like <tt>${n*}</tt> except that each argument
|
30
|
-
# will be surrounded by quotes (+"+) and quotes inside the argument will be
|
31
|
-
# doubled (+""+).
|
32
|
-
#
|
33
|
-
# Note that +action+ can be any action except +alias+. Also note that
|
34
|
-
# this action does not check for cyclic aliases (e.g. alias +a+ to +b+
|
35
|
-
# and alias +b+ to +a+). You should check that yourself.
|
36
|
-
#
|
37
|
-
# Also note that this method provides an action named +alias+ and not
|
38
|
-
# alias_action.
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# For example:
|
42
|
-
# alias hey echo "$1, nice to see you!"
|
43
|
-
# hey john
|
44
|
-
# # => this would expand to
|
45
|
-
# # echo "john, nice to see you!"
|
46
|
-
#
|
47
|
-
# :category: Action Methods
|
48
|
-
def alias_action(name, action, *args)
|
49
|
-
@ctx.add_alias(name, action, args)
|
50
|
-
end
|
51
|
-
end
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2014 Patricio Zavolinsky
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
# of this software and associated documentation files (the "Software"), to deal
|
6
|
+
# in the Software without restriction, including without limitation the rights
|
7
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
# copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in
|
12
|
+
# all copies or substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
# SOFTWARE.
|
21
|
+
#++
|
22
|
+
|
23
|
+
class Bauxite::Action
|
24
|
+
# Aliases +name+ to +action+ with additional arguments.
|
25
|
+
#
|
26
|
+
# In +args+ the variables <tt>${1}</tt>..<tt>${n}</tt> will be expanded
|
27
|
+
# to the arguments given to the alias. Also <tt>${n*}</tt> will be expanded
|
28
|
+
# to the space separated list of arguments from the n-th on. Finally,
|
29
|
+
# <tt>${n*q}</tt> will behave like <tt>${n*}</tt> except that each argument
|
30
|
+
# will be surrounded by quotes (+"+) and quotes inside the argument will be
|
31
|
+
# doubled (+""+).
|
32
|
+
#
|
33
|
+
# Note that +action+ can be any action except +alias+. Also note that
|
34
|
+
# this action does not check for cyclic aliases (e.g. alias +a+ to +b+
|
35
|
+
# and alias +b+ to +a+). You should check that yourself.
|
36
|
+
#
|
37
|
+
# Also note that this method provides an action named +alias+ and not
|
38
|
+
# alias_action.
|
39
|
+
#
|
40
|
+
#
|
41
|
+
# For example:
|
42
|
+
# alias hey echo "$1, nice to see you!"
|
43
|
+
# hey john
|
44
|
+
# # => this would expand to
|
45
|
+
# # echo "john, nice to see you!"
|
46
|
+
#
|
47
|
+
# :category: Action Methods
|
48
|
+
def alias_action(name, action, *args)
|
49
|
+
@ctx.add_alias(name, action, args)
|
50
|
+
end
|
51
|
+
end
|