doing 2.1.24 → 2.1.28

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 (170) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +17 -21
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/CHANGELOG.md +325 -102
  6. data/Dockerfile +5 -5
  7. data/Dockerfile-2.6 +5 -5
  8. data/Dockerfile-2.7 +5 -4
  9. data/Dockerfile-3.0 +5 -4
  10. data/Gemfile.lock +1 -1
  11. data/README.md +1 -1
  12. data/Rakefile +3 -3
  13. data/bin/commands/add_section.rb +15 -0
  14. data/bin/commands/again.rb +57 -0
  15. data/bin/commands/archive.rb +55 -0
  16. data/bin/commands/cancel.rb +60 -0
  17. data/bin/commands/changes.rb +73 -0
  18. data/bin/commands/choose.rb +9 -0
  19. data/bin/commands/colors.rb +21 -0
  20. data/bin/commands/commands.rb +89 -0
  21. data/bin/commands/commands_accepting.rb +76 -0
  22. data/bin/commands/completion.rb +27 -0
  23. data/bin/commands/config.rb +245 -0
  24. data/bin/commands/done.rb +235 -0
  25. data/bin/commands/finish.rb +126 -0
  26. data/bin/commands/flag.rb +90 -0
  27. data/bin/commands/grep.rb +108 -0
  28. data/bin/commands/import.rb +71 -0
  29. data/bin/commands/install_fzf.rb +17 -0
  30. data/bin/commands/last.rb +81 -0
  31. data/bin/commands/meanwhile.rb +76 -0
  32. data/bin/commands/note.rb +91 -0
  33. data/bin/commands/now.rb +145 -0
  34. data/bin/commands/on.rb +65 -0
  35. data/bin/commands/open.rb +53 -0
  36. data/bin/commands/plugins.rb +23 -0
  37. data/bin/commands/recent.rb +77 -0
  38. data/bin/commands/redo.rb +26 -0
  39. data/bin/commands/reset.rb +73 -0
  40. data/bin/commands/rotate.rb +42 -0
  41. data/bin/commands/sections.rb +11 -0
  42. data/bin/commands/select.rb +105 -0
  43. data/bin/commands/show.rb +185 -0
  44. data/bin/commands/since.rb +63 -0
  45. data/bin/commands/tag.rb +149 -0
  46. data/bin/commands/tag_dir.rb +29 -0
  47. data/bin/commands/tags.rb +66 -0
  48. data/bin/commands/template.rb +61 -0
  49. data/bin/commands/today.rb +64 -0
  50. data/bin/commands/undo.rb +49 -0
  51. data/bin/commands/view.rb +201 -0
  52. data/bin/commands/views.rb +11 -0
  53. data/bin/commands/yesterday.rb +72 -0
  54. data/bin/doing +241 -3662
  55. data/docs/doc/Array.html +13 -449
  56. data/docs/doc/BooleanTermParser/Clause.html +5 -5
  57. data/docs/doc/BooleanTermParser/Operator.html +4 -4
  58. data/docs/doc/BooleanTermParser/Query.html +8 -8
  59. data/docs/doc/BooleanTermParser/QueryParser.html +2 -2
  60. data/docs/doc/BooleanTermParser/QueryTransformer.html +2 -2
  61. data/docs/doc/BooleanTermParser.html +1 -1
  62. data/docs/doc/Doing/Color.html +65 -59
  63. data/docs/doc/Doing/Completion.html +2 -2
  64. data/docs/doc/Doing/Configuration.html +49 -16
  65. data/docs/doc/Doing/Errors/DoingNoTraceError.html +2 -2
  66. data/docs/doc/Doing/Errors/DoingRuntimeError.html +2 -2
  67. data/docs/doc/Doing/Errors/DoingStandardError.html +2 -2
  68. data/docs/doc/Doing/Errors/EmptyInput.html +2 -2
  69. data/docs/doc/Doing/Errors/NoResults.html +2 -2
  70. data/docs/doc/Doing/Errors/PluginException.html +3 -3
  71. data/docs/doc/Doing/Errors/UserCancelled.html +2 -2
  72. data/docs/doc/Doing/Errors/WrongCommand.html +2 -2
  73. data/docs/doc/Doing/Errors.html +1 -1
  74. data/docs/doc/Doing/Hooks.html +6 -6
  75. data/docs/doc/Doing/Item.html +50 -16
  76. data/docs/doc/Doing/Items.html +10 -10
  77. data/docs/doc/Doing/LogAdapter.html +24 -24
  78. data/docs/doc/Doing/Note.html +7 -7
  79. data/docs/doc/Doing/Pager.html +4 -4
  80. data/docs/doc/Doing/Plugins.html +7 -7
  81. data/docs/doc/Doing/Prompt.html +59 -14
  82. data/docs/doc/Doing/Section.html +6 -6
  83. data/docs/doc/Doing/TemplateString.html +8 -8
  84. data/docs/doc/Doing/Types.html +46 -1
  85. data/docs/doc/Doing/Util/Backup.html +10 -10
  86. data/docs/doc/Doing/Util.html +15 -15
  87. data/docs/doc/Doing/WWID.html +73 -61
  88. data/docs/doc/Doing.html +3 -3
  89. data/docs/doc/FalseClass.html +235 -0
  90. data/docs/doc/GLI/Commands/Help.html +3 -3
  91. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +17 -17
  92. data/docs/doc/GLI/Commands.html +1 -1
  93. data/docs/doc/GLI.html +1 -1
  94. data/docs/doc/Hash.html +45 -11
  95. data/docs/doc/Numeric.html +5 -5
  96. data/docs/doc/Object.html +203 -0
  97. data/docs/doc/PhraseParser/Operator.html +4 -4
  98. data/docs/doc/PhraseParser/PhraseClause.html +5 -5
  99. data/docs/doc/PhraseParser/Query.html +10 -10
  100. data/docs/doc/PhraseParser/QueryParser.html +2 -2
  101. data/docs/doc/PhraseParser/QueryTransformer.html +2 -2
  102. data/docs/doc/PhraseParser/TermClause.html +5 -5
  103. data/docs/doc/PhraseParser.html +1 -1
  104. data/docs/doc/Status.html +7 -7
  105. data/docs/doc/String.html +306 -3111
  106. data/docs/doc/Symbol.html +45 -11
  107. data/docs/doc/Time.html +6 -6
  108. data/docs/doc/TrueClass.html +235 -0
  109. data/docs/doc/_index.html +37 -19
  110. data/docs/doc/class_list.html +1 -1
  111. data/docs/doc/file.README.html +2 -2
  112. data/docs/doc/index.html +2 -2
  113. data/docs/doc/method_list.html +240 -576
  114. data/docs/doc/top-level-namespace.html +2 -2
  115. data/doing.rdoc +297 -169
  116. data/example_plugin.rb +2 -2
  117. data/lib/completion/_doing.zsh +35 -31
  118. data/lib/completion/doing.bash +30 -19
  119. data/lib/completion/doing.fish +81 -67
  120. data/lib/doing/array/array.rb +4 -0
  121. data/lib/doing/array/nested_hash.rb +17 -0
  122. data/lib/doing/{array.rb → array/tags.rb} +7 -25
  123. data/lib/doing/changelog/change.rb +26 -11
  124. data/lib/doing/changelog/changes.rb +16 -4
  125. data/lib/doing/{array_chronify.rb → chronify/array.rb} +0 -0
  126. data/lib/doing/chronify/chronify.rb +5 -0
  127. data/lib/doing/{numeric_chronify.rb → chronify/numeric.rb} +0 -0
  128. data/lib/doing/{string_chronify.rb → chronify/string.rb} +0 -0
  129. data/lib/doing/colors.rb +115 -54
  130. data/lib/doing/configuration.rb +9 -6
  131. data/lib/doing/good.rb +72 -0
  132. data/lib/doing/hash.rb +4 -0
  133. data/lib/doing/help_monkey_patch.rb +6 -5
  134. data/lib/doing/hooks.rb +3 -3
  135. data/lib/doing/item.rb +19 -15
  136. data/lib/doing/items.rb +2 -2
  137. data/lib/doing/log_adapter.rb +35 -2
  138. data/lib/doing/normalize.rb +188 -0
  139. data/lib/doing/pager.rb +1 -0
  140. data/lib/doing/plugins/export/dayone_export.rb +1 -1
  141. data/lib/doing/plugins/export/html_export.rb +1 -1
  142. data/lib/doing/plugins/export/json_export.rb +1 -1
  143. data/lib/doing/plugins/export/markdown_export.rb +1 -1
  144. data/lib/doing/plugins/export/template_export.rb +3 -1
  145. data/lib/doing/plugins/import/calendar_import.rb +1 -1
  146. data/lib/doing/plugins/import/doing_import.rb +1 -1
  147. data/lib/doing/plugins/import/timing_import.rb +1 -1
  148. data/lib/doing/prompt.rb +9 -3
  149. data/lib/doing/string/highlight.rb +95 -0
  150. data/lib/doing/string/query.rb +129 -0
  151. data/lib/doing/string/string.rb +12 -0
  152. data/lib/doing/string/tags.rb +164 -0
  153. data/lib/doing/string/transform.rb +168 -0
  154. data/lib/doing/string/truncate.rb +75 -0
  155. data/lib/doing/string/url.rb +82 -0
  156. data/lib/doing/template_string.rb +2 -24
  157. data/lib/doing/types.rb +9 -0
  158. data/lib/doing/util.rb +20 -16
  159. data/lib/doing/version.rb +1 -1
  160. data/lib/doing/wwid.rb +91 -51
  161. data/lib/doing.rb +5 -6
  162. data/lib/examples/commands/wiki.rb +6 -7
  163. data/lib/examples/plugins/wiki_export/wiki_export.rb +1 -1
  164. data/lib/helpers/threaded_tests.rb +69 -79
  165. data/lib/helpers/threaded_tests_string.rb +50 -0
  166. data/scripts/deploy.rb +107 -0
  167. data/scripts/runtests.sh +4 -0
  168. metadata +65 -8
  169. data/lib/doing/string.rb +0 -765
  170. data/lib/doing/symbol.rb +0 -28
