doing 2.1.0pre → 2.1.4pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +13 -9
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/CHANGELOG.md +42 -10
  6. data/Gemfile.lock +23 -1
  7. data/README.md +1 -1
  8. data/Rakefile +2 -0
  9. data/bin/doing +421 -156
  10. data/doc/Array.html +1 -1
  11. data/doc/Doing/Color.html +1 -1
  12. data/doc/Doing/Completion.html +1 -1
  13. data/doc/Doing/Configuration.html +81 -90
  14. data/doc/Doing/Errors/DoingNoTraceError.html +1 -1
  15. data/doc/Doing/Errors/DoingRuntimeError.html +1 -1
  16. data/doc/Doing/Errors/DoingStandardError.html +1 -1
  17. data/doc/Doing/Errors/EmptyInput.html +1 -1
  18. data/doc/Doing/Errors/NoResults.html +1 -1
  19. data/doc/Doing/Errors/PluginException.html +1 -1
  20. data/doc/Doing/Errors/UserCancelled.html +1 -1
  21. data/doc/Doing/Errors/WrongCommand.html +1 -1
  22. data/doc/Doing/Errors.html +1 -1
  23. data/doc/Doing/Hooks.html +1 -1
  24. data/doc/Doing/Item.html +84 -20
  25. data/doc/Doing/Items.html +35 -1
  26. data/doc/Doing/LogAdapter.html +1 -1
  27. data/doc/Doing/Note.html +1 -1
  28. data/doc/Doing/Pager.html +1 -1
  29. data/doc/Doing/Plugins.html +1 -1
  30. data/doc/Doing/Prompt.html +70 -18
  31. data/doc/Doing/Section.html +1 -1
  32. data/doc/Doing/Util.html +16 -4
  33. data/doc/Doing/WWID.html +27 -147
  34. data/doc/Doing.html +3 -3
  35. data/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
  36. data/doc/GLI/Commands.html +1 -1
  37. data/doc/GLI.html +1 -1
  38. data/doc/Hash.html +1 -1
  39. data/doc/Status.html +1 -1
  40. data/doc/String.html +344 -4
  41. data/doc/Symbol.html +1 -1
  42. data/doc/Time.html +70 -2
  43. data/doc/_index.html +125 -4
  44. data/doc/class_list.html +1 -1
  45. data/doc/file.README.html +2 -2
  46. data/doc/index.html +2 -2
  47. data/doc/method_list.html +537 -193
  48. data/doc/top-level-namespace.html +2 -2
  49. data/doing.gemspec +2 -0
  50. data/doing.rdoc +276 -75
  51. data/lib/completion/doing.bash +20 -20
  52. data/lib/doing/boolean_term_parser.rb +86 -0
  53. data/lib/doing/configuration.rb +36 -19
  54. data/lib/doing/item.rb +102 -9
  55. data/lib/doing/items.rb +6 -0
  56. data/lib/doing/phrase_parser.rb +124 -0
  57. data/lib/doing/plugins/export/template_export.rb +29 -2
  58. data/lib/doing/prompt.rb +21 -11
  59. data/lib/doing/string.rb +47 -3
  60. data/lib/doing/string_chronify.rb +85 -0
  61. data/lib/doing/time.rb +32 -0
  62. data/lib/doing/util.rb +2 -5
  63. data/lib/doing/util_backup.rb +235 -0
  64. data/lib/doing/version.rb +1 -1
  65. data/lib/doing/wwid.rb +224 -124
  66. data/lib/doing.rb +7 -0
  67. metadata +46 -2
data/doc/Doing/WWID.html CHANGED
@@ -405,7 +405,7 @@
405
405
  <li class="public ">
406
406
  <span class="summary_signature">
407
407
 
408
- <a href="#all_tags-instance_method" title="#all_tags (instance method)">#<strong>all_tags</strong>(items, opt: {}) &#x21d2; Object </a>
408
+ <a href="#all_tags-instance_method" title="#all_tags (instance method)">#<strong>all_tags</strong>(items, opt: {}, counts: false) &#x21d2; Object </a>
409
409
 
410
410
 
411
411
 
@@ -473,7 +473,7 @@
473
473
  <li class="public ">
474
474
  <span class="summary_signature">
475
475
 
