doing 2.1.12 → 2.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.irbrc +1 -0
- data/.yardoc/checksums +16 -14
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +67 -0
- data/Gemfile.lock +9 -2
- data/README.md +56 -19
- data/bin/doing +317 -113
- data/docs/doc/Array.html +117 -3
- 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 +1 -1
- data/docs/doc/Doing/Completion.html +1 -1
- data/docs/doc/Doing/Configuration.html +7 -4
- 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 +337 -14
- data/docs/doc/Doing/Items.html +66 -2
- data/docs/doc/Doing/LogAdapter.html +1 -1
- data/docs/doc/Doing/Note.html +2 -2
- data/docs/doc/Doing/Pager.html +1 -1
- data/docs/doc/Doing/Plugins.html +1 -1
- data/docs/doc/Doing/Prompt.html +103 -1
- data/docs/doc/Doing/Section.html +1 -1
- data/docs/doc/Doing/TemplateString.html +2 -2
- data/docs/doc/Doing/Util/Backup.html +84 -1
- data/docs/doc/Doing/Util.html +1 -1
- data/docs/doc/Doing/WWID.html +214 -35
- data/docs/doc/Doing.html +3 -3
- 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 +279 -0
- 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 +881 -138
- data/docs/doc/Symbol.html +1 -1
- data/docs/doc/Time.html +1 -1
- data/docs/doc/_index.html +14 -9
- data/docs/doc/class_list.html +1 -1
- data/docs/doc/file.README.html +41 -15
- data/docs/doc/index.html +41 -15
- data/docs/doc/method_list.html +408 -256
- data/docs/doc/top-level-namespace.html +2 -2
- data/docs/index.md +56 -19
- data/doing.gemspec +2 -0
- data/doing.rdoc +257 -48
- data/example_plugin.rb +2 -4
- data/lib/completion/_doing.zsh +31 -27
- data/lib/completion/doing.bash +50 -39
- data/lib/completion/doing.fish +37 -7
- data/lib/doing/array_chronify.rb +57 -0
- data/lib/doing/configuration.rb +4 -1
- data/lib/doing/item.rb +176 -0
- data/lib/doing/log_adapter.rb +1 -1
- data/lib/doing/numeric_chronify.rb +40 -0
- data/lib/doing/plugins/export/dayone_export.rb +1 -1
- data/lib/doing/plugins/export/json_export.rb +2 -2
- data/lib/doing/plugins/export/template_export.rb +47 -90
- data/lib/doing/plugins/import/calendar_import.rb +13 -1
- data/lib/doing/plugins/import/doing_import.rb +12 -1
- data/lib/doing/plugins/import/timing_import.rb +13 -1
- data/lib/doing/prompt.rb +54 -1
- data/lib/doing/string.rb +97 -33
- data/lib/doing/string_chronify.rb +112 -14
- data/lib/doing/template_string.rb +1 -1
- data/lib/doing/time.rb +6 -6
- data/lib/doing/util_backup.rb +1 -1
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +128 -103
- data/lib/doing.rb +36 -31
- data/lib/examples/plugins/say_export.rb +1 -4
- metadata +46 -2
data/docs/doc/Array.html
CHANGED
@@ -94,14 +94,16 @@
|
|
94
94
|
|
95
95
|
<dl>
|
96
96
|
<dt>Defined in:</dt>
|
97
|
-
<dd>lib/doing/array.rb
|
97
|
+
<dd>lib/doing/array.rb<span class="defines">,<br />
|
98
|
+
lib/doing/array_chronify.rb</span>
|
99
|
+
</dd>
|
98
100
|
</dl>
|
99
101
|
|
100
102
|
</div>
|
101
103
|
|
102
104
|
<h2>Overview</h2><div class="docstring">
|
103
105
|
<div class="discussion">
|
104
|
-
<p>
|
106
|
+
<p>Chronify array helpers</p>
|
105
107
|
|
106
108
|
|
107
109
|
</div>
|
@@ -217,6 +219,29 @@
|
|
217
219
|
<span class="summary_desc"><div class='inline'><p>Convert an @tags to plain strings.</p>
|
218
220
|
</div></span>
|
219
221
|
|
222
|
+
</li>
|
223
|
+
|
224
|
+
|
225
|
+
<li class="public ">
|
226
|
+
<span class="summary_signature">
|
227
|
+
|
228
|
+
<a href="#time_string-instance_method" title="#time_string (instance method)">#<strong>time_string</strong>(format: :dhm) ⇒ String </a>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
</span>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
<span class="summary_desc"><div class='inline'><p>Format [d, h, m] as string.</p>
|
243
|
+
</div></span>
|
244
|
+
|
220
245
|
</li>
|
221
246
|
|
222
247
|
|
@@ -464,6 +489,95 @@ with</p>
|
|
464
489
|
|
465
490
|
</ul>
|
466
491
|
|
492
|
+
</div>
|
493
|
+
</div>
|
494
|
+
|
495
|
+
<div class="method_details ">
|
496
|
+
<h3 class="signature " id="time_string-instance_method">
|
497
|
+
|
498
|
+
#<strong>time_string</strong>(format: :dhm) ⇒ <tt><span class='object_link'><a href="String.html" title="String (class)">String</a></span></tt>
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
</h3><div class="docstring">
|
505
|
+
<div class="discussion">
|
506
|
+
<p>Format [d, h, m] as string</p>
|
507
|
+
|
508
|
+
|
509
|
+
</div>
|
510
|
+
</div>
|
511
|
+
<div class="tags">
|
512
|
+
<p class="tag_title">Parameters:</p>
|
513
|
+
<ul class="param">
|
514
|
+
|
515
|
+
<li>
|
516
|
+
|
517
|
+
<span class='name'>time</span>
|
518
|
+
|
519
|
+
|
520
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Array (class)">Array</a></span></tt>)</span>
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
—
|
525
|
+
<div class='inline'><p>Array of [days, hours,
|
526
|
+
minutes]</p>
|
527
|
+
</div>
|
528
|
+
|
529
|
+
</li>
|
530
|
+
|
531
|
+
<li>
|
532
|
+
|
533
|
+
<span class='name'>format</span>
|
534
|
+
|
535
|
+
|
536
|
+
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
537
|
+
|
538
|
+
|
539
|
+
<em class="default">(defaults to: <tt>:dhm</tt>)</em>
|
540
|
+
|
541
|
+
|
542
|
+
—
|
543
|
+
<div class='inline'><p>The format, :dhm, :hm, :m, :clock, :natural</p>
|
544
|
+
</div>
|
545
|
+
|
546
|
+
</li>
|
547
|
+
|
548
|
+
</ul>
|
549
|
+
|
550
|
+
<p class="tag_title">Returns:</p>
|
551
|
+
<ul class="return">
|
552
|
+
|
553
|
+
<li>
|
554
|
+
|
555
|
+
|
556
|
+
<span class='type'>(<tt><span class='object_link'><a href="String.html" title="String (class)">String</a></span></tt>)</span>
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
—
|
561
|
+
<div class='inline'><p>formatted string</p>
|
562
|
+
</div>
|
563
|
+
|
564
|
+
</li>
|
565
|
+
|
566
|
+
</ul>
|
567
|
+
<p class="tag_title">Raises:</p>
|
568
|
+
<ul class="raise">
|
569
|
+
|
570
|
+
<li>
|
571
|
+
|
572
|
+
|
573
|
+
<span class='type'>(<tt>InvalidArgument</tt>)</span>
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
</li>
|
578
|
+
|
579
|
+
</ul>
|
580
|
+
|
467
581
|
</div>
|
468
582
|
</div>
|
469
583
|
|
@@ -540,7 +654,7 @@ with</p>
|
|
540
654
|
</div>
|
541
655
|
|
542
656
|
<div id="footer">
|
543
|
-
Generated on Tue
|
657
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
544
658
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
545
659
|
0.9.26 (ruby-3.0.1).
|
546
660
|
</div>
|
@@ -283,7 +283,7 @@
|
|
283
283
|
</div>
|
284
284
|
|
285
285
|
<div id="footer">
|
286
|
-
Generated on Tue
|
286
|
+
Generated on Tue Jan 18 02:48:58 2022 by
|
287
287
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
288
288
|
0.9.26 (ruby-3.0.1).
|
289
289
|
</div>
|
@@ -162,7 +162,7 @@
|
|
162
162
|
</div>
|
163
163
|
|
164
164
|
<div id="footer">
|
165
|
-
Generated on Tue
|
165
|
+
Generated on Tue Jan 18 02:48:58 2022 by
|
166
166
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
167
167
|
0.9.26 (ruby-3.0.1).
|
168
168
|
</div>
|
@@ -407,7 +407,7 @@
|
|
407
407
|
</div>
|
408
408
|
|
409
409
|
<div id="footer">
|
410
|
-
Generated on Tue
|
410
|
+
Generated on Tue Jan 18 02:48:58 2022 by
|
411
411
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
412
412
|
0.9.26 (ruby-3.0.1).
|
413
413
|
</div>
|
@@ -125,7 +125,7 @@ parser. In order to do that, a new "clause" node is added to the parse
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on Tue
|
128
|
+
Generated on Tue Jan 18 02:48:58 2022 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
130
|
0.9.26 (ruby-3.0.1).
|
131
131
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on Tue
|
117
|
+
Generated on Tue Jan 18 02:48:58 2022 by
|
118
118
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.9.26 (ruby-3.0.1).
|
120
120
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on Tue
|
108
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.26 (ruby-3.0.1).
|
111
111
|
</div>
|
data/docs/doc/Doing/Color.html
CHANGED
@@ -508,7 +508,7 @@ ANSI-sequences are stripped from the string.</p>
|
|
508
508
|
</div>
|
509
509
|
|
510
510
|
<div id="footer">
|
511
|
-
Generated on Tue
|
511
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
512
512
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
513
513
|
0.9.26 (ruby-3.0.1).
|
514
514
|
</div>
|
@@ -206,7 +206,7 @@ stdout</p>
|
|
206
206
|
</div>
|
207
207
|
|
208
208
|
<div id="footer">
|
209
|
-
Generated on Tue
|
209
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
210
210
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
211
211
|
0.9.26 (ruby-3.0.1).
|
212
212
|
</div>
|
@@ -212,7 +212,10 @@
|
|
212
212
|
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>distance</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>3</span><span class='comma'>,</span>
|
213
213
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>case</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>smart</span><span class='tstring_end'>'</span></span> <span class='comment'># sensitive, ignore, smart
|
214
214
|
</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
215
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>include_notes</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='kw'>true</span>
|
215
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>include_notes</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='kw'>true</span><span class='comma'>,</span>
|
216
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>interaction</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='lbrace'>{</span>
|
217
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>confirm_longer_than</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>5h</span><span class='tstring_end'>'</span></span>
|
218
|
+
<span class='rbrace'>}</span>
|
216
219
|
<span class='rbrace'>}</span></pre></dd>
|
217
220
|
|
218
221
|
</dl>
|
@@ -368,7 +371,7 @@
|
|
368
371
|
<li class="public ">
|
369
372
|
<span class="summary_signature">
|
370
373
|
|
371
|
-
<a href="#choose_config-instance_method" title="#choose_config (instance method)">#<strong>choose_config</strong> ⇒ String </a>
|
374
|
+
<a href="#choose_config-instance_method" title="#choose_config (instance method)">#<strong>choose_config</strong>(create: false) ⇒ String </a>
|
372
375
|
|
373
376
|
|
374
377
|
|
@@ -745,7 +748,7 @@
|
|
745
748
|
<div class="method_details ">
|
746
749
|
<h3 class="signature " id="choose_config-instance_method">
|
747
750
|
|
748
|
-
#<strong>choose_config</strong> ⇒ <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
|
751
|
+
#<strong>choose_config</strong>(create: false) ⇒ <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
|
749
752
|
|
750
753
|
|
751
754
|
|
@@ -1101,7 +1104,7 @@ matched, first match wins)</p>
|
|
1101
1104
|
</div>
|
1102
1105
|
|
1103
1106
|
<div id="footer">
|
1104
|
-
Generated on Tue
|
1107
|
+
Generated on Tue Jan 18 02:48:58 2022 by
|
1105
1108
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1106
1109
|
0.9.26 (ruby-3.0.1).
|
1107
1110
|
</div>
|
@@ -176,7 +176,7 @@
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on Tue
|
179
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
181
|
0.9.26 (ruby-3.0.1).
|
182
182
|
</div>
|
@@ -176,7 +176,7 @@
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on Tue
|
179
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
181
|
0.9.26 (ruby-3.0.1).
|
182
182
|
</div>
|
@@ -176,7 +176,7 @@
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on Tue
|
179
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
181
|
0.9.26 (ruby-3.0.1).
|
182
182
|
</div>
|
@@ -176,7 +176,7 @@
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on Tue
|
179
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
181
|
0.9.26 (ruby-3.0.1).
|
182
182
|
</div>
|
@@ -176,7 +176,7 @@
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on Tue
|
179
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
181
|
0.9.26 (ruby-3.0.1).
|
182
182
|
</div>
|
@@ -238,7 +238,7 @@
|
|
238
238
|
</div>
|
239
239
|
|
240
240
|
<div id="footer">
|
241
|
-
Generated on Tue
|
241
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
242
242
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
243
243
|
0.9.26 (ruby-3.0.1).
|
244
244
|
</div>
|
@@ -176,7 +176,7 @@
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on Tue
|
179
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
181
|
0.9.26 (ruby-3.0.1).
|
182
182
|
</div>
|
@@ -176,7 +176,7 @@
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on Tue
|
179
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
181
|
0.9.26 (ruby-3.0.1).
|
182
182
|
</div>
|
data/docs/doc/Doing/Errors.html
CHANGED
@@ -181,7 +181,7 @@
|
|
181
181
|
</div>
|
182
182
|
|
183
183
|
<div id="footer">
|
184
|
-
Generated on Tue
|
184
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
185
185
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
186
186
|
0.9.26 (ruby-3.0.1).
|
187
187
|
</div>
|
data/docs/doc/Doing/Hooks.html
CHANGED
@@ -354,7 +354,7 @@
|
|
354
354
|
</div>
|
355
355
|
|
356
356
|
<div id="footer">
|
357
|
-
Generated on Tue
|
357
|
+
Generated on Tue Jan 18 02:48:57 2022 by
|
358
358
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
359
359
|
0.9.26 (ruby-3.0.1).
|
360
360
|
</div>
|