term_utils 0.4.0 → 0.5.0

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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/COPYING +1 -1
  4. data/Rakefile +6 -0
  5. data/doc/TermUtils/AP/Article.html +13 -13
  6. data/doc/TermUtils/AP/ArticleResult.html +4 -4
  7. data/doc/TermUtils/AP/Flag.html +8 -8
  8. data/doc/TermUtils/AP/Parameter.html +9 -9
  9. data/doc/TermUtils/AP/ParameterResult.html +4 -4
  10. data/doc/TermUtils/AP/ParameterWalkerHooks.html +4 -4
  11. data/doc/TermUtils/AP/ParseError.html +646 -14
  12. data/doc/TermUtils/AP/Parser.html +43 -15
  13. data/doc/TermUtils/AP/Result.html +4 -4
  14. data/doc/TermUtils/AP/Syntax.html +4 -4
  15. data/doc/TermUtils/AP/SyntaxError.html +4 -86
  16. data/doc/TermUtils/AP/Walker.html +4 -4
  17. data/doc/TermUtils/AP.html +16 -16
  18. data/doc/TermUtils/FF/Config.html +8 -8
  19. data/doc/TermUtils/FF/Context.html +4 -4
  20. data/doc/TermUtils/FF/Entry.html +4 -4
  21. data/doc/TermUtils/FF/Finder.html +850 -0
  22. data/doc/TermUtils/FF/FinderEntry.html +1191 -0
  23. data/doc/TermUtils/FF/FinderQuery.html +946 -0
  24. data/doc/TermUtils/FF/Query.html +11 -15
  25. data/doc/TermUtils/FF.html +131 -7
  26. data/doc/TermUtils/PropertyTreeNode.html +6 -6
  27. data/doc/TermUtils/Tab/Column.html +44 -44
  28. data/doc/TermUtils/Tab/Header.html +19 -19
  29. data/doc/TermUtils/Tab/Holder.html +40 -40
  30. data/doc/TermUtils/Tab/Printer.html +4 -4
  31. data/doc/TermUtils/Tab/Table.html +59 -59
  32. data/doc/TermUtils/Tab/TableError.html +4 -86
  33. data/doc/TermUtils/Tab.html +42 -42
  34. data/doc/TermUtils.html +6 -6
  35. data/doc/_index.html +29 -23
  36. data/doc/class_list.html +1 -1
  37. data/doc/css/style.css +1 -0
  38. data/doc/file.README.html +25 -21
  39. data/doc/frames.html +1 -1
  40. data/doc/index.html +25 -21
  41. data/doc/method_list.html +385 -89
  42. data/doc/top-level-namespace.html +4 -4
  43. data/lib/term_utils/ap/article.rb +2 -2
  44. data/lib/term_utils/ap/flag.rb +2 -2
  45. data/lib/term_utils/ap/parameter.rb +2 -2
  46. data/lib/term_utils/ap/parser.rb +16 -15
  47. data/lib/term_utils/ap/result.rb +2 -2
  48. data/lib/term_utils/ap/syntax.rb +2 -2
  49. data/lib/term_utils/ap.rb +66 -22
  50. data/lib/term_utils/ff/config.rb +3 -3
  51. data/lib/term_utils/ff/entry.rb +2 -2
  52. data/lib/term_utils/ff/finder.rb +255 -0
  53. data/lib/term_utils/ff/query.rb +6 -8
  54. data/lib/term_utils/ff.rb +4 -3
  55. data/lib/term_utils/property_tree_node.rb +3 -3
  56. data/lib/term_utils/tab.rb +14 -13
  57. data/lib/term_utils.rb +2 -2
  58. data/term_utils.gemspec +2 -2
  59. metadata +8 -5
  60. data/doc/TermUtils/AP/NoSuchValueError.html +0 -217
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::Tab::Header
8
8
 
9
- &mdash; Documentation by YARD 0.9.25
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -138,7 +138,7 @@
138
138
 
139
139
 
140
140
  <span class="summary_desc"><div class='inline'>