@@ -374,7 +374,7 @@
374
374
  <div class="method_details first">
375
375
  <h3 class="signature first" id="clear_redo-instance_method">
376
376
 
377
- #<strong>clear_redo</strong>(filename) &#x21d2; <tt>Object</tt>
377
+ #<strong>clear_redo</strong>(filename) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
378
378
 
379
379
 
380
380
 
@@ -415,7 +415,7 @@
415
415
  <div class="method_details ">
416
416
  <h3 class="signature " id="clear_undone-instance_method">
417
417
 
418
- #<strong>clear_undone</strong>(filename = nil) &#x21d2; <tt>Object</tt>
418
+ #<strong>clear_undone</strong>(filename = nil) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
419
419
 
420
420
 
421
421
 
@@ -487,7 +487,7 @@
487
487
  <div class="method_details ">
488
488
  <h3 class="signature " id="prune_backups-instance_method">
489
489
 
490
- #<strong>prune_backups</strong>(filename, limit = 10) &#x21d2; <tt>Object</tt>
490
+ #<strong>prune_backups</strong>(filename, limit = 10) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
491
491
 
492
492
 
493
493
 
@@ -530,7 +530,7 @@
530
530
  <div class="method_details ">
531
531
  <h3 class="signature " id="redo_backup-instance_method">
