doing 2.1.15 → 2.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardoc/checksums +10 -10
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +109 -51
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/bin/doing +131 -45
- data/docs/doc/Array.html +1 -1
- data/docs/doc/BooleanTermParser/Clause.html +1 -1
- data/docs/doc/BooleanTermParser/Operator.html +1 -1
- data/docs/doc/BooleanTermParser/Query.html +1 -1
- data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
- data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
- data/docs/doc/BooleanTermParser.html +1 -1
- data/docs/doc/Doing/Color.html +6 -2
- data/docs/doc/Doing/Completion.html +1 -1
- data/docs/doc/Doing/Configuration.html +4 -3
- data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
- data/docs/doc/Doing/Errors/NoResults.html +1 -1
- data/docs/doc/Doing/Errors/PluginException.html +1 -1
- data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
- data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
- data/docs/doc/Doing/Errors.html +1 -1
- data/docs/doc/Doing/Hooks.html +1 -1
- data/docs/doc/Doing/Item.html +119 -1
- data/docs/doc/Doing/Items.html +1 -1
- data/docs/doc/Doing/LogAdapter.html +1 -1
- data/docs/doc/Doing/Note.html +1 -1
- data/docs/doc/Doing/Pager.html +1 -1
- data/docs/doc/Doing/Plugins.html +1 -1
- data/docs/doc/Doing/Prompt.html +69 -1
- data/docs/doc/Doing/Section.html +1 -1
- data/docs/doc/Doing/TemplateString.html +2 -2
- data/docs/doc/Doing/Util/Backup.html +1 -1
- data/docs/doc/Doing/Util.html +1 -1
- data/docs/doc/Doing/WWID.html +37 -3
- data/docs/doc/Doing.html +2 -2
- data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/docs/doc/GLI/Commands.html +1 -1
- data/docs/doc/GLI.html +1 -1
- data/docs/doc/Hash.html +1 -1
- data/docs/doc/Numeric.html +1 -1
- data/docs/doc/PhraseParser/Operator.html +1 -1
- data/docs/doc/PhraseParser/PhraseClause.html +1 -1
- data/docs/doc/PhraseParser/Query.html +1 -1
- data/docs/doc/PhraseParser/QueryParser.html +1 -1
- data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
- data/docs/doc/PhraseParser/TermClause.html +1 -1
- data/docs/doc/PhraseParser.html +1 -1
- data/docs/doc/Status.html +1 -1
- data/docs/doc/String.html +228 -1
- data/docs/doc/Symbol.html +1 -1
- data/docs/doc/Time.html +1 -1
- data/docs/doc/_index.html +1 -1
- data/docs/doc/file.README.html +2 -2
- data/docs/doc/index.html +2 -2
- data/docs/doc/method_list.html +254 -182
- data/docs/doc/top-level-namespace.html +1 -1
- data/doing.rdoc +34 -4
- data/lib/completion/_doing.zsh +7 -7
- data/lib/completion/doing.bash +10 -10
- data/lib/completion/doing.fish +6 -1
- data/lib/doing/colors.rb +4 -0
- data/lib/doing/configuration.rb +2 -1
- data/lib/doing/item.rb +51 -0
- data/lib/doing/log_adapter.rb +2 -2
- data/lib/doing/plugins/export/template_export.rb +2 -0
- data/lib/doing/prompt.rb +52 -0
- data/lib/doing/string.rb +43 -0
- data/lib/doing/string_chronify.rb +28 -0
- data/lib/doing/template_string.rb +1 -1
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +54 -23
- data/lib/doing.rb +5 -4
- metadata +2 -2
data/docs/doc/String.html
CHANGED
@@ -411,6 +411,50 @@
|
|
411
411
|
<span class="summary_desc"><div class='inline'><p>Convert (chronify) natural language dates within configured date tags (tags whose value is expected to be a date).</p>
|
412
412
|
</div></span>
|
413
413
|
|
414
|
+
</li>
|
415
|
+
|
416
|
+
|
417
|
+
<li class="public ">
|
418
|
+
<span class="summary_signature">
|
419
|
+
|
420
|
+
<a href="#highlight_search-instance_method" title="#highlight_search (instance method)">#<strong>highlight_search</strong>(search, distance: nil, negate: false, case_type: nil) ⇒ Object </a>
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
</span>
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
435
|
+
|
436
|
+
</li>
|
437
|
+
|
438
|
+
|
439
|
+
<li class="public ">
|
440
|
+
<span class="summary_signature">
|
441
|
+
|
442
|
+
<a href="#highlight_search!-instance_method" title="#highlight_search! (instance method)">#<strong>highlight_search!</strong>(search, distance: nil, negate: false, case_type: nil) ⇒ Object </a>
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
</span>
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
457
|
+
|
414
458
|
</li>
|
415
459
|
|
416
460
|
|
@@ -479,6 +523,28 @@
|
|
479
523
|
<span class="summary_desc"><div class='inline'><p>Test if line should be ignored.</p>
|
480
524
|
</div></span>
|
481
525
|
|
526
|
+
</li>
|
527
|
+
|
528
|
+
|
529
|
+
<li class="public ">
|
530
|
+
<span class="summary_signature">
|
531
|
+
|
532
|
+
<a href="#ignore_case-instance_method" title="#ignore_case (instance method)">#<strong>ignore_case</strong>(search, case_type) ⇒ Object </a>
|
533
|
+
|
534
|
+
|
535
|
+
|
536
|
+
</span>
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
547
|
+
|
482
548
|
</li>
|
483
549
|
|
484
550
|
|
@@ -931,6 +997,29 @@
|
|
931
997
|
|
932
998
|
<span class="summary_desc"><div class='inline'></div></span>
|
933
999
|
|
1000
|
+
</li>
|
1001
|
+
|
1002
|
+
|
1003
|
+
<li class="public ">
|
1004
|
+
<span class="summary_signature">
|
1005
|
+
|
1006
|
+
<a href="#split_date_range-instance_method" title="#split_date_range (instance method)">#<strong>split_date_range</strong> ⇒ Array<DateTime> </a>
|
1007
|
+
|
1008
|
+
|
1009
|
+
|
1010
|
+
</span>
|
1011
|
+
|
1012
|
+
|
1013
|
+
|
1014
|
+
|
1015
|
+
|
1016
|
+
|
1017
|
+
|
1018
|
+
|
1019
|
+
|
1020
|
+
<span class="summary_desc"><div class='inline'><p>Splits a range string and returns an array of DateTime objects as [start, end].</p>
|
1021
|
+
</div></span>
|
1022
|
+
|
934
1023
|
</li>
|
935
1024
|
|
936
1025
|
|
@@ -1023,6 +1112,28 @@
|
|
1023
1112
|
<span class="summary_desc"><div class='inline'><p>Pluralize a string based on quantity.</p>
|
1024
1113
|
</div></span>
|
1025
1114
|
|
1115
|
+
</li>
|
1116
|
+
|
1117
|
+
|
1118
|
+
<li class="public ">
|
1119
|
+
<span class="summary_signature">
|
1120
|
+
|
1121
|
+
<a href="#to_phrase_query-instance_method" title="#to_phrase_query (instance method)">#<strong>to_phrase_query</strong>(query) ⇒ Object </a>
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
</span>
|
1126
|
+
|
1127
|
+
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
1134
|
+
|
1135
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
1136
|
+
|
1026
1137
|
</li>
|
1027
1138
|
|
1028
1139
|
|
@@ -1847,6 +1958,30 @@ consider date_tags</p>
|
|
1847
1958
|
|
1848
1959
|
|
1849
1960
|
</div>
|
1961
|
+
</div>
|
1962
|
+
|
1963
|
+
<div class="method_details ">
|
1964
|
+
<h3 class="signature " id="highlight_search-instance_method">
|
1965
|
+
|
1966
|
+
#<strong>highlight_search</strong>(search, distance: nil, negate: false, case_type: nil) ⇒ <tt>Object</tt>
|
1967
|
+
|
1968
|
+
|
1969
|
+
|
1970
|
+
|
1971
|
+
|
1972
|
+
</h3>
|
1973
|
+
</div>
|
1974
|
+
|
1975
|
+
<div class="method_details ">
|
1976
|
+
<h3 class="signature " id="highlight_search!-instance_method">
|
1977
|
+
|
1978
|
+
#<strong>highlight_search!</strong>(search, distance: nil, negate: false, case_type: nil) ⇒ <tt>Object</tt>
|
1979
|
+
|
1980
|
+
|
1981
|
+
|
1982
|
+
|
1983
|
+
|
1984
|
+
</h3>
|
1850
1985
|
</div>
|
1851
1986
|
|
1852
1987
|
<div class="method_details ">
|
@@ -1988,6 +2123,18 @@ consider date_tags</p>
|
|
1988
2123
|
</ul>
|
1989
2124
|
|
1990
2125
|
</div>
|
2126
|
+
</div>
|
2127
|
+
|
2128
|
+
<div class="method_details ">
|
2129
|
+
<h3 class="signature " id="ignore_case-instance_method">
|
2130
|
+
|
2131
|
+
#<strong>ignore_case</strong>(search, case_type) ⇒ <tt>Object</tt>
|
2132
|
+
|
2133
|
+
|
2134
|
+
|
2135
|
+
|
2136
|
+
|
2137
|
+
</h3>
|
1991
2138
|
</div>
|
1992
2139
|
|
1993
2140
|
<div class="method_details ">
|
@@ -2698,6 +2845,74 @@ not recognized)</p>
|
|
2698
2845
|
|
2699
2846
|
|
2700
2847
|
</h3>
|
2848
|
+
</div>
|
2849
|
+
|
2850
|
+
<div class="method_details ">
|
2851
|
+
<h3 class="signature " id="split_date_range-instance_method">
|
2852
|
+
|
2853
|
+
#<strong>split_date_range</strong> ⇒ <tt><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span><DateTime></tt>
|
2854
|
+
|
2855
|
+
|
2856
|
+
|
2857
|
+
|
2858
|
+
|
2859
|
+
</h3><div class="docstring">
|
2860
|
+
<div class="discussion">
|
2861
|
+
<p>Splits a range string and returns an array of
|
2862
|
+
DateTime objects as [start, end]. If only one date is
|
2863
|
+
given, end time is nil.</p>
|
2864
|
+
|
2865
|
+
<p>"mon 3pm to mon 5pm".split_date_range</p>
|
2866
|
+
|
2867
|
+
|
2868
|
+
</div>
|
2869
|
+
</div>
|
2870
|
+
<div class="tags">
|
2871
|
+
|
2872
|
+
<div class="examples">
|
2873
|
+
<p class="tag_title">Examples:</p>
|
2874
|
+
|
2875
|
+
|
2876
|
+
<p class="example_title"><div class='inline'><p>Process a natural language date range</p>
|
2877
|
+
</div></p>
|
2878
|
+
|
2879
|
+
<pre class="example code"><code></code></pre>
|
2880
|
+
|
2881
|
+
</div>
|
2882
|
+
|
2883
|
+
<p class="tag_title">Returns:</p>
|
2884
|
+
<ul class="return">
|
2885
|
+
|
2886
|
+
<li>
|
2887
|
+
|
2888
|
+
|
2889
|
+
<span class='type'>(<tt><span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span><DateTime></tt>)</span>
|
2890
|
+
|
2891
|
+
|
2892
|
+
|
2893
|
+
—
|
2894
|
+
<div class='inline'><p>Start and end dates as
|
2895
|
+
array</p>
|
2896
|
+
</div>
|
2897
|
+
|
2898
|
+
</li>
|
2899
|
+
|
2900
|
+
</ul>
|
2901
|
+
<p class="tag_title">Raises:</p>
|
2902
|
+
<ul class="raise">
|
2903
|
+
|
2904
|
+
<li>
|
2905
|
+
|
2906
|
+
|
2907
|
+
<span class='type'>(<tt>InvalidTimeExpression</tt>)</span>
|
2908
|
+
|
2909
|
+
|
2910
|
+
|
2911
|
+
</li>
|
2912
|
+
|
2913
|
+
</ul>
|
2914
|
+
|
2915
|
+
</div>
|
2701
2916
|
</div>
|
2702
2917
|
|
2703
2918
|
<div class="method_details ">
|
@@ -2972,6 +3187,18 @@ object the string represents</p>
|
|
2972
3187
|
|
2973
3188
|
|
2974
3189
|
</div>
|
3190
|
+
</div>
|
3191
|
+
|
3192
|
+
<div class="method_details ">
|
3193
|
+
<h3 class="signature " id="to_phrase_query-instance_method">
|
3194
|
+
|
3195
|
+
#<strong>to_phrase_query</strong>(query) ⇒ <tt>Object</tt>
|
3196
|
+
|
3197
|
+
|
3198
|
+
|
3199
|
+
|
3200
|
+
|
3201
|
+
</h3>
|
2975
3202
|
</div>
|
2976
3203
|
|
2977
3204
|
<div class="method_details ">
|
@@ -3538,7 +3765,7 @@ Uses \S (non-whitespace) instead of . (any character)</p>
|
|
3538
3765
|
</div>
|
3539
3766
|
|
3540
3767
|
<div id="footer">
|
3541
|
-
Generated on
|
3768
|
+
Generated on Tue Jan 18 08:53:02 2022 by
|
3542
3769
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
3543
3770
|
0.9.26 (ruby-3.0.1).
|
3544
3771
|
</div>
|
data/docs/doc/Symbol.html
CHANGED
@@ -308,7 +308,7 @@
|
|
308
308
|
</div>
|
309
309
|
|
310
310
|
<div id="footer">
|
311
|
-
Generated on
|
311
|
+
Generated on Tue Jan 18 08:53:02 2022 by
|
312
312
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
313
313
|
0.9.26 (ruby-3.0.1).
|
314
314
|
</div>
|
data/docs/doc/Time.html
CHANGED
@@ -240,7 +240,7 @@
|
|
240
240
|
</div>
|
241
241
|
|
242
242
|
<div id="footer">
|
243
|
-
Generated on
|
243
|
+
Generated on Tue Jan 18 08:53:02 2022 by
|
244
244
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
245
245
|
0.9.26 (ruby-3.0.1).
|
246
246
|
</div>
|
data/docs/doc/_index.html
CHANGED
@@ -555,7 +555,7 @@
|
|
555
555
|
</div>
|
556
556
|
|
557
557
|
<div id="footer">
|
558
|
-
Generated on
|
558
|
+
Generated on Tue Jan 18 08:53:02 2022 by
|
559
559
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
560
560
|
0.9.26 (ruby-3.0.1).
|
561
561
|
</div>
|
data/docs/doc/file.README.html
CHANGED
@@ -67,7 +67,7 @@ you've done.</strong></p>
|
|
67
67
|
|
68
68
|
<!--README-->
|
69
69
|
|
70
|
-
<p>The current version of <code>doing</code> is <!--VER-->2.1.
|
70
|
+
<p>The current version of <code>doing</code> is <!--VER-->2.1.18<!--END VER-->.</p>
|
71
71
|
|
72
72
|
<p>Find all of the documentation in the <a href="https://github.com/ttscoff/doing/wiki">doing wiki</a>.</p>
|
73
73
|
|
@@ -149,7 +149,7 @@ with changes. Please target the <code>develop</code> branch with pull requests.<
|
|
149
149
|
</div></div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Tue Jan 18 08:53:02 2022 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.9.26 (ruby-3.0.1).
|
155
155
|
</div>
|
data/docs/doc/index.html
CHANGED
@@ -67,7 +67,7 @@ you've done.</strong></p>
|
|
67
67
|
|
68
68
|
<!--README-->
|
69
69
|
|
70
|
-
<p>The current version of <code>doing</code> is <!--VER-->2.1.
|
70
|
+
<p>The current version of <code>doing</code> is <!--VER-->2.1.18<!--END VER-->.</p>
|
71
71
|
|
72
72
|
<p>Find all of the documentation in the <a href="https://github.com/ttscoff/doing/wiki">doing wiki</a>.</p>
|
73
73
|
|
@@ -149,7 +149,7 @@ with changes. Please target the <code>develop</code> branch with pull requests.<
|
|
149
149
|
</div></div>
|
150
150
|
|
151
151
|
<div id="footer">
|
152
|
-
Generated on
|
152
|
+
Generated on Tue Jan 18 08:53:02 2022 by
|
153
153
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
154
154
|
0.9.26 (ruby-3.0.1).
|
155
155
|
</div>
|