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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37a52bdf0564e80160cccb4745fd96a1a0c125e33d9037dcfc48884e69e113d6
4
- data.tar.gz: 7a96fb5e605531f440be0a3c4215a8d40da4a91b83b667d150f1ca6e642c6511
3
+ metadata.gz: 9d525b01701659abb4065871601ce14359c34a6654be849d410fb5b10d1b8255
4
+ data.tar.gz: 040f2fec5ea931f3f07a6288ccea45b55b23908d54b9a84636f34f8720551cb2
5
5
  SHA512:
6
- metadata.gz: d7cc4fe24ebd4fd5b86172007c8ec0cdbd6b72b0e5709ac378c64e6895733b972f637f40d50d24f992a717ff4ad9bc9b2c2c102e46d204a5353aa1580b19841f
7
- data.tar.gz: aeeab30291f4b37c89cef7ce8756b39d4935f74035b8834e8a5efd6a955da125a3db5013f1affdc4ec8879fc5ab99ffd23a58a623bf6a3137b609367c233daa6
6
+ metadata.gz: e6a68c34584eb3b627ed72a919b5bed76427946aae0f3e03301ca94d11169565e35ce35c23b5ddfba8d472e85d002210059c8d65c64a6bdb6f320adcd962b6d0
7
+ data.tar.gz: 91569f0a29c3312eb7d53e23cb300cb815df0d2f1ac59c2d64fc561a6a1dbe90ee97ff199ec455b5f7eefe5db3db1700f5453702f3b791e5cb6464c10fdcd5c1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # term_utils - Changelog
2
2
 
3
+ ### 0.5.0 - 2023-08-09
4
+
5
+ ### Added
6
+
7
+ - Added AP::ParseError properties: parameter and fault.
8
+ - Added FF.find.
9
+
3
10
  ### 0.4.0 - 2020-08-02
4
11
 
5
12
  ### Changed
data/COPYING CHANGED
@@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
632
632
  the "copyright" line and a pointer to where the full notice is found.
633
633
 
634
634
  term_utils provides utilities for terminal application.
635
- Copyright (C) 2020 Thomas Baron
635
+ Copyright (C) 2021 Thomas Baron
636
636
 
637
637
  This program is free software: you can redistribute it and/or modify
638
638
  it under the terms of the GNU General Public License as published by
data/Rakefile CHANGED
@@ -10,6 +10,7 @@ GEM = "#{GEM_NAME}-#{GEM_VERSION}.gem"
10
10
 
11
11
  task :default => :help
12
12
 
13
+ desc "Print help."
13
14
  task :help do
14
15
  puts <<-EOS
15
16
  usage: rake <target>...
@@ -29,8 +30,10 @@ To deploy a gem:
29
30
  EOS
30
31
  end
31
32
 
33
+ desc "Create gem."
32
34
  task :gem => GEM
33
35
 
36
+ desc "Generate documentation."
34
37
  task :doc => %w[.doc]
35
38
 
36
39
  file ".doc" do
@@ -42,14 +45,17 @@ file GEM => %w[.doc] do
42
45
  sh "gem build #{GEM_NAME}"
43
46
  end
44
47
 
48
+ desc "Install gem."
45
49
  task :install => :gem do
46
50
  sh "gem install #{GEM}"
47
51
  end
48
52
 
53
+ desc "Uninstall gem."
49
54
  task :uninstall do
50
55
  sh "gem uninstall #{GEM_NAME} --version #{GEM_VERSION}"
51
56
  end
52
57
 
58
+ desc "Remove documentation and gem."
53
59
  task :clean do
54
60
  sh "rm -rf .doc doc #{GEM}"
55
61
  end
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::AP::Article
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>`%d`, `%s`.</p>
141
+ <p>‘%d`, `%s`.</p>
142
142
  </div></span>
143
143
 
144
144
  </li>
@@ -240,7 +240,7 @@
240
240
 
241
241
 
242
242
  <span class="summary_desc"><div class='inline'>
243
- <p>`:integer`, `:string`.</p>
243
+ <p>‘:integer`, `:string`.</p>
244
244
  </div></span>