532
532
 
533
- #<strong>redo_backup</strong>(filename = nil, count: 1) &#x21d2; <tt>Object</tt>
533
+ #<strong>redo_backup</strong>(filename = nil, count: 1) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
534
534
 
535
535
 
536
536
 
@@ -586,7 +586,7 @@
586
586
  <div class="method_details ">
587
587
  <h3 class="signature " id="restore_last_backup-instance_method">
588
588
 
589
- #<strong>restore_last_backup</strong>(filename = nil, count: 1) &#x21d2; <tt>Object</tt>
589
+ #<strong>restore_last_backup</strong>(filename = nil, count: 1) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
590
590
 
591
591
 
592
592
 
@@ -644,7 +644,7 @@ different from default</p>
644
644
  <div class="method_details ">
645
645
  <h3 class="signature " id="select_backup-instance_method">
646
646
 
647
- #<strong>select_backup</strong>(filename = nil) &#x21d2; <tt>Object</tt>
647
+ #<strong>select_backup</strong>(filename = nil) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
648
648
 
649
649
 
650
650
 
@@ -701,7 +701,7 @@ provided, only backups of that filename will be used.</p>
701
701
  <div class="method_details ">
702
702
  <h3 class="signature " id="select_redo-instance_method">
703
703
 
704
- #<strong>select_redo</strong>(filename = nil) &#x21d2; <tt>Object</tt>
704
+ #<strong>select_redo</strong>(filename = nil) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
705
705
 