476
- <a href="#choose_section-instance_method" title="#choose_section (instance method)">#<strong>choose_section</strong> &#x21d2; String </a>
476
+ <a href="#choose_section-instance_method" title="#choose_section (instance method)">#<strong>choose_section</strong>(include_all: false) &#x21d2; String </a>
477
477
 
478
478
 
479
479
 
@@ -496,7 +496,7 @@
496
496
  <li class="public ">
497
497
  <span class="summary_signature">
498
498
 
499
- <a href="#choose_view-instance_method" title="#choose_view (instance method)">#<strong>choose_view</strong> &#x21d2; String </a>
499
+ <a href="#choose_section_tag-instance_method" title="#choose_section_tag (instance method)">#<strong>choose_section_tag</strong> &#x21d2; String </a>
500
500
 
501
501
 
502
502
 
@@ -510,7 +510,7 @@
510
510
 
511
511
 
512
512
 
513
- <span class="summary_desc"><div class='inline'><p>Generate a menu of views and allow user selection.</p>
513
+ <span class="summary_desc"><div class='inline'><p>Generate a menu of sections and tags and allow user selection.</p>
514
514
  </div></span>
515
515
 
516
516
  </li>
@@ -519,7 +519,7 @@
519
519
  <li class="public ">
520
520
  <span class="summary_signature">
521
521
 
522
- <a href="#chronify-instance_method" title="#chronify (instance method)">#<strong>chronify</strong>(input, future: false, guess: :begin) &#x21d2; DateTime </a>
522
+ <a href="#choose_tag-instance_method" title="#choose_tag (instance method)">#<strong>choose_tag</strong>(section = &#39;All&#39;, include_all: false) &#x21d2; String </a>
523
523
 
524
524
 
525
525
 
@@ -533,7 +533,7 @@
533
533
 
534
534
 
535
535
 
536
- <span class="summary_desc"><div class='inline'><p>Converts input string into a Time object when input takes on the following formats: - interval format e.g.</p>
536
+ <span class="summary_desc"><div class='inline'><p>Generate a menu of tags and allow user selection.</p>
537
537
  </div></span>
538
538
 
539
539
  </li>
@@ -542,7 +542,7 @@
542
542
  <li class="public ">
543
543
  <span class="summary_signature">
544
544
 
545
- <a href="#chronify_qty-instance_method" title="#chronify_qty (instance method)">#<strong>chronify_qty</strong>(qty) &#x21d2; Integer </a>
545
+ <a href="#choose_view-instance_method" title="#choose_view (instance method)">#<strong>choose_view</strong> &#x21d2; String </a>
546
546
 
547
547
 
548
548
 
@@ -556,7 +556,7 @@
556
556
 
557
557
 
558
558
 
559
- <span class="summary_desc"><div class='inline'><p>Converts simple strings into seconds that can be added to a Time object.</p>
559
+ <span class="summary_desc"><div class='inline'><p>Generate a menu of views and allow user selection.</p>
560
560
  </div></span>
561
561
 
562
562
  </li>
@@ -1164,7 +1164,7 @@
1164
1164
  <li class="public ">
1165
1165
  <span class="summary_signature">
1166
1166
 
1167
- <a href="#reset_item-instance_method" title="#reset_item (instance method)">#<strong>reset_item</strong>(item, resume: false) &#x21d2; Object </a>
1167
+ <a href="#reset_item-instance_method" title="#reset_item (instance method)">#<strong>reset_item</strong>(item, date: nil, resume: false) &#x21d2; Object </a>
1168
1168
 
1169
1169
 
1170
1170
 
@@ -1181,29 +1181,6 @@
1181
1181
  <span class="summary_desc"><div class='inline'><p>Reset start date to current time, optionally remove done tag (resume).</p>
1182
1182
  </div></span>
1183
1183
 
1184
- </li>
1185
-
1186
-
1187
- <li class="public ">
1188
- <span class="summary_signature">
1189
-
1190
- <a href="#restore_backup-instance_method" title="#restore_backup (instance method)">#<strong>restore_backup</strong>(file) &#x21d2; Object </a>
1191
-
1192
-
1193
-
1194
- </span>
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
-
1203
-
1204
- <span class="summary_desc"><div class='inline'><p>Restore a backed up version of a file.</p>
1205
- </div></span>
1206
-
1207
1184
  </li>
1208
1185
 
1209
1186
 
@@ -1989,7 +1966,7 @@
1989
1966
  <div class="method_details ">
1990
1967
  <h3 class="signature " id="all_tags-instance_method">
