doing 2.1.4pre → 2.1.5pre
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 +14 -13
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +21 -0
- data/Gemfile.lock +3 -1
- data/README.md +1 -1
- data/bin/doing +149 -91
- data/doc/Array.html +63 -1
- data/doc/BooleanTermParser/Clause.html +293 -0
- data/doc/BooleanTermParser/Operator.html +172 -0
- data/doc/BooleanTermParser/Query.html +417 -0
- data/doc/BooleanTermParser/QueryParser.html +135 -0
- data/doc/BooleanTermParser/QueryTransformer.html +124 -0
- data/doc/BooleanTermParser.html +115 -0
- data/doc/Doing/CLIFormat.html +131 -0
- data/doc/Doing/Color.html +2 -2
- data/doc/Doing/Completion.html +1 -1
- data/doc/Doing/Configuration.html +116 -12
- 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 +100 -73
- data/doc/Doing/Items.html +2 -2
- data/doc/Doing/LogAdapter.html +70 -1
- data/doc/Doing/Note.html +5 -134
- data/doc/Doing/Pager.html +1 -1
- data/doc/Doing/Plugins.html +380 -40
- data/doc/Doing/Prompt.html +1 -1
- data/doc/Doing/Section.html +1 -1
- data/doc/Doing/TemplateString.html +713 -0
- data/doc/Doing/Util/Backup.html +686 -0
- data/doc/Doing/Util.html +1 -1
- data/doc/Doing/WWID.html +5 -5
- data/doc/Doing.html +4 -4
- 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/PhraseParser/Operator.html +172 -0
- data/doc/PhraseParser/PhraseClause.html +303 -0
- data/doc/PhraseParser/Query.html +495 -0
- data/doc/PhraseParser/QueryParser.html +136 -0
- data/doc/PhraseParser/QueryTransformer.html +124 -0
- data/doc/PhraseParser/TermClause.html +293 -0
- data/doc/PhraseParser.html +115 -0
- data/doc/Status.html +1 -1
- data/doc/String.html +182 -12
- data/doc/Symbol.html +35 -1
- data/doc/Time.html +1 -1
- data/doc/_index.html +21 -14
- 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 +319 -175
- data/doc/top-level-namespace.html +1 -1
- data/doing.gemspec +1 -0
- data/doing.rdoc +56 -9
- data/lib/doing/array.rb +9 -0
- data/lib/doing/configuration.rb +30 -8
- data/lib/doing/item.rb +12 -3
- data/lib/doing/log_adapter.rb +28 -0
- data/lib/doing/note.rb +31 -30
- data/lib/doing/plugin_manager.rb +57 -13
- data/lib/doing/plugins/export/dayone_export.rb +209 -0
- data/lib/doing/plugins/export/template_export.rb +90 -85
- data/lib/doing/prompt.rb +9 -6
- data/lib/doing/string.rb +68 -27
- data/lib/doing/symbol.rb +4 -0
- data/lib/doing/template_string.rb +197 -0
- data/lib/doing/util.rb +4 -2
- data/lib/doing/util_backup.rb +55 -3
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +27 -18
- data/lib/doing.rb +3 -0
- data/lib/templates/doing-dayone-entry.erb +6 -0
- data/lib/templates/doing-dayone.erb +5 -0
- metadata +42 -2
data/doc/Doing/Plugins.html
CHANGED
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
<li class="public ">
|
|
204
204
|
<span class="summary_signature">
|
|
205
205
|
|
|
206
|
-
<a href="#plugin_regex-class_method" title="plugin_regex (class method)">.<strong>plugin_regex</strong>(type: :export) ⇒
|
|
206
|
+
<a href="#plugin_regex-class_method" title="plugin_regex (class method)">.<strong>plugin_regex</strong>(type: :export) ⇒ Regexp </a>
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
|
|
220
|
-
<span class="summary_desc"><div class='inline'><p>Return a regular expression of all
|
|
220
|
+
<span class="summary_desc"><div class='inline'><p>Return a regular expression of all plugin triggers for type.</p>
|
|
221
221
|
</div></span>
|
|
222
222
|
|
|
223
223
|
</li>
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
<li class="public ">
|
|
227
227
|
<span class="summary_signature">
|
|
228
228
|
|
|
229
|
-
<a href="#plugin_templates-class_method" title="plugin_templates (class method)">.<strong>plugin_templates</strong>(type: :export) ⇒
|
|
229
|
+
<a href="#plugin_templates-class_method" title="plugin_templates (class method)">.<strong>plugin_templates</strong>(type: :export) ⇒ Array<String> </a>
|
|
230
230
|
|
|
231
231
|
|
|
232
232
|
|
|
@@ -240,7 +240,8 @@
|
|
|
240
240
|
|
|
241
241
|
|
|
242
242
|
|
|
243
|
-
<span class="summary_desc"><div class='inline'
|
|
243
|
+
<span class="summary_desc"><div class='inline'><p>Return array of available template names.</p>
|
|
244
|
+
</div></span>
|
|
244
245
|
|
|
245
246
|
</li>
|
|
246
247
|
|
|
@@ -270,7 +271,7 @@
|
|
|
270
271
|
<li class="public ">
|
|
271
272
|
<span class="summary_signature">
|
|
272
273
|
|
|
273
|
-
<a href="#plugins_path-class_method" title="plugins_path (class method)">.<strong>plugins_path</strong>(add_dir = nil) ⇒
|
|
274
|
+
<a href="#plugins_path-class_method" title="plugins_path (class method)">.<strong>plugins_path</strong>(add_dir = nil) ⇒ Array </a>
|
|
274
275
|
|
|
275
276
|
|
|
276
277
|
|
|
@@ -284,7 +285,7 @@
|
|
|
284
285
|
|
|
285
286
|
|
|
286
287
|
|
|
287
|
-
<span class="summary_desc"><div class='inline'><p>
|
|
288
|
+
<span class="summary_desc"><div class='inline'><p>Setup the plugin search path.</p>
|
|
288
289
|
</div></span>
|
|
289
290
|
|
|
290
291
|
</li>
|
|
@@ -293,7 +294,7 @@
|
|
|
293
294
|
<li class="public ">
|
|
294
295
|
<span class="summary_signature">
|
|
295
296
|
|
|
296
|
-
<a href="#register-class_method" title="register (class method)">.<strong>register</strong>(title, type, klass) ⇒
|
|
297
|
+
<a href="#register-class_method" title="register (class method)">.<strong>register</strong>(title, type, klass) ⇒ Boolean </a>
|
|
297
298
|
|
|
298
299
|
|
|
299
300
|
|
|
@@ -316,7 +317,7 @@
|
|
|
316
317
|
<li class="public ">
|
|
317
318
|
<span class="summary_signature">
|
|
318
319
|
|
|
319
|
-
<a href="#template_for_trigger-class_method" title="template_for_trigger (class method)">.<strong>template_for_trigger</strong>(trigger, type: :export) ⇒
|
|
320
|
+
<a href="#template_for_trigger-class_method" title="template_for_trigger (class method)">.<strong>template_for_trigger</strong>(trigger, type: :export) ⇒ String </a>
|
|
320
321
|
|
|
321
322
|
|
|
322
323
|
|
|
@@ -330,7 +331,8 @@
|
|
|
330
331
|
|
|
331
332
|
|
|
332
333
|
|
|
333
|
-
<span class="summary_desc"><div class='inline'
|
|
334
|
+
<span class="summary_desc"><div class='inline'><p>Find and return the appropriate template for a trigger string.</p>
|
|
335
|
+
</div></span>
|
|
334
336
|
|
|
335
337
|
</li>
|
|
336
338
|
|
|
@@ -338,7 +340,7 @@
|
|
|
338
340
|
<li class="public ">
|
|
339
341
|
<span class="summary_signature">
|
|
340
342
|
|
|
341
|
-
<a href="#template_regex-class_method" title="template_regex (class method)">.<strong>template_regex</strong>(type: :export) ⇒
|
|
343
|
+
<a href="#template_regex-class_method" title="template_regex (class method)">.<strong>template_regex</strong>(type: :export) ⇒ Regexp </a>
|
|
342
344
|
|
|
343
345
|
|
|
344
346
|
|
|
@@ -352,7 +354,8 @@
|
|
|
352
354
|
|
|
353
355
|
|
|
354
356
|
|
|
355
|
-
<span class="summary_desc"><div class='inline'
|
|
357
|
+
<span class="summary_desc"><div class='inline'><p>Return a regular expression of all template triggers for type.</p>
|
|
358
|
+
</div></span>
|
|
356
359
|
|
|
357
360
|
</li>
|
|
358
361
|
|
|
@@ -382,7 +385,7 @@
|
|
|
382
385
|
<li class="public ">
|
|
383
386
|
<span class="summary_signature">
|
|
384
387
|
|
|
385
|
-
<a href="#valid_type-class_method" title="valid_type (class method)">.<strong>valid_type</strong>(type, default: nil) ⇒
|
|
388
|
+
<a href="#valid_type-class_method" title="valid_type (class method)">.<strong>valid_type</strong>(type, default: nil) ⇒ Symbol </a>
|
|
386
389
|
|
|
387
390
|
|
|
388
391
|
|
|
@@ -396,7 +399,8 @@
|
|
|
396
399
|
|
|
397
400
|
|
|
398
401
|
|
|
399
|
-
<span class="summary_desc"><div class='inline'
|
|
402
|
+
<span class="summary_desc"><div class='inline'><p>Converts a partial symbol to a valid plugin type, e.g.</p>
|
|
403
|
+
</div></span>
|
|
400
404
|
|
|
401
405
|
</li>
|
|
402
406
|
|
|
@@ -633,7 +637,7 @@
|
|
|
633
637
|
<div class="method_details ">
|
|
634
638
|
<h3 class="signature " id="plugin_regex-class_method">
|
|
635
639
|
|
|
636
|
-
.<strong>plugin_regex</strong>(type: :export) ⇒ <tt>
|
|
640
|
+
.<strong>plugin_regex</strong>(type: :export) ⇒ <tt>Regexp</tt>
|
|
637
641
|
|
|
638
642
|
|
|
639
643
|
|
|
@@ -641,8 +645,8 @@
|
|
|
641
645
|
|
|
642
646
|
</h3><div class="docstring">
|
|
643
647
|
<div class="discussion">
|
|
644
|
-
<p>Return a regular expression of all
|
|
645
|
-
|
|
648
|
+
<p>Return a regular expression of all plugin triggers
|
|
649
|
+
for type</p>
|
|
646
650
|
|
|
647
651
|
|
|
648
652
|
</div>
|
|
@@ -656,20 +660,38 @@
|
|
|
656
660
|
<span class='name'>type</span>
|
|
657
661
|
|
|
658
662
|
|
|
659
|
-
<span class='type'></span>
|
|
663
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
660
664
|
|
|
661
665
|
|
|
662
666
|
<em class="default">(defaults to: <tt>:export</tt>)</em>
|
|
663
667
|
|
|
664
668
|
|
|
665
669
|
—
|
|
666
|
-
<div class='inline'><p>The type :import or
|
|
670
|
+
<div class='inline'><p>The type :import or
|
|
671
|
+
:export</p>
|
|
667
672
|
</div>
|
|
668
673
|
|
|
669
674
|
</li>
|
|
670
675
|
|
|
671
676
|
</ul>
|
|
672
677
|
|
|
678
|
+
<p class="tag_title">Returns:</p>
|
|
679
|
+
<ul class="return">
|
|
680
|
+
|
|
681
|
+
<li>
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
<span class='type'>(<tt>Regexp</tt>)</span>
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
—
|
|
689
|
+
<div class='inline'><p>regular expression</p>
|
|
690
|
+
</div>
|
|
691
|
+
|
|
692
|
+
</li>
|
|
693
|
+
|
|
694
|
+
</ul>
|
|
673
695
|
|
|
674
696
|
</div>
|
|
675
697
|
</div>
|
|
@@ -677,13 +699,62 @@
|
|
|
677
699
|
<div class="method_details ">
|
|
678
700
|
<h3 class="signature " id="plugin_templates-class_method">
|
|
679
701
|
|
|
680
|
-
.<strong>plugin_templates</strong>(type: :export) ⇒ <tt>
|
|
702
|
+
.<strong>plugin_templates</strong>(type: :export) ⇒ <tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span><<span class='object_link'><a href="../String.html" title="String (class)">String</a></span>></tt>
|
|
681
703
|
|
|
682
704
|
|
|
683
705
|
|
|
684
706
|
|
|
685
707
|
|
|
686
|
-
</h3>
|
|
708
|
+
</h3><div class="docstring">
|
|
709
|
+
<div class="discussion">
|
|
710
|
+
<p>Return array of available template names</p>
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
</div>
|
|
714
|
+
</div>
|
|
715
|
+
<div class="tags">
|
|
716
|
+
<p class="tag_title">Parameters:</p>
|
|
717
|
+
<ul class="param">
|
|
718
|
+
|
|
719
|
+
<li>
|
|
720
|
+
|
|
721
|
+
<span class='name'>type</span>
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
<em class="default">(defaults to: <tt>:export</tt>)</em>
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
—
|
|
731
|
+
<div class='inline'><p>Plugin type (:import,
|
|
732
|
+
:export)</p>
|
|
733
|
+
</div>
|
|
734
|
+
|
|
735
|
+
</li>
|
|
736
|
+
|
|
737
|
+
</ul>
|
|
738
|
+
|
|
739
|
+
<p class="tag_title">Returns:</p>
|
|
740
|
+
<ul class="return">
|
|
741
|
+
|
|
742
|
+
<li>
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span><<span class='object_link'><a href="../String.html" title="String (class)">String</a></span>></tt>)</span>
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
—
|
|
750
|
+
<div class='inline'><p>template names</p>
|
|
751
|
+
</div>
|
|
752
|
+
|
|
753
|
+
</li>
|
|
754
|
+
|
|
755
|
+
</ul>
|
|
756
|
+
|
|
757
|
+
</div>
|
|
687
758
|
</div>
|
|
688
759
|
|
|
689
760
|
<div class="method_details ">
|
|
@@ -701,7 +772,7 @@
|
|
|
701
772
|
<div class="method_details ">
|
|
702
773
|
<h3 class="signature " id="plugins_path-class_method">
|
|
703
774
|
|
|
704
|
-
.<strong>plugins_path</strong>(add_dir = nil) ⇒ <tt>
|
|
775
|
+
.<strong>plugins_path</strong>(add_dir = nil) ⇒ <tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>
|
|
705
776
|
|
|
706
777
|
|
|
707
778
|
|
|
@@ -709,15 +780,52 @@
|
|
|
709
780
|
|
|
710
781
|
</h3><div class="docstring">
|
|
711
782
|
<div class="discussion">
|
|
712
|
-
<p>
|
|
713
|
-
|
|
714
|
-
<p>Returns an Array of plugin search paths</p>
|
|
783
|
+
<p>Setup the plugin search path</p>
|
|
715
784
|
|
|
716
785
|
|
|
717
786
|
</div>
|
|
718
787
|
</div>
|
|
719
788
|
<div class="tags">
|
|
789
|
+
<p class="tag_title">Parameters:</p>
|
|
790
|
+
<ul class="param">
|
|
791
|
+
|
|
792
|
+
<li>
|
|
793
|
+
|
|
794
|
+
<span class='name'>add_dir</span>
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
—
|
|
804
|
+
<div class='inline'><p>optional additional
|
|
805
|
+
path to include</p>
|
|
806
|
+
</div>
|
|
807
|
+
|
|
808
|
+
</li>
|
|
809
|
+
|
|
810
|
+
</ul>
|
|
811
|
+
|
|
812
|
+
<p class="tag_title">Returns:</p>
|
|
813
|
+
<ul class="return">
|
|
814
|
+
|
|
815
|
+
<li>
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
—
|
|
823
|
+
<div class='inline'><p>Returns an Array of plugin search paths</p>
|
|
824
|
+
</div>
|
|
825
|
+
|
|
826
|
+
</li>
|
|
720
827
|
|
|
828
|
+
</ul>
|
|
721
829
|
|
|
722
830
|
</div>
|
|
723
831
|
</div>
|
|
@@ -725,7 +833,7 @@
|
|
|
725
833
|
<div class="method_details ">
|
|
726
834
|
<h3 class="signature " id="register-class_method">
|
|
727
835
|
|
|
728
|
-
.<strong>register</strong>(title, type, klass) ⇒ <tt>
|
|
836
|
+
.<strong>register</strong>(title, type, klass) ⇒ <tt>Boolean</tt>
|
|
729
837
|
|
|
730
838
|
|
|
731
839
|
|
|
@@ -735,19 +843,80 @@
|
|
|
735
843
|
<div class="discussion">
|
|
736
844
|
<p>Register a plugin</p>
|
|
737
845
|
|
|
738
|
-
<p>param: +[String|Array]+ title The name of the plugin (can be an array of names)</p>
|
|
739
|
-
|
|
740
|
-
<p>param: +type+ The plugin type (:import, :export)</p>
|
|
741
|
-
|
|
742
|
-
<p>param: +klass+ The class responding to :render or :import</p>
|
|
743
|
-
|
|
744
|
-
<p>returns: Success boolean</p>
|
|
745
|
-
|
|
746
846
|
|
|
747
847
|
</div>
|
|
748
848
|
</div>
|
|
749
849
|
<div class="tags">
|
|
850
|
+
<p class="tag_title">Parameters:</p>
|
|
851
|
+
<ul class="param">
|
|
750
852
|
|
|
853
|
+
<li>
|
|
854
|
+
|
|
855
|
+
<span class='name'>title</span>
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span>|<span class='object_link'><a href="../Array.html" title="Array (class)">Array</a></span></tt>)</span>
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
—
|
|
863
|
+
<div class='inline'><p>The name of the
|
|
864
|
+
plugin (can be an array of names)</p>
|
|
865
|
+
</div>
|
|
866
|
+
|
|
867
|
+
</li>
|
|
868
|
+
|
|
869
|
+
<li>
|
|
870
|
+
|
|
871
|
+
<span class='name'>type</span>
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
—
|
|
879
|
+
<div class='inline'><p>The plugin type
|
|
880
|
+
(:import, :export)</p>
|
|
881
|
+
</div>
|
|
882
|
+
|
|
883
|
+
</li>
|
|
884
|
+
|
|
885
|
+
<li>
|
|
886
|
+
|
|
887
|
+
<span class='name'>klass</span>
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
<span class='type'>(<tt>Class</tt>)</span>
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
—
|
|
895
|
+
<div class='inline'><p>The class responding to
|
|
896
|
+
:render or :import</p>
|
|
897
|
+
</div>
|
|
898
|
+
|
|
899
|
+
</li>
|
|
900
|
+
|
|
901
|
+
</ul>
|
|
902
|
+
|
|
903
|
+
<p class="tag_title">Returns:</p>
|
|
904
|
+
<ul class="return">
|
|
905
|
+
|
|
906
|
+
<li>
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
—
|
|
914
|
+
<div class='inline'><p>Success boolean</p>
|
|
915
|
+
</div>
|
|
916
|
+
|
|
917
|
+
</li>
|
|
918
|
+
|
|
919
|
+
</ul>
|
|
751
920
|
|
|
752
921
|
</div>
|
|
753
922
|
</div>
|
|
@@ -755,7 +924,7 @@
|
|
|
755
924
|
<div class="method_details ">
|
|
756
925
|
<h3 class="signature " id="template_for_trigger-class_method">
|
|
757
926
|
|
|
758
|
-
.<strong>template_for_trigger</strong>(trigger, type: :export) ⇒ <tt>
|
|
927
|
+
.<strong>template_for_trigger</strong>(trigger, type: :export) ⇒ <tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>
|
|
759
928
|
|
|
760
929
|
|
|
761
930
|
|
|
@@ -763,12 +932,69 @@
|
|
|
763
932
|
|
|
764
933
|
</h3><div class="docstring">
|
|
765
934
|
<div class="discussion">
|
|
766
|
-
|
|
935
|
+
<p>Find and return the appropriate template for a
|
|
936
|
+
trigger string. Outputs a string that can be
|
|
937
|
+
written out to the terminal for redirection</p>
|
|
938
|
+
|
|
767
939
|
|
|
768
940
|
</div>
|
|
769
941
|
</div>
|
|
770
942
|
<div class="tags">
|
|
943
|
+
<p class="tag_title">Parameters:</p>
|
|
944
|
+
<ul class="param">
|
|
945
|
+
|
|
946
|
+
<li>
|
|
947
|
+
|
|
948
|
+
<span class='name'>trigger</span>
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
—
|
|
956
|
+
<div class='inline'><p>The trigger to test</p>
|
|
957
|
+
</div>
|
|
958
|
+
|
|
959
|
+
</li>
|
|
960
|
+
|
|
961
|
+
<li>
|
|
962
|
+
|
|
963
|
+
<span class='name'>type</span>
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
<em class="default">(defaults to: <tt>:export</tt>)</em>
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
—
|
|
973
|
+
<div class='inline'><p>the plugin type
|
|
974
|
+
(:import, :export)</p>
|
|
975
|
+
</div>
|
|
976
|
+
|
|
977
|
+
</li>
|
|
771
978
|
|
|
979
|
+
</ul>
|
|
980
|
+
|
|
981
|
+
<p class="tag_title">Returns:</p>
|
|
982
|
+
<ul class="return">
|
|
983
|
+
|
|
984
|
+
<li>
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
—
|
|
992
|
+
<div class='inline'><p>string content of template for trigger</p>
|
|
993
|
+
</div>
|
|
994
|
+
|
|
995
|
+
</li>
|
|
996
|
+
|
|
997
|
+
</ul>
|
|
772
998
|
<p class="tag_title">Raises:</p>
|
|
773
999
|
<ul class="raise">
|
|
774
1000
|
|
|
@@ -789,13 +1015,63 @@
|
|
|
789
1015
|
<div class="method_details ">
|
|
790
1016
|
<h3 class="signature " id="template_regex-class_method">
|
|
791
1017
|
|
|
792
|
-
.<strong>template_regex</strong>(type: :export) ⇒ <tt>
|
|
1018
|
+
.<strong>template_regex</strong>(type: :export) ⇒ <tt>Regexp</tt>
|
|
793
1019
|
|
|
794
1020
|
|
|
795
1021
|
|
|
796
1022
|
|
|
797
1023
|
|
|
798
|
-
</h3>
|
|
1024
|
+
</h3><div class="docstring">
|
|
1025
|
+
<div class="discussion">
|
|
1026
|
+
<p>Return a regular expression of all template
|
|
1027
|
+
triggers for type</p>
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
</div>
|
|
1031
|
+
</div>
|
|
1032
|
+
<div class="tags">
|
|
1033
|
+
<p class="tag_title">Parameters:</p>
|
|
1034
|
+
<ul class="param">
|
|
1035
|
+
|
|
1036
|
+
<li>
|
|
1037
|
+
|
|
1038
|
+
<span class='name'>type</span>
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
<em class="default">(defaults to: <tt>:export</tt>)</em>
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
—
|
|
1048
|
+
<div class='inline'><p>The type :import or
|
|
1049
|
+
:export</p>
|
|
1050
|
+
</div>
|
|
1051
|
+
|
|
1052
|
+
</li>
|
|
1053
|
+
|
|
1054
|
+
</ul>
|
|
1055
|
+
|
|
1056
|
+
<p class="tag_title">Returns:</p>
|
|
1057
|
+
<ul class="return">
|
|
1058
|
+
|
|
1059
|
+
<li>
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
<span class='type'>(<tt>Regexp</tt>)</span>
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
—
|
|
1067
|
+
<div class='inline'><p>regular expression</p>
|
|
1068
|
+
</div>
|
|
1069
|
+
|
|
1070
|
+
</li>
|
|
1071
|
+
|
|
1072
|
+
</ul>
|
|
1073
|
+
|
|
1074
|
+
</div>
|
|
799
1075
|
</div>
|
|
800
1076
|
|
|
801
1077
|
<div class="method_details ">
|
|
@@ -813,13 +1089,77 @@
|
|
|
813
1089
|
<div class="method_details ">
|
|
814
1090
|
<h3 class="signature " id="valid_type-class_method">
|
|
815
1091
|
|
|
816
|
-
.<strong>valid_type</strong>(type, default: nil) ⇒ <tt>
|
|
1092
|
+
.<strong>valid_type</strong>(type, default: nil) ⇒ <tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>
|
|
817
1093
|
|
|
818
1094
|
|
|
819
1095
|
|
|
820
1096
|
|
|
821
1097
|
|
|
822
|
-
</h3>
|
|
1098
|
+
</h3><div class="docstring">
|
|
1099
|
+
<div class="discussion">
|
|
1100
|
+
<p>Converts a partial symbol to a valid plugin type,
|
|
1101
|
+
e.g. :imp => :import</p>
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
</div>
|
|
1105
|
+
</div>
|
|
1106
|
+
<div class="tags">
|
|
1107
|
+
<p class="tag_title">Parameters:</p>
|
|
1108
|
+
<ul class="param">
|
|
1109
|
+
|
|
1110
|
+
<li>
|
|
1111
|
+
|
|
1112
|
+
<span class='name'>type</span>
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
—
|
|
1120
|
+
<div class='inline'><p>the symbol to test</p>
|
|
1121
|
+
</div>
|
|
1122
|
+
|
|
1123
|
+
</li>
|
|
1124
|
+
|
|
1125
|
+
<li>
|
|
1126
|
+
|
|
1127
|
+
<span class='name'>default</span>
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
—
|
|
1137
|
+
<div class='inline'><p>fallback value</p>
|
|
1138
|
+
</div>
|
|
1139
|
+
|
|
1140
|
+
</li>
|
|
1141
|
+
|
|
1142
|
+
</ul>
|
|
1143
|
+
|
|
1144
|
+
<p class="tag_title">Returns:</p>
|
|
1145
|
+
<ul class="return">
|
|
1146
|
+
|
|
1147
|
+
<li>
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
—
|
|
1155
|
+
<div class='inline'><p>:import or :export</p>
|
|
1156
|
+
</div>
|
|
1157
|
+
|
|
1158
|
+
</li>
|
|
1159
|
+
|
|
1160
|
+
</ul>
|
|
1161
|
+
|
|
1162
|
+
</div>
|
|
823
1163
|
</div>
|
|
824
1164
|
|
|
825
1165
|
<div class="method_details ">
|
|
@@ -839,7 +1179,7 @@
|
|
|
839
1179
|
</div>
|
|
840
1180
|
|
|
841
1181
|
<div id="footer">
|
|
842
|
-
Generated on
|
|
1182
|
+
Generated on Sun Dec 19 12:35:32 2021 by
|
|
843
1183
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
844
1184
|
0.9.26 (ruby-3.0.1).
|
|
845
1185
|
</div>
|
data/doc/Doing/Prompt.html
CHANGED
|
@@ -716,7 +716,7 @@ response if no input</p>
|
|
|
716
716
|
</div>
|
|
717
717
|
|
|
718
718
|
<div id="footer">
|
|
719
|
-
Generated on
|
|
719
|
+
Generated on Sun Dec 19 12:35:32 2021 by
|
|
720
720
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
721
721
|
0.9.26 (ruby-3.0.1).
|
|
722
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 Sun Dec 19 12:35:33 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>
|