706
706
 
707
707
 
@@ -758,7 +758,7 @@ provided, only backups of that filename will be used.</p>
758
758
  <div class="method_details ">
759
759
  <h3 class="signature " id="show_menu-instance_method">
760
760
 
761
- #<strong>show_menu</strong>(options, filename) &#x21d2; <tt>Object</tt>
761
+ #<strong>show_menu</strong>(options, filename) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
762
762
 
763
763
 
764
764
 
@@ -792,7 +792,7 @@ provided, only backups of that filename will be used.</p>
792
792
  <div class="method_details ">
793
793
  <h3 class="signature " id="write_backup-instance_method">
794
794
 
795
- #<strong>write_backup</strong>(filename = nil) &#x21d2; <tt>Object</tt>
795
+ #<strong>write_backup</strong>(filename = nil) &#x21d2; <tt><span class='object_link'><a href="../../Object.html" title="Object (class)">Object</a></span></tt>
796
796
 
797
797
 
798
798
 
@@ -836,7 +836,7 @@ in a hidden directory</p>
836
836
  </div>
837
837
 
838
838
  <div id="footer">
839
- Generated on Sat Jan 22 17:30:14 2022 by
839
+ Generated on Mon Feb 14 11:45:23 2022 by
840
840
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
841
841
  0.9.27 (ruby-3.0.1).
842
842
  </div>
@@ -499,7 +499,7 @@
499
499
  <div class="method_details first">
500
500
  <h3 class="signature first" id="args_for_editor-instance_method">
501
501
 
502
- #<strong>args_for_editor</strong>(editor) &#x21d2; <tt>Object</tt>
502
+ #<strong>args_for_editor</strong>(editor) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
503
503
 
504
504
 
505
505
 
@@ -511,7 +511,7 @@
511
511
  <div class="method_details ">
512
512
  <h3 class="signature " id="deep_merge_hashes-instance_method">
513
513
 
514
- #<strong>deep_merge_hashes</strong>(master_hash, other_hash) &#x21d2; <tt>Object</tt>
514
+ #<strong>deep_merge_hashes</strong>(master_hash, other_hash) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
515
515
 
516
516
 
517
517
 
@@ -585,7 +585,7 @@ method.</p>
585
585
  <div class="method_details ">
586
586
  <h3 class="signature " id="deep_merge_hashes!-instance_method">
587
587
 
588
- #<strong>deep_merge_hashes!</strong>(target, overwrite) &#x21d2; <tt>Object</tt>
588
+ #<strong>deep_merge_hashes!</strong>(target, overwrite) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
589
589
 
590
590
 
591
591
 
@@ -615,7 +615,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
615
615
  <div class="method_details ">
616
616
  <h3 class="signature " id="default_editor-instance_method">
617
617
 
618
- #<strong>default_editor</strong> &#x21d2; <tt>Object</tt>
618
+ #<strong>default_editor</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
619
619
 
620
620
 
621
621
 
@@ -661,7 +661,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
661
661
  <div class="method_details ">
662
662
  <h3 class="signature " id="duplicate_frozen_values-instance_method">