245
245
 
246
246
  </li>
@@ -422,7 +422,7 @@
422
422
  </span>
423
423
 
424
424
  &mdash; <div class='inline'>
425
- <p>Default value is `1`.</p>
425
+ <p>Default value is 1`.</p>
426
426
  </div>
427
427
 
428
428
  </li>
@@ -435,7 +435,7 @@
435
435
  </span>
436
436
 
437
437
  &mdash; <div class='inline'>
438
- <p>Default value is `1`.</p>
438
+ <p>Default value is 1`.</p>
439
439
  </div>
440
440
 
441
441
  </li>
@@ -448,7 +448,7 @@
448
448
  </span>
449
449
 
450
450
  &mdash; <div class='inline'>
451
- <p>`:integer`, `:string`.</p>
451
+ <p>‘:integer`, `:string`.</p>
452
452
  </div>
453
453
 
454
454
  </li>
@@ -514,7 +514,7 @@
514
514
  </h3><div class="docstring">
515
515
  <div class="discussion">
516
516
 
517
- <p>Returns `%d`, `%s`.</p>
517
+ <p>Returns ‘%d`, `%s`.</p>
518
518
 
519
519
 
520
520
  </div>
@@ -533,7 +533,7 @@
533
533
 
534
534
  &mdash;
535
535
  <div class='inline'>
536
- <p>`%d`, `%s`.</p>
536
+ <p>‘%d`, `%s`.</p>
537
537
  </div>
538
538
 
539
539
  </li>
@@ -737,7 +737,7 @@
737
737
  </h3><div class="docstring">
738
738
  <div class="discussion">
739
739
 
740
- <p>Returns `:integer`, `:string`.</p>
740
+ <p>Returns ‘:integer`, `:string`.</p>
741
741
 
742
742
 
743
743
  </div>
@@ -756,7 +756,7 @@
756
756
 
757
757
  &mdash;
758
758
  <div class='inline'>
759
- <p>`:integer`, `:string`</p>
759
+ <p>‘:integer`, `:string`</p>
760
760
  </div>
761
761
 
762
762
  </li>
@@ -983,9 +983,9 @@
983
983
  </div>
984
984
 
985
985
  <div id="footer">
986
- Generated on Sun Aug 2 18:35:10 2020 by
987
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
988
- 0.9.25 (ruby-2.6.5).
986
+ Generated on Wed Aug 9 17:34:27 2023 by
987
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
988
+ 0.9.34 (ruby-3.2.2).
989
989
  </div>
990
990
 
991
991
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::AP::ArticleResult
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
 
@@ -574,9 +574,9 @@
574
574
  </div>
575
575
 
576
576
  <div id="footer">
577
- Generated on Sun Aug 2 18:35:10 2020 by
578
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
579
- 0.9.25 (ruby-2.6.5).
577
+ Generated on Wed Aug 9 17:34:26 2023 by
578
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
579
+ 0.9.34 (ruby-3.2.2).
580
580
  </div>
581
581
 
582
582
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::AP::Flag
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
 
@@ -140,7 +140,7 @@
140
140
 
141
141
 
142
142
  <span class="summary_desc"><div class='inline'>
143
- <p>`:long`, `:short`.</p>
143
+ <p>‘:long`, `:short`.</p>
144
144
  </div></span>
145
145
 
146
146
  </li>
@@ -357,7 +357,7 @@
357
357
 
358
358
  &mdash;
359
359
  <div class='inline'>
360
- <p>`:short`, `:long`.</p>
360
+ <p>‘:short`, `:long`.</p>
361
361
  </div>
362
362
 
363
363
  </li>
@@ -426,7 +426,7 @@
426
426
  </h3><div class="docstring">
427
427
  <div class="discussion">
428
428
 
429
- <p>Returns `:long`, `:short`.</p>
429
+ <p>Returns ‘:long`, `:short`.</p>
430
430
 