141
- <p>`:left`, `:right`.</p>
141
+ <p>‘:left`, `:right`.</p>
142
142
  </div></span>
143
143
 
144
144
  </li>
@@ -308,13 +308,13 @@
308
308
  <pre class="lines">
309
309
 
310
310
 
311
+ 376
311
312
  377
312
313
  378
313
- 379
314
- 380</pre>
314
+ 379</pre>
315
315
  </td>
316
316
  <td>
317
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 377</span>
317
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 376</span>
318
318
 
319
319
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
320
320
  <span class='ivar'>@title</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:title</span><span class='rparen'>)</span>
@@ -344,7 +344,7 @@
344
344
  </h3><div class="docstring">
345
345
  <div class="discussion">
346
346
 
347
- <p>Returns `:left`, `:right`.</p>
347
+ <p>Returns ‘:left`, `:right`.</p>
348
348
 
349
349
 
350
350
  </div>
@@ -363,7 +363,7 @@
363
363
 
364
364
  &mdash;
365
365
  <div class='inline'>
366
- <p>`:left`, `:right`.</p>
366
+ <p>‘:left`, `:right`.</p>
367
367
  </div>
368
368
 
369
369
  </li>
@@ -376,12 +376,12 @@
376
376
  <pre class="lines">
377
377
 
378
378
 
379
+ 370
379
380
  371
380
- 372
381
- 373</pre>
381
+ 372</pre>
382
382
  </td>
383
383
  <td>
384
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 371</span>
384
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 370</span>
385
385
 
386
386
  <span class='kw'>def</span> <span class='id identifier rubyid_align'>align</span>
387
387
  <span class='ivar'>@align</span>
@@ -430,12 +430,12 @@
430
430
  <pre class="lines">
431
431
 
432
432
 
433
+ 368
433
434
  369
434
- 370
435
- 371</pre>
435
+ 370</pre>
436
436
  </td>
437
437
  <td>
438
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 369</span>
438
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 368</span>
439
439
 
440
440
  <span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
441
441
  <span class='ivar'>@title</span>
@@ -504,13 +504,13 @@
504
504
  <pre class="lines">
505
505
 
506
506
 
507
+ 384
507
508
  385
508
509
  386
509
- 387
510
- 388</pre>
510
+ 387</pre>
511
511
  </td>
512
512
  <td>
513
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 385</span>
513
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 384</span>
514
514
 
515
515
  <span class='kw'>def</span> <span class='id identifier rubyid_validate'>validate</span>
516
516
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>missing header title (nil)</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='ivar'>@title</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
@@ -526,9 +526,9 @@
526
526
  </div>
527
527
 
528
528
  <div id="footer">
529
- Generated on Sun Aug 2 18:35:09 2020 by
530
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
531
- 0.9.25 (ruby-2.6.5).
529
+ Generated on Wed Aug 9 17:34:26 2023 by
530
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
531
+ 0.9.34 (ruby-3.2.2).
532
532
  </div>
533
533
 
534
534
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::Tab::Holder
8
8
 
9
- &mdash; Documentation by YARD 0.9.25
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -138,7 +138,7 @@
138
138
 
139
139
 
140
140
  <span class="summary_desc"><div class='inline'>
141
- <p>`:width`, `:align`, `:fixed`, `:ellipsis`, `:format`.</p>
141
+ <p>‘:width`, `:align`, `:fixed`, `:ellipsis`, `:format`.</p>
142
142
  </div></span>
143
143
 
144
144
  </li>
@@ -165,7 +165,7 @@
165
165
 
166
166
 
167
167
  <span class="summary_desc"><div class='inline'>