1991
1968
 
1992
- #<strong>all_tags</strong>(items, opt: {}) &#x21d2; <tt>Object</tt>
1969
+ #<strong>all_tags</strong>(items, opt: {}, counts: false) &#x21d2; <tt>Object</tt>
1993
1970
 
1994
1971
 
1995
1972
 
@@ -2105,7 +2082,7 @@ untagged keyword</p>
2105
2082
  <div class="method_details ">
2106
2083
  <h3 class="signature " id="choose_section-instance_method">
2107
2084
 
2108
- #<strong>choose_section</strong> &#x21d2; <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
2085
+ #<strong>choose_section</strong>(include_all: false) &#x21d2; <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
2109
2086
 
2110
2087
 
2111
2088
 
@@ -2142,9 +2119,9 @@ untagged keyword</p>
2142
2119
  </div>
2143
2120
 
2144
2121
  <div class="method_details ">
2145
- <h3 class="signature " id="choose_view-instance_method">
2122
+ <h3 class="signature " id="choose_section_tag-instance_method">
2146
2123
 
2147
- #<strong>choose_view</strong> &#x21d2; <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
2124
+ #<strong>choose_section_tag</strong> &#x21d2; <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
2148
2125
 
2149
2126
 
2150
2127
 
@@ -2152,7 +2129,7 @@ untagged keyword</p>
2152
2129
 
2153
2130
  </h3><div class="docstring">
2154
2131
  <div class="discussion">
2155
- <p>Generate a menu of views and allow user selection</p>
2132
+ <p>Generate a menu of sections and tags and allow user selection</p>
2156
2133
 
2157
2134
 
2158
2135
  </div>
@@ -2170,7 +2147,7 @@ untagged keyword</p>
2170
2147
 
2171
2148
 
2172
2149
  &mdash;
2173
- <div class='inline'><p>The selected view name</p>
2150
+ <div class='inline'><p>The selected section or tag name</p>
2174
2151
  </div>
2175
2152
 
2176
2153
  </li>
@@ -2181,9 +2158,9 @@ untagged keyword</p>
2181
2158
  </div>
2182
2159
 
2183
2160
  <div class="method_details ">
2184
- <h3 class="signature " id="chronify-instance_method">
2161
+ <h3 class="signature " id="choose_tag-instance_method">
2185
2162
 
2186
- #<strong>chronify</strong>(input, future: false, guess: :begin) &#x21d2; <tt>DateTime</tt>
2163
+ #<strong>choose_tag</strong>(section = &#39;All&#39;, include_all: false) &#x21d2; <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
2187
2164
 
2188
2165
 
2189
2166
 
@@ -2191,63 +2168,27 @@ untagged keyword</p>
2191
2168
 
2192
2169
  </h3><div class="docstring">
2193
2170
  <div class="discussion">
2194
- <p>Converts input string into a Time object when input takes on the
2195
- following formats:
2196
- - interval format e.g. &#39;1d2h30m&#39;, &#39;45m&#39; etc.
2197
- - a semantic phrase e.g. &#39;yesterday 5:30pm&#39;
2198
- - a strftime e.g. &#39;2016-03-15 15:32:04 PDT&#39;</p>
2171
+ <p>Generate a menu of tags and allow user selection</p>
2199
2172
 
2200
2173
 
2201
2174
  </div>
2202
2175
  </div>
2203
2176
  <div class="tags">
2204
- <p class="tag_title">Parameters:</p>
2205
- <ul class="param">
2206
-
2207
- <li>
2208
-
2209
- <span class='name'>input</span>
2210
-
2211
-
2212
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
2213
-
2214
-
2215
-
2216
- &mdash;
2217
- <div class='inline'><p>String to chronify</p>
2218
- </div>
2219
-
2220
- </li>
2221
2177
 
2222
- </ul>
2223
-
2224
2178
  <p class="tag_title">Returns:</p>
2225
2179
  <ul class="return">
2226
2180
 
2227
2181
  <li>
2228
2182
 
2229
2183
 
2230
- <span class='type'>(<tt>DateTime</tt>)</span>
2184
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
2231
2185
 
2232
2186
 
2233
2187
 
2234
2188
  &mdash;
2235
- <div class='inline'><p>result</p>
2189
+ <div class='inline'><p>The selected tag name</p>
2236
2190
  </div>
2237
2191
 