431
431
 
432
432
  </div>
@@ -445,7 +445,7 @@
445
445
 
446
446
  &mdash;
447
447
  <div class='inline'>
448
- <p>`:long`, `:short`.</p>
448
+ <p>‘:long`, `:short`.</p>
449
449
  </div>
450
450
 
451
451
  </li>
@@ -746,9 +746,9 @@
746
746
  </div>
747
747
 
748
748
  <div id="footer">
749
- Generated on Sun Aug 2 18:35:09 2020 by
750
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
751
- 0.9.25 (ruby-2.6.5).
749
+ Generated on Wed Aug 9 17:34:26 2023 by
750
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
751
+ 0.9.34 (ruby-3.2.2).
752
752
  </div>
753
753
 
754
754
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::AP::Parameter
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
 
@@ -562,7 +562,7 @@
562
562
  </span>
563
563
 
564
564
  &mdash; <div class='inline'>
565
- <p>Default value is `0`.</p>
565
+ <p>Default value is 0`.</p>
566
566
  </div>
567
567
 
568
568
  </li>
@@ -575,7 +575,7 @@
575
575
  </span>
576
576
 
577
577
  &mdash; <div class='inline'>
578
- <p>Default value is `1`.</p>
578
+ <p>Default value is 1`.</p>
579
579
  </div>
580
580
 
581
581
  </li>
@@ -969,7 +969,7 @@
969
969
  </span>
970
970
 
971
971
  &mdash; <div class='inline'>
972
- <p>Default value is `1`.</p>
972
+ <p>Default value is 1`.</p>
973
973
  </div>
974
974
 
975
975
  </li>
@@ -982,7 +982,7 @@
982
982
  </span>
983
983
 
984
984
  &mdash; <div class='inline'>
985
- <p>Default value is `1`.</p>
985
+ <p>Default value is 1`.</p>
986
986
  </div>
987
987
 
988
988
  </li>
@@ -995,7 +995,7 @@
995
995
  </span>
996
996
 
997
997
  &mdash; <div class='inline'>
998
- <p>`:integer`, `:string`.</p>
998
+ <p>‘:integer`, `:string`.</p>
999
999
  </div>
1000
1000
 
1001
1001
  </li>
@@ -1582,9 +1582,9 @@
1582
1582
  </div>
1583
1583
 
1584
1584
  <div id="footer">
1585
- Generated on Sun Aug 2 18:35:10 2020 by
1586
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1587
- 0.9.25 (ruby-2.6.5).
1585
+ Generated on Wed Aug 9 17:34:27 2023 by
1586
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1587
+ 0.9.34 (ruby-3.2.2).
1588
1588
  </div>
1589
1589
 
1590
1590
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::AP::ParameterResult
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
 
@@ -970,9 +970,9 @@
970
970
  </div>
971
971
 
972
972
  <div id="footer">
973
- Generated on Sun Aug 2 18:35:09 2020 by
974
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
975
- 0.9.25 (ruby-2.6.5).
973
+ Generated on Wed Aug 9 17:34:26 2023 by
974
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
975
+ 0.9.34 (ruby-3.2.2).
976
976
  </div>
977
977
 
978
978
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: TermUtils::AP::ParameterWalkerHooks
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
 
@@ -399,9 +399,9 @@
399
399
  </div>
400
400
 
401
401
  <div id="footer">
402
- Generated on Sun Aug 2 18:35:10 2020 by
403
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
404
- 0.9.25 (ruby-2.6.5).
402
+ Generated on Wed Aug 9 17:34:27 2023 by
403
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
404
+ 0.9.34 (ruby-3.2.2).
405
405
  </div>
406
406
 
407
407
  </div>