168
- <p>`:offset`, `:column_separator_width`.</p>
168
+ <p>‘:offset`, `:column_separator_width`.</p>
169
169
  </div></span>
170
170
 
171
171
  </li>
@@ -411,14 +411,14 @@
411
411
  <pre class="lines">
412
412
 
413
413
 
414
- 452
415
414
  453
416
415
  454
417
416
  455
418
- 456</pre>
417
+ 456
418
+ 457</pre>
419
419
  </td>
420
420
  <td>
421
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 452</span>
421
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 453</span>
422
422
 
423
423
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
424
424
  <span class='ivar'>@table_defaults</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_init_table_props'><span class='object_link'><a href="../Tab.html#init_table_props-class_method" title="TermUtils::Tab.init_table_props (method)">init_table_props</a></span></span>
@@ -449,7 +449,7 @@
449
449
  </h3><div class="docstring">
450
450
  <div class="discussion">
451
451
 
452
- <p>Returns `:width`, `:align`, `:fixed`, `:ellipsis`, `:format`.</p>
452
+ <p>Returns ‘:width`, `:align`, `:fixed`, `:ellipsis`, `:format`.</p>
453
453
 
454
454
 
455
455
  </div>
@@ -468,7 +468,7 @@
468
468
 
469
469
  &mdash;
470
470
  <div class='inline'>
471
- <p>`:width`, `:align`, `:fixed`, `:ellipsis`, `:format`.</p>
471
+ <p>‘:width`, `:align`, `:fixed`, `:ellipsis`, `:format`.</p>
472
472
  </div>
473
473
 
474
474
  </li>
@@ -481,12 +481,12 @@
481
481
  <pre class="lines">
482
482
 
483
483
 
484
- 447
485
484
  448
486
- 449</pre>
485
+ 449
486
+ 450</pre>
487
487
  </td>
488
488
  <td>
489
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 447</span>
489
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 448</span>
490
490
 
491
491
  <span class='kw'>def</span> <span class='id identifier rubyid_column_defaults'>column_defaults</span>
492
492
  <span class='ivar'>@column_defaults</span>
@@ -510,7 +510,7 @@
510
510
  </h3><div class="docstring">
511
511
  <div class="discussion">
512
512
 
513
- <p>Returns `:offset`, `:column_separator_width`.</p>
513
+ <p>Returns ‘:offset`, `:column_separator_width`.</p>
514
514
 
515
515
 
516
516
  </div>
@@ -529,7 +529,7 @@
529
529
 
530
530
  &mdash;
531
531
  <div class='inline'>