663
663
 
664
- #<strong>duplicate_frozen_values</strong>(target) &#x21d2; <tt>Object</tt>
664
+ #<strong>duplicate_frozen_values</strong>(target) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
665
665
 
666
666
 
667
667
 
@@ -673,7 +673,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
673
673
  <div class="method_details ">
674
674
  <h3 class="signature " id="editor_with_args-instance_method">
675
675
 
676
- #<strong>editor_with_args</strong> &#x21d2; <tt>Object</tt>
676
+ #<strong>editor_with_args</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
677
677
 
678
678
 
679
679
 
@@ -685,7 +685,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
685
685
  <div class="method_details ">
686
686
  <h3 class="signature " id="exec_available-instance_method">
687
687
 
688
- #<strong>exec_available</strong>(cli) &#x21d2; <tt>Object</tt>
688
+ #<strong>exec_available</strong>(cli) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
689
689
 
690
690
 
691
691
 
@@ -726,7 +726,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
726
726
  <div class="method_details ">
727
727
  <h3 class="signature " id="find_default_editor-instance_method">
728
728
 
729
- #<strong>find_default_editor</strong>(editor_for = &#39;default&#39;) &#x21d2; <tt>Object</tt>
729
+ #<strong>find_default_editor</strong>(editor_for = &#39;default&#39;) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
730
730
 
731
731
 
732
732
 
@@ -738,7 +738,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
738
738
  <div class="method_details ">
739
739
  <h3 class="signature " id="first_available_exec-instance_method">
740
740
 
741
- #<strong>first_available_exec</strong>(*commands) &#x21d2; <tt>Object</tt>
741
+ #<strong>first_available_exec</strong>(*commands) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
742
742
 
743
743
 
744
744
 
@@ -802,7 +802,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
802
802
  <div class="method_details ">
803
803
  <h3 class="signature " id="merge_default_proc-instance_method">
804
804
 
805
- #<strong>merge_default_proc</strong>(target, overwrite) &#x21d2; <tt>Object</tt>
805
+ #<strong>merge_default_proc</strong>(target, overwrite) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
806
806
 
807
807
 
808
808
 
@@ -814,7 +814,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
814
814
  <div class="method_details ">
815
815
  <h3 class="signature " id="merge_values-instance_method">
816
816
 
817
- #<strong>merge_values</strong>(target, overwrite) &#x21d2; <tt>Object</tt>
817
+ #<strong>merge_values</strong>(target, overwrite) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
818
818
 
819
819
 
820
820
 
@@ -826,7 +826,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
826
826
  <div class="method_details ">
827
827
  <h3 class="signature " id="safe_load_file-instance_method">
828
828
 
829
- #<strong>safe_load_file</strong>(filename) &#x21d2; <tt>Object</tt>
829
+ #<strong>safe_load_file</strong>(filename) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
830
830
 
831
831
 
832
832
 
@@ -838,7 +838,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
838
838
  <div class="method_details ">
839
839
  <h3 class="signature " id="user_home-instance_method">
840
840
 
841
- #<strong>user_home</strong> &#x21d2; <tt>Object</tt>
841
+ #<strong>user_home</strong> &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
842
842
 
843
843
 
844
844
 
@@ -850,7 +850,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
850
850
  <div class="method_details ">
851
851
  <h3 class="signature " id="write_to_file-instance_method">
852
852
 
853
- #<strong>write_to_file</strong>(file, content, backup: true) &#x21d2; <tt>Object</tt>
853
+ #<strong>write_to_file</strong>(file, content, backup: true) &#x21d2; <tt><span class='object_link'><a href="../Object.html" title="Object (class)">Object</a></span></tt>
854
854
 
855
855
 
856
856
 
@@ -925,7 +925,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
925
925
  </div>
926
926
 
927
927
  <div id="footer">
928
- Generated on Sat Jan 22 17:30:14 2022 by
928
+ Generated on Mon Feb 14 11:45:23 2022 by
929
929
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
930
930
  0.9.27 (ruby-3.0.1).
931
931
  </div>