doing 2.1.2pre → 2.1.6pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +19 -15
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/.yardopts +1 -1
  6. data/CHANGELOG.md +62 -14
  7. data/Gemfile.lock +25 -1
  8. data/README.md +5 -1
  9. data/Rakefile +2 -0
  10. data/bin/doing +429 -142
  11. data/docs/_config.yml +1 -0
  12. data/{doc → docs/doc}/Array.html +63 -1
  13. data/docs/doc/BooleanTermParser/Clause.html +293 -0
  14. data/docs/doc/BooleanTermParser/Operator.html +172 -0
  15. data/docs/doc/BooleanTermParser/Query.html +417 -0
  16. data/docs/doc/BooleanTermParser/QueryParser.html +135 -0
  17. data/docs/doc/BooleanTermParser/QueryTransformer.html +124 -0
  18. data/docs/doc/BooleanTermParser.html +115 -0
  19. data/docs/doc/Doing/CLIFormat.html +131 -0
  20. data/{doc → docs/doc}/Doing/Color.html +2 -2
  21. data/{doc → docs/doc}/Doing/Completion.html +1 -1
  22. data/{doc → docs/doc}/Doing/Configuration.html +163 -69
  23. data/{doc → docs/doc}/Doing/Content.html +0 -0
  24. data/{doc → docs/doc}/Doing/Errors/DoingNoTraceError.html +1 -1
  25. data/{doc → docs/doc}/Doing/Errors/DoingRuntimeError.html +1 -1
  26. data/{doc → docs/doc}/Doing/Errors/DoingStandardError.html +1 -1
  27. data/{doc → docs/doc}/Doing/Errors/EmptyInput.html +1 -1
  28. data/{doc → docs/doc}/Doing/Errors/NoResults.html +1 -1
  29. data/{doc → docs/doc}/Doing/Errors/PluginException.html +1 -1
  30. data/{doc → docs/doc}/Doing/Errors/UserCancelled.html +1 -1
  31. data/{doc → docs/doc}/Doing/Errors/WrongCommand.html +1 -1
  32. data/{doc → docs/doc}/Doing/Errors.html +1 -1
  33. data/{doc → docs/doc}/Doing/Hooks.html +1 -1
  34. data/{doc → docs/doc}/Doing/Item.html +135 -89
  35. data/{doc → docs/doc}/Doing/Items.html +36 -2
  36. data/{doc → docs/doc}/Doing/LogAdapter.html +70 -1
  37. data/{doc → docs/doc}/Doing/Note.html +5 -134
  38. data/{doc → docs/doc}/Doing/Pager.html +1 -1
  39. data/{doc → docs/doc}/Doing/Plugins.html +431 -35
  40. data/{doc → docs/doc}/Doing/Prompt.html +70 -18
  41. data/{doc → docs/doc}/Doing/Section.html +1 -1
  42. data/docs/doc/Doing/TemplateString.html +713 -0
  43. data/docs/doc/Doing/Util/Backup.html +686 -0
  44. data/{doc → docs/doc}/Doing/Util.html +16 -4
  45. data/{doc → docs/doc}/Doing/WWID.html +133 -73
  46. data/{doc → docs/doc}/Doing/WWIDFile.html +0 -0
  47. data/{doc → docs/doc}/Doing.html +4 -4
  48. data/{doc → docs/doc}/GLI/Commands/MarkdownDocumentListener.html +1 -1
  49. data/{doc → docs/doc}/GLI/Commands.html +1 -1
  50. data/{doc → docs/doc}/GLI.html +1 -1
  51. data/{doc → docs/doc}/Hash.html +1 -1
  52. data/docs/doc/PhraseParser/Operator.html +172 -0
  53. data/docs/doc/PhraseParser/PhraseClause.html +303 -0
  54. data/docs/doc/PhraseParser/Query.html +495 -0
  55. data/docs/doc/PhraseParser/QueryParser.html +136 -0
  56. data/docs/doc/PhraseParser/QueryTransformer.html +124 -0
  57. data/docs/doc/PhraseParser/TermClause.html +293 -0
  58. data/docs/doc/PhraseParser.html +115 -0
  59. data/{doc → docs/doc}/Status.html +1 -1
  60. data/{doc → docs/doc}/String.html +319 -13
  61. data/{doc → docs/doc}/Symbol.html +35 -1
  62. data/{doc → docs/doc}/Time.html +70 -2
  63. data/{doc → docs/doc}/_index.html +132 -4
  64. data/docs/doc/class_list.html +51 -0
  65. data/{doc → docs/doc}/css/common.css +0 -0
  66. data/{doc → docs/doc}/css/full_list.css +0 -0
  67. data/{doc → docs/doc}/css/style.css +0 -0
  68. data/{doc → docs/doc}/file.README.html +6 -2
  69. data/{doc → docs/doc}/file_list.html +0 -0
  70. data/{doc → docs/doc}/frames.html +0 -0
  71. data/{doc → docs/doc}/index.html +6 -2
  72. data/{doc → docs/doc}/js/app.js +0 -0
  73. data/{doc → docs/doc}/js/full_list.js +0 -0
  74. data/{doc → docs/doc}/js/jquery.js +0 -0
  75. data/{doc → docs/doc}/method_list.html +684 -196
  76. data/{doc → docs/doc}/top-level-namespace.html +2 -2
  77. data/docs/index.md +60 -0
  78. data/doing.gemspec +3 -0
  79. data/doing.rdoc +222 -74
  80. data/example_plugin.rb +3 -1
  81. data/lib/completion/_doing.zsh +53 -41
  82. data/lib/completion/doing.bash +17 -6
  83. data/lib/completion/doing.fish +321 -2
  84. data/lib/doing/array.rb +9 -0
  85. data/lib/doing/boolean_term_parser.rb +86 -0
  86. data/lib/doing/completion/fish_completion.rb +46 -3
  87. data/lib/doing/completion/zsh_completion.rb +1 -1
  88. data/lib/doing/configuration.rb +48 -21
  89. data/lib/doing/item.rb +105 -10
  90. data/lib/doing/items.rb +6 -0
  91. data/lib/doing/log_adapter.rb +28 -0
  92. data/lib/doing/note.rb +31 -30
  93. data/lib/doing/phrase_parser.rb +124 -0
  94. data/lib/doing/plugin_manager.rb +84 -21
  95. data/lib/doing/plugins/export/dayone_export.rb +209 -0
  96. data/lib/doing/plugins/export/html_export.rb +2 -2
  97. data/lib/doing/plugins/export/json_export.rb +1 -0
  98. data/lib/doing/plugins/export/markdown_export.rb +1 -1
  99. data/lib/doing/plugins/export/template_export.rb +94 -86
  100. data/lib/doing/prompt.rb +26 -15
  101. data/lib/doing/string.rb +114 -29
  102. data/lib/doing/string_chronify.rb +5 -1
  103. data/lib/doing/symbol.rb +4 -0
  104. data/lib/doing/template_string.rb +197 -0
  105. data/lib/doing/time.rb +32 -0
  106. data/lib/doing/util.rb +6 -7
  107. data/lib/doing/util_backup.rb +287 -0
  108. data/lib/doing/version.rb +1 -1
  109. data/lib/doing/wwid.rb +105 -41
  110. data/lib/doing.rb +9 -0
  111. data/lib/examples/plugins/say_export.rb +1 -1
  112. data/lib/examples/plugins/wiki_export/wiki_export.rb +3 -3
  113. data/lib/templates/doing-dayone-entry.erb +6 -0
  114. data/lib/templates/doing-dayone.erb +5 -0
  115. metadata +136 -51
  116. data/doc/class_list.html +0 -51
