doing 2.1.0pre → 2.1.1pre
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 +3 -2
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +14 -11
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/bin/doing +112 -87
- 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 +1 -1
- 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 +1 -1
- data/doc/Doing/Items.html +1 -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 +1 -1
- data/doc/Doing/Section.html +1 -1
- data/doc/Doing/Util.html +1 -1
- data/doc/Doing/WWID.html +1 -181
- 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 +207 -3
- data/doc/Symbol.html +1 -1
- data/doc/Time.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +2 -2
- data/doc/index.html +2 -2
- data/doc/method_list.html +84 -84
- data/doc/top-level-namespace.html +1 -1
- data/doing.rdoc +85 -18
- data/lib/completion/doing.bash +11 -11
- data/lib/doing/string_chronify.rb +81 -0
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +87 -75
- data/lib/doing.rb +1 -0
- metadata +2 -1
data/doc/Doing/Errors.html
CHANGED
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
</div>
|
|
182
182
|
|
|
183
183
|
<div id="footer">
|
|
184
|
-
Generated on Sat Nov 27
|
|
184
|
+
Generated on Sat Nov 27 13:57:12 2021 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/doc/Doing/Hooks.html
CHANGED
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
</div>
|
|
355
355
|
|
|
356
356
|
<div id="footer">
|
|
357
|
-
Generated on Sat Nov 27
|
|
357
|
+
Generated on Sat Nov 27 13:57:12 2021 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>
|
data/doc/Doing/Item.html
CHANGED
|
@@ -1663,7 +1663,7 @@ type (:sensitive,
|
|
|
1663
1663
|
</div>
|
|
1664
1664
|
|
|
1665
1665
|
<div id="footer">
|
|
1666
|
-
Generated on Sat Nov 27
|
|
1666
|
+
Generated on Sat Nov 27 13:57:12 2021 by
|
|
1667
1667
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1668
1668
|
0.9.26 (ruby-3.0.1).
|
|
1669
1669
|
</div>
|
data/doc/Doing/Items.html
CHANGED
|
@@ -792,7 +792,7 @@ specified section</p>
|
|
|
792
792
|
</div>
|
|
793
793
|
|
|
794
794
|
<div id="footer">
|
|
795
|
-
Generated on Sat Nov 27
|
|
795
|
+
Generated on Sat Nov 27 13:57:12 2021 by
|
|
796
796
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
797
797
|
0.9.26 (ruby-3.0.1).
|
|
798
798
|
</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 Sat Nov 27
|
|
1731
|
+
Generated on Sat Nov 27 13:57:12 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 Sat Nov 27
|
|
759
|
+
Generated on Sat Nov 27 13:57:12 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 Sat Nov 27
|
|
299
|
+
Generated on Sat Nov 27 13:57:12 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 Sat Nov 27
|
|
842
|
+
Generated on Sat Nov 27 13:57:12 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
|
@@ -664,7 +664,7 @@ response if no input</p>
|
|
|
664
664
|
</div>
|
|
665
665
|
|
|
666
666
|
<div id="footer">
|
|
667
|
-
Generated on Sat Nov 27
|
|
667
|
+
Generated on Sat Nov 27 13:57:12 2021 by
|
|
668
668
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
669
669
|
0.9.26 (ruby-3.0.1).
|
|
670
670
|
</div>
|
data/doc/Doing/Section.html
CHANGED
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
</div>
|
|
345
345
|
|
|
346
346
|
<div id="footer">
|
|
347
|
-
Generated on Sat Nov 27
|
|
347
|
+
Generated on Sat Nov 27 13:57:12 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
|
@@ -916,7 +916,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
|
|
|
916
916
|
</div>
|
|
917
917
|
|
|
918
918
|
<div id="footer">
|
|
919
|
-
Generated on Sat Nov 27
|
|
919
|
+
Generated on Sat Nov 27 13:57:12 2021 by
|
|
920
920
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
921
921
|
0.9.26 (ruby-3.0.1).
|
|
922
922
|
</div>
|
data/doc/Doing/WWID.html
CHANGED
|
@@ -513,52 +513,6 @@
|
|
|
513
513
|
<span class="summary_desc"><div class='inline'><p>Generate a menu of views and allow user selection.</p>
|
|
514
514
|
</div></span>
|
|
515
515
|
|
|
516
|
-
</li>
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
<li class="public ">
|
|
520
|
-
<span class="summary_signature">
|
|
521
|
-
|
|
522
|
-
<a href="#chronify-instance_method" title="#chronify (instance method)">#<strong>chronify</strong>(input, future: false, guess: :begin) ⇒ DateTime </a>
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
</span>
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
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>
|
|
537
|
-
</div></span>
|
|
538
|
-
|
|
539
|
-
</li>
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
<li class="public ">
|
|
543
|
-
<span class="summary_signature">
|
|
544
|
-
|
|
545
|
-
<a href="#chronify_qty-instance_method" title="#chronify_qty (instance method)">#<strong>chronify_qty</strong>(qty) ⇒ Integer </a>
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
</span>
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
<span class="summary_desc"><div class='inline'><p>Converts simple strings into seconds that can be added to a Time object.</p>
|
|
560
|
-
</div></span>
|
|
561
|
-
|
|
562
516
|
</li>
|
|
563
517
|
|
|
564
518
|
|
|
@@ -2177,140 +2131,6 @@ untagged keyword</p>
|
|
|
2177
2131
|
|
|
2178
2132
|
</ul>
|
|
2179
2133
|
|
|
2180
|
-
</div>
|
|
2181
|
-
</div>
|
|
2182
|
-
|
|
2183
|
-
<div class="method_details ">
|
|
2184
|
-
<h3 class="signature " id="chronify-instance_method">
|
|
2185
|
-
|
|
2186
|
-
#<strong>chronify</strong>(input, future: false, guess: :begin) ⇒ <tt>DateTime</tt>
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
</h3><div class="docstring">
|
|
2193
|
-
<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. '1d2h30m', '45m' etc.
|
|
2197
|
-
- a semantic phrase e.g. 'yesterday 5:30pm'
|
|
2198
|
-
- a strftime e.g. '2016-03-15 15:32:04 PDT'</p>
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
</div>
|
|
2202
|
-
</div>
|
|
2203
|
-
<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
|
-
—
|
|
2217
|
-
<div class='inline'><p>String to chronify</p>
|
|
2218
|
-
</div>
|
|
2219
|
-
|
|
2220
|
-
</li>
|
|
2221
|
-
|
|
2222
|
-
</ul>
|
|
2223
|
-
|
|
2224
|
-
<p class="tag_title">Returns:</p>
|
|
2225
|
-
<ul class="return">
|
|
2226
|
-
|
|
2227
|
-
<li>
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
<span class='type'>(<tt>DateTime</tt>)</span>
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
—
|
|
2235
|
-
<div class='inline'><p>result</p>
|
|
2236
|
-
</div>
|
|
2237
|
-
|
|
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
|
-
</li>
|
|
2252
|
-
|
|
2253
|
-
</ul>
|
|
2254
|
-
|
|
2255
|
-
</div>
|
|
2256
|
-
</div>
|
|
2257
|
-
|
|
2258
|
-
<div class="method_details ">
|
|
2259
|
-
<h3 class="signature " id="chronify_qty-instance_method">
|
|
2260
|
-
|
|
2261
|
-
#<strong>chronify_qty</strong>(qty) ⇒ <tt>Integer</tt>
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
</h3><div class="docstring">
|
|
2268
|
-
<div class="discussion">
|
|
2269
|
-
<p>Converts simple strings into seconds that can be added to a Time
|
|
2270
|
-
object</p>
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
</div>
|
|
2274
|
-
</div>
|
|
2275
|
-
<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
|
-
—
|
|
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
|
-
|
|
2294
|
-
</ul>
|
|
2295
|
-
|
|
2296
|
-
<p class="tag_title">Returns:</p>
|
|
2297
|
-
<ul class="return">
|
|
2298
|
-
|
|
2299
|
-
<li>
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
—
|
|
2307
|
-
<div class='inline'><p>seconds</p>
|
|
2308
|
-
</div>
|
|
2309
|
-
|
|
2310
|
-
</li>
|
|
2311
|
-
|
|
2312
|
-
</ul>
|
|
2313
|
-
|
|
2314
2134
|
</div>
|
|
2315
2135
|
</div>
|
|
2316
2136
|
|
|
@@ -4624,7 +4444,7 @@ json, or text)</p>
|
|
|
4624
4444
|
</div>
|
|
4625
4445
|
|
|
4626
4446
|
<div id="footer">
|
|
4627
|
-
Generated on Sat Nov 27
|
|
4447
|
+
Generated on Sat Nov 27 13:57:12 2021 by
|
|
4628
4448
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
4629
4449
|
0.9.26 (ruby-3.0.1).
|
|
4630
4450
|
</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/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'>'</span><span class='tstring_content'>2.1.
|
|
122
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>2.1.1pre</span><span class='tstring_end'>'</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
|
|
138
|
+
Generated on Sat Nov 27 13:57:12 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
|
|
756
|
+
Generated on Sat Nov 27 13:57:12 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>
|
data/doc/GLI/Commands.html
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
</div>
|
|
106
106
|
|
|
107
107
|
<div id="footer">
|
|
108
|
-
Generated on Sat Nov 27
|
|
108
|
+
Generated on Sat Nov 27 13:57:12 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
|
|
108
|
+
Generated on Sat Nov 27 13:57:12 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
|
|
421
|
+
Generated on Sat Nov 27 13:57:12 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
|
|
319
|
+
Generated on Sat Nov 27 13:57:12 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>
|
data/doc/String.html
CHANGED
|
@@ -99,14 +99,16 @@
|
|
|
99
99
|
|
|
100
100
|
<dl>
|
|
101
101
|
<dt>Defined in:</dt>
|
|
102
|
-
<dd>lib/doing/string.rb
|
|
102
|
+
<dd>lib/doing/string.rb<span class="defines">,<br />
|
|
103
|
+
lib/doing/string_chronify.rb</span>
|
|
104
|
+
</dd>
|
|
103
105
|
</dl>
|
|
104
106
|
|
|
105
107
|
</div>
|
|
106
108
|
|
|
107
109
|
<h2>Overview</h2><div class="docstring">
|
|
108
110
|
<div class="discussion">
|
|
109
|
-
<p>
|
|
111
|
+
<p>Chronify methods for strings</p>
|
|
110
112
|
|
|
111
113
|
|
|
112
114
|
</div>
|
|
@@ -199,6 +201,52 @@
|
|
|
199
201
|
<span class="summary_desc"><div class='inline'><p>Capitalize on the first character on string.</p>
|
|
200
202
|
</div></span>
|
|
201
203
|
|
|
204
|
+
</li>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
<li class="public ">
|
|
208
|
+
<span class="summary_signature">
|
|
209
|
+
|
|
210
|
+
<a href="#chronify-instance_method" title="#chronify (instance method)">#<strong>chronify</strong>(**options) ⇒ DateTime </a>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
</span>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
<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>
|
|
225
|
+
</div></span>
|
|
226
|
+
|
|
227
|
+
</li>
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
<li class="public ">
|
|
231
|
+
<span class="summary_signature">
|
|
232
|
+
|
|
233
|
+
<a href="#chronify_qty-instance_method" title="#chronify_qty (instance method)">#<strong>chronify_qty</strong> ⇒ Integer </a>
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
</span>
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
<span class="summary_desc"><div class='inline'><p>Converts simple strings into seconds that can be added to a Time object.</p>
|
|
248
|
+
</div></span>
|
|
249
|
+
|
|
202
250
|
</li>
|
|
203
251
|
|
|
204
252
|
|
|
@@ -1073,6 +1121,162 @@
|
|
|
1073
1121
|
|
|
1074
1122
|
</ul>
|
|
1075
1123
|
|
|
1124
|
+
</div>
|
|
1125
|
+
</div>
|
|
1126
|
+
|
|
1127
|
+
<div class="method_details ">
|
|
1128
|
+
<h3 class="signature " id="chronify-instance_method">
|
|
1129
|
+
|
|
1130
|
+
#<strong>chronify</strong>(**options) ⇒ <tt>DateTime</tt>
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
</h3><div class="docstring">
|
|
1137
|
+
<div class="discussion">
|
|
1138
|
+
<p>Converts input string into a Time object when input
|
|
1139
|
+
takes on the following formats:
|
|
1140
|
+
- interval format e.g. '1d2h30m', '45m'
|
|
1141
|
+
etc.
|
|
1142
|
+
- a semantic phrase e.g. 'yesterday
|
|
1143
|
+
5:30pm'
|
|
1144
|
+
- a strftime e.g. '2016-03-15 15:32:04
|
|
1145
|
+
PDT'</p>
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
</div>
|
|
1149
|
+
</div>
|
|
1150
|
+
<div class="tags">
|
|
1151
|
+
<p class="tag_title">Parameters:</p>
|
|
1152
|
+
<ul class="param">
|
|
1153
|
+
|
|
1154
|
+
<li>
|
|
1155
|
+
|
|
1156
|
+
<span class='name'>options</span>
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
<span class='type'></span>
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
—
|
|
1164
|
+
<div class='inline'><p>Additional options</p>
|
|
1165
|
+
</div>
|
|
1166
|
+
|
|
1167
|
+
</li>
|
|
1168
|
+
|
|
1169
|
+
</ul>
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
<p class="tag_title">Options Hash (<tt>**options</tt>):</p>
|
|
1175
|
+
<ul class="option">
|
|
1176
|
+
|
|
1177
|
+
<li>
|
|
1178
|
+
<span class="name">:future</span>
|
|
1179
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
|
1180
|
+
<span class="default">
|
|
1181
|
+
|
|
1182
|
+
</span>
|
|
1183
|
+
|
|
1184
|
+
— <div class='inline'><p>assume future date
|
|
1185
|
+
(default: false)</p>
|
|
1186
|
+
</div>
|
|
1187
|
+
|
|
1188
|
+
</li>
|
|
1189
|
+
|
|
1190
|
+
<li>
|
|
1191
|
+
<span class="name">:guess</span>
|
|
1192
|
+
<span class="type">(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
1193
|
+
<span class="default">
|
|
1194
|
+
|
|
1195
|
+
</span>
|
|
1196
|
+
|
|
1197
|
+
— <div class='inline'><p>:begin or :end to
|
|
1198
|
+
assume beginning or end of
|
|
1199
|
+
arbitrary time range</p>
|
|
1200
|
+
</div>
|
|
1201
|
+
|
|
1202
|
+
</li>
|
|
1203
|
+
|
|
1204
|
+
</ul>
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
<p class="tag_title">Returns:</p>
|
|
1208
|
+
<ul class="return">
|
|
1209
|
+
|
|
1210
|
+
<li>
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
<span class='type'>(<tt>DateTime</tt>)</span>
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
—
|
|
1218
|
+
<div class='inline'><p>result</p>
|
|
1219
|
+
</div>
|
|
1220
|
+
|
|
1221
|
+
</li>
|
|
1222
|
+
|
|
1223
|
+
</ul>
|
|
1224
|
+
<p class="tag_title">Raises:</p>
|
|
1225
|
+
<ul class="raise">
|
|
1226
|
+
|
|
1227
|
+
<li>
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
<span class='type'>(<tt>InvalidTimeExpression</tt>)</span>
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
</li>
|
|
1235
|
+
|
|
1236
|
+
</ul>
|
|
1237
|
+
|
|
1238
|
+
</div>
|
|
1239
|
+
</div>
|
|
1240
|
+
|
|
1241
|
+
<div class="method_details ">
|
|
1242
|
+
<h3 class="signature " id="chronify_qty-instance_method">
|
|
1243
|
+
|
|
1244
|
+
#<strong>chronify_qty</strong> ⇒ <tt>Integer</tt>
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
</h3><div class="docstring">
|
|
1251
|
+
<div class="discussion">
|
|
1252
|
+
<p>Converts simple strings into seconds that can be
|
|
1253
|
+
added to a Time object</p>
|
|
1254
|
+
|
|
1255
|
+
<p>Input string can be HH:MM or XX[dhm]<a href="1d2h30m,%2045m,%201.5d,%201h20m,%20etc.">[XXhm][XXm]</a></p>
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
</div>
|
|
1259
|
+
</div>
|
|
1260
|
+
<div class="tags">
|
|
1261
|
+
|
|
1262
|
+
<p class="tag_title">Returns:</p>
|
|
1263
|
+
<ul class="return">
|
|
1264
|
+
|
|
1265
|
+
<li>
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
—
|
|
1273
|
+
<div class='inline'><p>seconds</p>
|
|
1274
|
+
</div>
|
|
1275
|
+
|
|
1276
|
+
</li>
|
|
1277
|
+
|
|
1278
|
+
</ul>
|
|
1279
|
+
|
|
1076
1280
|
</div>
|
|
1077
1281
|
</div>
|
|
1078
1282
|
|
|
@@ -2280,7 +2484,7 @@ between characters</p>
|
|
|
2280
2484
|
</div>
|
|
2281
2485
|
|
|
2282
2486
|
<div id="footer">
|
|
2283
|
-
Generated on Sat Nov 27
|
|
2487
|
+
Generated on Sat Nov 27 13:57:12 2021 by
|
|
2284
2488
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2285
2489
|
0.9.26 (ruby-3.0.1).
|
|
2286
2490
|
</div>
|
data/doc/Symbol.html
CHANGED
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
</div>
|
|
241
241
|
|
|
242
242
|
<div id="footer">
|
|
243
|
-
Generated on Sat Nov 27
|
|
243
|
+
Generated on Sat Nov 27 13:57:12 2021 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/doc/Time.html
CHANGED
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
</div>
|
|
173
173
|
|
|
174
174
|
<div id="footer">
|
|
175
|
-
Generated on Sat Nov 27
|
|
175
|
+
Generated on Sat Nov 27 13:57:12 2021 by
|
|
176
176
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
177
177
|
0.9.26 (ruby-3.0.1).
|
|
178
178
|
</div>
|
data/doc/_index.html
CHANGED
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
</div>
|
|
423
423
|
|
|
424
424
|
<div id="footer">
|
|
425
|
-
Generated on Sat Nov 27
|
|
425
|
+
Generated on Sat Nov 27 13:57:12 2021 by
|
|
426
426
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
427
427
|
0.9.26 (ruby-3.0.1).
|
|
428
428
|
</div>
|