doing 2.1.0pre → 2.1.4pre
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/.yardoc/checksums +13 -9
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +42 -10
- data/Gemfile.lock +23 -1
- data/README.md +1 -1
- data/Rakefile +2 -0
- data/bin/doing +421 -156
- data/doc/Array.html +1 -1
- data/doc/Doing/Color.html +1 -1
- data/doc/Doing/Completion.html +1 -1
- data/doc/Doing/Configuration.html +81 -90
- data/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/doc/Doing/Errors/EmptyInput.html +1 -1
- data/doc/Doing/Errors/NoResults.html +1 -1
- data/doc/Doing/Errors/PluginException.html +1 -1
- data/doc/Doing/Errors/UserCancelled.html +1 -1
- data/doc/Doing/Errors/WrongCommand.html +1 -1
- data/doc/Doing/Errors.html +1 -1
- data/doc/Doing/Hooks.html +1 -1
- data/doc/Doing/Item.html +84 -20
- data/doc/Doing/Items.html +35 -1
- data/doc/Doing/LogAdapter.html +1 -1
- data/doc/Doing/Note.html +1 -1
- data/doc/Doing/Pager.html +1 -1
- data/doc/Doing/Plugins.html +1 -1
- data/doc/Doing/Prompt.html +70 -18
- data/doc/Doing/Section.html +1 -1
- data/doc/Doing/Util.html +16 -4
- data/doc/Doing/WWID.html +27 -147
- data/doc/Doing.html +3 -3
- data/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/doc/GLI/Commands.html +1 -1
- data/doc/GLI.html +1 -1
- data/doc/Hash.html +1 -1
- data/doc/Status.html +1 -1
- data/doc/String.html +344 -4
- data/doc/Symbol.html +1 -1
- data/doc/Time.html +70 -2
- data/doc/_index.html +125 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +2 -2
- data/doc/index.html +2 -2
- data/doc/method_list.html +537 -193
- data/doc/top-level-namespace.html +2 -2
- data/doing.gemspec +2 -0
- data/doing.rdoc +276 -75
- data/lib/completion/doing.bash +20 -20
- data/lib/doing/boolean_term_parser.rb +86 -0
- data/lib/doing/configuration.rb +36 -19
- data/lib/doing/item.rb +102 -9
- data/lib/doing/items.rb +6 -0
- data/lib/doing/phrase_parser.rb +124 -0
- data/lib/doing/plugins/export/template_export.rb +29 -2
- data/lib/doing/prompt.rb +21 -11
- data/lib/doing/string.rb +47 -3
- data/lib/doing/string_chronify.rb +85 -0
- data/lib/doing/time.rb +32 -0
- data/lib/doing/util.rb +2 -5
- data/lib/doing/util_backup.rb +235 -0
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +224 -124
- data/lib/doing.rb +7 -0
- metadata +46 -2
data/doc/Doing/Item.html
CHANGED
@@ -264,6 +264,29 @@
|
|
264
264
|
<li class="public ">
|
265
265
|
<span class="summary_signature">
|
266
266
|
|
267
|
+
<a href="#duration-instance_method" title="#duration (instance method)">#<strong>duration</strong> ⇒ Object </a>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
</span>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
<span class="summary_desc"><div class='inline'><p>If the entry doesn't have a @done date, return the elapsed time.</p>
|
282
|
+
</div></span>
|
283
|
+
|
284
|
+
</li>
|
285
|
+
|
286
|
+
|
287
|
+
<li class="public ">
|
288
|
+
<span class="summary_signature">
|
289
|
+
|
267
290
|
<a href="#end_date-instance_method" title="#end_date (instance method)">#<strong>end_date</strong> ⇒ Time </a>
|
268
291
|
|
269
292
|
|
@@ -304,6 +327,28 @@
|
|
304
327
|
<span class="summary_desc"><div class='inline'><p>Test for equality between items.</p>
|
305
328
|
</div></span>
|
306
329
|
|
330
|
+
</li>
|
331
|
+
|
332
|
+
|
333
|
+
<li class="public ">
|
334
|
+
<span class="summary_signature">
|
335
|
+
|
336
|
+
<a href="#ignore_case-instance_method" title="#ignore_case (instance method)">#<strong>ignore_case</strong>(search, case_type) ⇒ Object </a>
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
</span>
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
351
|
+
|
307
352
|
</li>
|
308
353
|
|
309
354
|
|
@@ -427,7 +472,7 @@
|
|
427
472
|
<li class="public ">
|
428
473
|
<span class="summary_signature">
|
429
474
|
|
430
|
-
<a href="#search-instance_method" title="#search (instance method)">#<strong>search</strong>(search, distance: 3, negate: false, case_type: :smart
|
475
|
+
<a href="#search-instance_method" title="#search (instance method)">#<strong>search</strong>(search, distance: 3, negate: false, case_type: :smart) ⇒ Boolean </a>
|
431
476
|
|
432
477
|
|
433
478
|
|
@@ -830,7 +875,29 @@ the item belongs</p>
|
|
830
875
|
|
831
876
|
|
832
877
|
<div class="method_details first">
|
833
|
-
<h3 class="signature first" id="
|
878
|
+
<h3 class="signature first" id="duration-instance_method">
|
879
|
+
|
880
|
+
#<strong>duration</strong> ⇒ <tt>Object</tt>
|
881
|
+
|
882
|
+
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
</h3><div class="docstring">
|
887
|
+
<div class="discussion">
|
888
|
+
<p>If the entry doesn't have a @done date, return the elapsed time</p>
|
889
|
+
|
890
|
+
|
891
|
+
</div>
|
892
|
+
</div>
|
893
|
+
<div class="tags">
|
894
|
+
|
895
|
+
|
896
|
+
</div>
|
897
|
+
</div>
|
898
|
+
|
899
|
+
<div class="method_details ">
|
900
|
+
<h3 class="signature " id="end_date-instance_method">
|
834
901
|
|
835
902
|
#<strong>end_date</strong> ⇒ <tt><span class='object_link'><a href="../Time.html" title="Time (class)">Time</a></span></tt>
|
836
903
|
|
@@ -924,6 +991,18 @@ the item belongs</p>
|
|
924
991
|
</ul>
|
925
992
|
|
926
993
|
</div>
|
994
|
+
</div>
|
995
|
+
|
996
|
+
<div class="method_details ">
|
997
|
+
<h3 class="signature " id="ignore_case-instance_method">
|
998
|
+
|
999
|
+
#<strong>ignore_case</strong>(search, case_type) ⇒ <tt>Object</tt>
|
1000
|
+
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
1004
|
+
|
1005
|
+
</h3>
|
927
1006
|
</div>
|
928
1007
|
|
929
1008
|
<div class="method_details ">
|
@@ -1180,7 +1259,7 @@ value overlaps with another item's</p>
|
|
1180
1259
|
<div class="method_details ">
|
1181
1260
|
<h3 class="signature " id="search-instance_method">
|
1182
1261
|
|
1183
|
-
#<strong>search</strong>(search, distance: 3, negate: false, case_type: :smart
|
1262
|
+
#<strong>search</strong>(search, distance: 3, negate: false, case_type: :smart) ⇒ <tt>Boolean</tt>
|
1184
1263
|
|
1185
1264
|
|
1186
1265
|
|
@@ -1376,7 +1455,7 @@ type (:sensitive,
|
|
1376
1455
|
|
1377
1456
|
<li>
|
1378
1457
|
|
1379
|
-
<span class='name'
|
1458
|
+
<span class='name'>options</span>
|
1380
1459
|
|
1381
1460
|
|
1382
1461
|
<span class='type'></span>
|
@@ -1389,21 +1468,6 @@ type (:sensitive,
|
|
1389
1468
|
|
1390
1469
|
</li>
|
1391
1470
|
|
1392
|
-
<li>
|
1393
|
-
|
1394
|
-
<span class='name'>options</span>
|
1395
|
-
|
1396
|
-
|
1397
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Hash.html" title="Hash (class)">Hash</a></span></tt>)</span>
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
—
|
1402
|
-
<div class='inline'><p>a customizable set of options</p>
|
1403
|
-
</div>
|
1404
|
-
|
1405
|
-
</li>
|
1406
|
-
|
1407
1471
|
</ul>
|
1408
1472
|
|
1409
1473
|
|
@@ -1663,7 +1727,7 @@ type (:sensitive,
|
|
1663
1727
|
</div>
|
1664
1728
|
|
1665
1729
|
<div id="footer">
|
1666
|
-
Generated on
|
1730
|
+
Generated on Fri Dec 17 16:17:18 2021 by
|
1667
1731
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1668
1732
|
0.9.26 (ruby-3.0.1).
|
1669
1733
|
</div>
|
data/doc/Doing/Items.html
CHANGED
@@ -177,6 +177,28 @@
|
|
177
177
|
<span class="summary_desc"><div class='inline'><p>Add a new section to the sections array.</p>
|
178
178
|
</div></span>
|
179
179
|
|
180
|
+
</li>
|
181
|
+
|
182
|
+
|
183
|
+
<li class="public ">
|
184
|
+
<span class="summary_signature">
|
185
|
+
|
186
|
+
<a href="#all_tags-instance_method" title="#all_tags (instance method)">#<strong>all_tags</strong> ⇒ Object </a>
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
</span>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
201
|
+
|
180
202
|
</li>
|
181
203
|
|
182
204
|
|
@@ -497,6 +519,18 @@ creation of the section.</p>
|
|
497
519
|
</ul>
|
498
520
|
|
499
521
|
</div>
|
522
|
+
</div>
|
523
|
+
|
524
|
+
<div class="method_details ">
|
525
|
+
<h3 class="signature " id="all_tags-instance_method">
|
526
|
+
|
527
|
+
#<strong>all_tags</strong> ⇒ <tt>Object</tt>
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
</h3>
|
500
534
|
</div>
|
501
535
|
|
502
536
|
<div class="method_details ">
|
@@ -792,7 +826,7 @@ specified section</p>
|
|
792
826
|
</div>
|
793
827
|
|
794
828
|
<div id="footer">
|
795
|
-
Generated on
|
829
|
+
Generated on Fri Dec 17 16:17:18 2021 by
|
796
830
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
797
831
|
0.9.26 (ruby-3.0.1).
|
798
832
|
</div>
|
data/doc/Doing/LogAdapter.html
CHANGED
@@ -1728,7 +1728,7 @@ message (optional)</p>
|
|
1728
1728
|
</div>
|
1729
1729
|
|
1730
1730
|
<div id="footer">
|
1731
|
-
Generated on
|
1731
|
+
Generated on Fri Dec 17 16:17:19 2021 by
|
1732
1732
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1733
1733
|
0.9.26 (ruby-3.0.1).
|
1734
1734
|
</div>
|
data/doc/Doing/Note.html
CHANGED
@@ -756,7 +756,7 @@ newlines will be split</p>
|
|
756
756
|
</div>
|
757
757
|
|
758
758
|
<div id="footer">
|
759
|
-
Generated on
|
759
|
+
Generated on Fri Dec 17 16:17:18 2021 by
|
760
760
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
761
761
|
0.9.26 (ruby-3.0.1).
|
762
762
|
</div>
|
data/doc/Doing/Pager.html
CHANGED
@@ -296,7 +296,7 @@ STDOUT</p>
|
|
296
296
|
</div>
|
297
297
|
|
298
298
|
<div id="footer">
|
299
|
-
Generated on
|
299
|
+
Generated on Fri Dec 17 16:17:18 2021 by
|
300
300
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
301
301
|
0.9.26 (ruby-3.0.1).
|
302
302
|
</div>
|
data/doc/Doing/Plugins.html
CHANGED
@@ -839,7 +839,7 @@
|
|
839
839
|
</div>
|
840
840
|
|
841
841
|
<div id="footer">
|
842
|
-
Generated on
|
842
|
+
Generated on Fri Dec 17 16:17:18 2021 by
|
843
843
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
844
844
|
0.9.26 (ruby-3.0.1).
|
845
845
|
</div>
|
data/doc/Doing/Prompt.html
CHANGED
@@ -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: '') ⇒ 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'
|
444
|
+
<span class='type'></span>
|
423
445
|
|
424
446
|
|
425
447
|
|
426
448
|
—
|
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
|
-
—
|
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
|
+
— <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
|
+
— <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
|
+
— <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
|
+
— <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
|
+
— <div class='inline'><p>Show menu even if there'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
|
+
— <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
|
+
— <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
|
+
— <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: '') ⇒ <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
|
719
|
+
Generated on Fri Dec 17 16:17:18 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>
|
data/doc/Doing/Section.html
CHANGED
@@ -344,7 +344,7 @@
|
|
344
344
|
</div>
|
345
345
|
|
346
346
|
<div id="footer">
|
347
|
-
Generated on
|
347
|
+
Generated on Fri Dec 17 16:17:19 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>
|
data/doc/Doing/Util.html
CHANGED
@@ -81,14 +81,16 @@
|
|
81
81
|
|
82
82
|
<dl>
|
83
83
|
<dt>Included in:</dt>
|
84
|
-
<dd><span class='object_link'><a href="" title="Doing::Util (module)">Util</a></span></dd>
|
84
|
+
<dd><span class='object_link'><a href="" title="Doing::Util (module)">Util</a></span>, <span class='object_link'><a href="Util/Backup.html" title="Doing::Util::Backup (module)">Backup</a></span></dd>
|
85
85
|
</dl>
|
86
86
|
|
87
87
|
|
88
88
|
|
89
89
|
<dl>
|
90
90
|
<dt>Defined in:</dt>
|
91
|
-
<dd>lib/doing/util.rb
|
91
|
+
<dd>lib/doing/util.rb<span class="defines">,<br />
|
92
|
+
lib/doing/util_backup.rb</span>
|
93
|
+
</dd>
|
92
94
|
</dl>
|
93
95
|
|
94
96
|
</div>
|
@@ -103,7 +105,17 @@
|
|
103
105
|
<div class="tags">
|
104
106
|
|
105
107
|
|
106
|
-
</div>
|
108
|
+
</div><h2>Defined Under Namespace</h2>
|
109
|
+
<p class="children">
|
110
|
+
|
111
|
+
|
112
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Util/Backup.html" title="Doing::Util::Backup (module)">Backup</a></span>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
</p>
|
118
|
+
|
107
119
|
|
108
120
|
|
109
121
|
|
@@ -916,7 +928,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
|
|
916
928
|
</div>
|
917
929
|
|
918
930
|
<div id="footer">
|
919
|
-
Generated on
|
931
|
+
Generated on Fri Dec 17 16:17:18 2021 by
|
920
932
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
921
933
|
0.9.26 (ruby-3.0.1).
|
922
934
|
</div>
|