2238
- </li>
2239
-
2240
- </ul>
2241
- <p class="tag_title">Raises:</p>
2242
- <ul class="raise">
2243
-
2244
- <li>
2245
-
2246
-
2247
- <span class='type'>(<tt>InvalidTimeExpression</tt>)</span>
2248
-
2249
-
2250
-
2251
2192
  </li>
2252
2193
 
2253
2194
  </ul>
@@ -2256,9 +2197,9 @@ untagged keyword</p>
2256
2197
  </div>
2257
2198
 
2258
2199
  <div class="method_details ">
2259
- <h3 class="signature " id="chronify_qty-instance_method">
2200
+ <h3 class="signature " id="choose_view-instance_method">
2260
2201
 
2261
- #<strong>chronify_qty</strong>(qty) &#x21d2; <tt>Integer</tt>
2202
+ #<strong>choose_view</strong> &#x21d2; <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
2262
2203
 
2263
2204
 
2264
2205
 
@@ -2266,45 +2207,25 @@ untagged keyword</p>
2266
2207
 
2267
2208
  </h3><div class="docstring">
2268
2209
  <div class="discussion">
2269
- <p>Converts simple strings into seconds that can be added to a Time
2270
- object</p>
2210
+ <p>Generate a menu of views and allow user selection</p>
2271
2211
 
2272
2212
 
2273
2213
  </div>
2274
2214
  </div>
2275
2215
  <div class="tags">
2276
- <p class="tag_title">Parameters:</p>
2277
- <ul class="param">
2278
-
2279
- <li>
2280
-
2281
- <span class='name'>qty</span>
2282
-
2283
-
2284
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
2285
-
2286
-
2287
-
2288
- &mdash;
2289
- <div class='inline'><p>HH:MM or XX[dhm]<a href="1d2h30m,%2045m,%0A1.5d,%201h20m,%20etc.">[XXhm][XXm]</a></p>
2290
- </div>
2291
-
2292
- </li>
2293
2216
 
2294
- </ul>
2295
-
2296
2217
  <p class="tag_title">Returns:</p>
2297
2218
  <ul class="return">
2298
2219
 
2299
2220
  <li>
2300
2221
 
2301
2222
 
2302
- <span class='type'>(<tt>Integer</tt>)</span>
2223
+ <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
2303
2224
 
2304
2225
 
2305
2226
 
2306
2227
  &mdash;
2307
- <div class='inline'><p>seconds</p>
2228
+ <div class='inline'><p>The selected view name</p>
2308
2229
  </div>
2309
2230
 
2310
2231
  </li>
@@ -3919,7 +3840,7 @@ All</p>
3919
3840
  <div class="method_details ">
3920
3841
  <h3 class="signature " id="reset_item-instance_method">
3921
3842
 
3922
- #<strong>reset_item</strong>(item, resume: false) &#x21d2; <tt>Object</tt>
3843
+ #<strong>reset_item</strong>(item, date: nil, resume: false) &#x21d2; <tt>Object</tt>
3923
3844
 
3924
3845
 
3925
3846
 
@@ -3972,47 +3893,6 @@ done tag (resume)</p>
3972
3893
  </ul>
3973
3894
 
3974
3895
 
3975
- </div>
3976
- </div>
3977
-
3978
- <div class="method_details ">
3979
- <h3 class="signature " id="restore_backup-instance_method">
3980
-
3981
- #<strong>restore_backup</strong>(file) &#x21d2; <tt>Object</tt>
3982
-
3983
-
3984
-
3985
-
3986
-
3987
- </h3><div class="docstring">
3988
- <div class="discussion">
3989
- <p>Restore a backed up version of a file</p>
3990
-
3991
-
3992
- </div>
3993
- </div>
3994
- <div class="tags">
3995
- <p class="tag_title">Parameters:</p>
3996
- <ul class="param">
3997
-
3998
- <li>
3999
-
4000
- <span class='name'>file</span>
4001
-
4002
-
4003
- <span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
4004
-
4005
-
4006
-
4007
- &mdash;
4008
- <div class='inline'><p>The filepath to restore</p>
4009
- </div>
4010
-
4011
- </li>
4012
-
4013
- </ul>
4014
-
4015
-
4016
3896
  </div>
4017
3897
  </div>
4018
3898
 
@@ -4624,7 +4504,7 @@ json, or text)</p>
4624
4504
  </div>
4625
4505
 