532
- <p>`:offset`, `:column_separator_width`.</p>
532
+ <p>‘:offset`, `:column_separator_width`.</p>
533
533
  </div>
534
534
 
535
535
  </li>
@@ -542,12 +542,12 @@
542
542
  <pre class="lines">
543
543
 
544
544
 
545
- 445
546
545
  446
547
- 447</pre>
546
+ 447
547
+ 448</pre>
548
548
  </td>
549
549
  <td>
550
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 445</span>
550
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 446</span>
551
551
 
552
552
  <span class='kw'>def</span> <span class='id identifier rubyid_table_defaults'>table_defaults</span>
553
553
  <span class='ivar'>@table_defaults</span>
@@ -596,12 +596,12 @@
596
596
  <pre class="lines">
597
597
 
598
598
 
599
- 449
600
599
  450
601
- 451</pre>
600
+ 451
601
+ 452</pre>
602
602
  </td>
603
603
  <td>
604
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 449</span>
604
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 450</span>
605
605
 
606
606
  <span class='kw'>def</span> <span class='id identifier rubyid_tables'>tables</span>
607
607
  <span class='ivar'>@tables</span>
@@ -674,17 +674,17 @@
674
674
  <pre class="lines">
675
675
 
676
676
 
677
- 480
678
677
  481
679
678
  482
680
679
  483
681
680
  484
682
681
  485
683
682
  486
684
- 487</pre>
683
+ 487
684
+ 488</pre>
685
685
  </td>
686
686
  <td>
687
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 480</span>
687
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 481</span>
688
688
 
689
689
  <span class='kw'>def</span> <span class='id identifier rubyid_create_table'>create_table</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
690
690
  <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:offset</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@table_defaults</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:offset</span><span class='rparen'>)</span>
@@ -766,7 +766,6 @@
766
766
  <pre class="lines">
767
767
 
768
768
 
769
- 493
770
769
  494
771
770
  495
772
771
  496
@@ -779,10 +778,11 @@
779
778
  503
780
779
  504
781
780
  505
782
- 506</pre>
781
+ 506
782
+ 507</pre>
783
783
  </td>
784
784
  <td>
785
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 493</span>
785
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 494</span>
786
786
 
787
787
  <span class='kw'>def</span> <span class='id identifier rubyid_define_table'>define_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
788
788
  <span class='kw'>if</span> <span class='ivar'>@tables</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='id identifier rubyid_id'>id</span>
@@ -857,12 +857,12 @@
857
857
  <pre class="lines">
858
858
 
859
859
 
860
- 511
861
860
  512
862
- 513</pre>
861
+ 513
862
+ 514</pre>
863
863
  </td>
864
864
  <td>
865
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 511</span>
865
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 512</span>
866
866
 
867
867
  <span class='kw'>def</span> <span class='id identifier rubyid_find_table'>find_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
868
868
  <span class='ivar'>@tables</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span>
@@ -983,12 +983,12 @@
983
983
  <pre class="lines">
984
984
 
985
985
 
986
- 522
987
986
  523
988
- 524</pre>
987
+ 524
988
+ 525</pre>
989
989
  </td>
990
990
  <td>
991
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 522</span>
991
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 523</span>
992
992
 
993
993
  <span class='kw'>def</span> <span class='id identifier rubyid_printer'>printer</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
994
994
  <span class='id identifier rubyid_find_table'>find_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_printer'>printer</span><span class='lparen'>(</span><span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
@@ -1095,12 +1095,12 @@
1095
1095
  <pre class="lines">
1096
1096
 
1097
1097
 
1098
- 473
1099
1098
  474
1100
- 475</pre>
1099
+ 475
1100
+ 476</pre>
1101
1101
  </td>
1102
1102
  <td>
1103
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 473</span>
1103
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 474</span>
1104
1104
 
1105
1105
  <span class='kw'>def</span> <span class='id identifier rubyid_set_column_defaults'>set_column_defaults</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1106
1106
  <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_assign_column_props'><span class='object_link'><a href="../Tab.html#assign_column_props-class_method" title="TermUtils::Tab.assign_column_props (method)">assign_column_props</a></span></span><span class='lparen'>(</span><span class='ivar'>@column_defaults</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
@@ -1180,12 +1180,12 @@
1180
1180
  <pre class="lines">
1181
1181
 
1182
1182
 
1183
- 462
1184
1183
  463
1185
- 464</pre>
1184
+ 464
1185
+ 465</pre>
1186
1186
  </td>
1187
1187
  <td>
1188
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 462</span>
1188
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 463</span>
1189
1189
 
1190
1190
  <span class='kw'>def</span> <span class='id identifier rubyid_set_table_defaults'>set_table_defaults</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1191
1191
  <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_assign_table_props'><span class='object_link'><a href="../Tab.html#assign_table_props-class_method" title="TermUtils::Tab.assign_table_props (method)">assign_table_props</a></span></span><span class='lparen'>(</span><span class='ivar'>@table_defaults</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
@@ -1200,9 +1200,9 @@
1200
1200
  </div>
1201
1201
 
1202
1202
  <div id="footer">
1203
- Generated on Sun Aug 2 18:35:09 2020 by
1204
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1205
- 0.9.25 (ruby-2.6.5).
1203
+ Generated on Wed Aug 9 17:34:26 2023 by
1204
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1205
+ 0.9.34 (ruby-3.2.2).
1206
1206
  </div>
1207
1207
 
1208
1208
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::Tab::Printer
8
8
 
9
- &mdash; Documentation by YARD 0.9.25
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
@@ -957,9 +957,9 @@
957
957
  </div>
958
958
 
959
959
  <div id="footer">
960
- Generated on Sun Aug 2 18:35:09 2020 by
961
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
962
- 0.9.25 (ruby-2.6.5).
960
+ Generated on Wed Aug 9 17:34:26 2023 by
961
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
962
+ 0.9.34 (ruby-3.2.2).
963
963
  </div>
964
964
 
965
965
  </div>