@@ -217,6 +217,28 @@
217
217
  <span class="summary_desc"><div class='inline'><p>Create an interactive menu to select from a set of Items.</p>
218
218
  </div></span>
219
219
 
220
+ </li>
221
+
222
+
223
+ <li class="public ">
224
+ <span class="summary_signature">
225
+
226
+ <a href="#enter_text-class_method" title="enter_text (class method)">.<strong>enter_text</strong>(prompt, default_response: &#39;&#39;) &#x21d2; Object </a>
227
+
228
+
229
+
230
+ </span>
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+ <span class="summary_desc"><div class='inline'></div></span>
241
+
220
242
  </li>
221
243
 
222
244
 
@@ -419,27 +441,12 @@
419
441
  <span class='name'>opt</span>
420
442
 
421
443
 
422
- <span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
444
+ <span class='type'></span>
423
445
 
424
446
 
425
447
 
426
448
  &mdash;
427
- <div class='inline'><p>options</p>
428
- </div>
429
-
430
- </li>
431
-
432
- <li>
433
-
434
- <span class='name'>include_section</span>
435
-
436
-
437
- <span class='type'>(<tt>Boolean</tt>)</span>
438
-
439
-
440
-
441
- &mdash;
442
- <div class='inline'><p>include section</p>
449
+ <div class='inline'><p>Additional options</p>
443
450
  </div>
444
451
 
445
452
  </li>
@@ -454,6 +461,18 @@
454
461
  <p class="tag_title">Options Hash (<tt>**opt</tt>):</p>
455
462
  <ul class="option">
456
463
 
464
+ <li>
465
+ <span class="name">:include_section</span>
466
+ <span class="type">(<tt>Boolean</tt>)</span>
467
+ <span class="default">
468
+
469
+ </span>
470
+
471
+ &mdash; <div class='inline'><p>Include section name for each item in menu</p>
472
+ </div>
473
+
474
+ </li>
475
+
457
476
  <li>
458
477
  <span class="name">:header</span>
459
478
  <span class="type">(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
@@ -461,6 +480,9 @@
461
480
 
462
481
  </span>
463
482
 
483
+ &mdash; <div class='inline'><p>A custom header string</p>
484
+ </div>
485
+
464
486
  </li>
465
487
 
466
488
  <li>
@@ -470,6 +492,9 @@
470
492
 
471
493
  </span>
472
494
 
495
+ &mdash; <div class='inline'><p>A custom prompt string</p>
496
+ </div>
497
+
473
498
  </li>
474
499
 
475
500
  <li>
@@ -479,6 +504,9 @@
479
504
 
480
505
  </span>
481
506
 
507
+ &mdash; <div class='inline'><p>Initial query</p>
508
+ </div>
509
+
482
510
  </li>
483
511
 
484
512
  <li>
@@ -488,6 +516,9 @@
488
516
 
489
517
  </span>
490
518
 
519
+ &mdash; <div class='inline'><p>Show menu even if there&#39;s only one option</p>
520
+ </div>
521
+
491
522
  </li>
492
523
 
493
524
  <li>
@@ -497,6 +528,9 @@
497
528
 
498
529
  </span>
499
530
 
531
+ &mdash; <div class='inline'><p>Show menu</p>
532
+ </div>
533
+
500
534
  </li>
501
535
 
502
536
  <li>
@@ -506,6 +540,9 @@
506
540
 
507
541
  </span>
508
542
 
543
+ &mdash; <div class='inline'><p>Sort options</p>
544
+ </div>
545
+
509
546
  </li>
510
547
 
511
548
  <li>
@@ -515,6 +552,9 @@
515
552
 
516
553
  </span>
517
554
 
555
+ &mdash; <div class='inline'><p>Allow multiple selections</p>
556
+ </div>
557
+
518
558
  </li>
519
559
 
520
560
  <li>
@@ -534,6 +574,18 @@
534
574
 
535
575
 
536
576
  </div>
577
+ </div>
578
+
579
+ <div class="method_details ">
580
+ <h3 class="signature " id="enter_text-class_method">
581
+
582
+ .<strong>enter_text</strong>(prompt, default_response: &#39;&#39;) &#x21d2; <tt>Object</tt>
583
+
584
+
585
+
586
+
587
+
588
+ </h3>
537
589
  </div>
538
590
 
539
591
  <div class="method_details ">
@@ -664,7 +716,7 @@ response if no input</p>
664
716
  </div>
665
717
 
666
718
  <div id="footer">
667
- Generated on Sun Nov 28 05:27:33 2021 by
719
+ Generated on Mon Dec 20 15:39:45 2021 by
668
720
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
669
721
  0.9.26 (ruby-3.0.1).
670
722
  </div>
@@ -344,7 +344,7 @@
344
344
  </div>
345
345
 
346
346
  <div id="footer">
347
- Generated on Sun Nov 28 05:27:33 2021 by
347
+ Generated on Mon Dec 20 15:39:46 2021 by
348
348
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
349
349
  0.9.26 (ruby-3.0.1).
350
350
  </div>