4626
4506
  <div id="footer">
4627
- Generated on Sat Nov 27 10:06:03 2021 by
4507
+ Generated on Fri Dec 17 16:17:18 2021 by
4628
4508
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4629
4509
  0.9.26 (ruby-3.0.1).
4630
4510
  </div>
data/doc/Doing.html CHANGED
@@ -79,7 +79,7 @@
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
81
  <dd>lib/doing/colors.rb<span class="defines">,<br />
82
- lib/doing/hash.rb,<br /> lib/doing/item.rb,<br /> lib/doing/note.rb,<br /> lib/doing/time.rb,<br /> lib/doing/util.rb,<br /> lib/doing/wwid.rb,<br /> lib/doing/array.rb,<br /> lib/doing/hooks.rb,<br /> lib/doing/items.rb,<br /> lib/doing/pager.rb,<br /> lib/doing/errors.rb,<br /> lib/doing/prompt.rb,<br /> lib/doing/string.rb,<br /> lib/doing/symbol.rb,<br /> lib/doing/section.rb,<br /> lib/doing/version.rb,<br /> lib/doing/completion.rb,<br /> lib/doing/log_adapter.rb,<br /> lib/doing/configuration.rb,<br /> lib/doing/plugin_manager.rb</span>
82
+ lib/doing/hash.rb,<br /> lib/doing/item.rb,<br /> lib/doing/note.rb,<br /> lib/doing/time.rb,<br /> lib/doing/util.rb,<br /> lib/doing/wwid.rb,<br /> lib/doing/array.rb,<br /> lib/doing/hooks.rb,<br /> lib/doing/items.rb,<br /> lib/doing/pager.rb,<br /> lib/doing/errors.rb,<br /> lib/doing/prompt.rb,<br /> lib/doing/string.rb,<br /> lib/doing/symbol.rb,<br /> lib/doing/section.rb,<br /> lib/doing/version.rb,<br /> lib/doing/completion.rb,<br /> lib/doing/log_adapter.rb,<br /> lib/doing/util_backup.rb,<br /> lib/doing/configuration.rb,<br /> lib/doing/plugin_manager.rb,<br /> lib/doing/string_chronify.rb</span>
83
83
  </dd>
84
84
  </dl>
85
85
 
@@ -119,7 +119,7 @@
119
119
  <dt id="VERSION-constant" class="">VERSION =
120
120
 
121
121
  </dt>
122
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>2.1.0pre</span><span class='tstring_end'>&#39;</span></span></pre></dd>
122
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>2.1.4pre</span><span class='tstring_end'>&#39;</span></span></pre></dd>
123
123
 
124
124
  </dl>
125
125
 
@@ -135,7 +135,7 @@
135
135
  </div>
136
136
 
137
137
  <div id="footer">
138
- Generated on Sat Nov 27 10:06:03 2021 by
138
+ Generated on Fri Dec 17 16:17:18 2021 by
139
139
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
140
140
  0.9.26 (ruby-3.0.1).
141
141
  </div>
@@ -753,7 +753,7 @@
753
753
  </div>
754
754
 
755
755
  <div id="footer">
756
- Generated on Sat Nov 27 10:06:03 2021 by
756
+ Generated on Fri Dec 17 16:17:19 2021 by
757
757
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
758
758
  0.9.26 (ruby-3.0.1).
759
759
  </div>
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Sat Nov 27 10:06:03 2021 by
108
+ Generated on Fri Dec 17 16:17:18 2021 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/doc/GLI.html CHANGED
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Sat Nov 27 10:06:03 2021 by
108
+ Generated on Fri Dec 17 16:17:18 2021 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/doc/Hash.html CHANGED
@@ -418,7 +418,7 @@
418
418
  </div>
419
419
 
420
420
  <div id="footer">
421
- Generated on Sat Nov 27 10:06:03 2021 by
421
+ Generated on Fri Dec 17 16:17:18 2021 by
422
422
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
423
423
  0.9.26 (ruby-3.0.1).
424
424
  </div>
data/doc/Status.html CHANGED
@@ -316,7 +316,7 @@
316
316
  </div>
317
317
 
318
318
  <div id="footer">
319
- Generated on Sat Nov 27 10:06:03 2021 by
319
+ Generated on Fri Dec 17 16:17:18 2021 by
320
320
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
321
321
  0.9.26 (ruby-3.0.1).
322
322
  </div>