my_help 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardoc/checksums +6 -6
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile.lock +28 -1
- data/doc/MyHelp/CLI.html +218 -74
- data/doc/MyHelp/Config.html +108 -42
- data/doc/MyHelp/Error.html +2 -2
- data/doc/MyHelp/GetConfig.html +6 -4
- data/doc/MyHelp/Git.html +8 -8
- data/doc/MyHelp/Init.html +2 -2
- data/doc/MyHelp/List.html +121 -56
- data/doc/MyHelp/Md2Hash.html +2 -2
- data/doc/MyHelp/Modify.html +2 -2
- data/doc/MyHelp/Org2Hash.html +14 -4
- data/doc/MyHelp.html +3 -3
- data/doc/Org2Yaml.html +2 -2
- data/doc/_index.html +2 -2
- data/doc/class_list.html +6 -3
- data/doc/css/full_list.css +3 -3
- data/doc/css/style.css +6 -0
- data/doc/file.README.html +2 -2
- data/doc/file_list.html +5 -2
- data/doc/index.html +2 -2
- data/doc/js/app.js +294 -264
- data/doc/js/full_list.js +30 -4
- data/doc/js/jquery.js +2 -4
- data/doc/method_list.html +63 -28
- data/doc/top-level-namespace.html +2 -2
- data/lib/my_help/cli.rb +13 -0
- data/lib/my_help/list.rb +18 -7
- data/lib/my_help/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a894f2dbb0d0c8bd125f5541200c80dedbeda4ea010ea799ceca55c03d298cc9
|
4
|
+
data.tar.gz: accda83181514df9ccecb2f65d8298483248ebabba042b12c34e8acdc740ca4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 716080d0afbbdfe615045b6ed8c49624f91c5cb5a4dfe83ed7e4dca849c81d97c6e3b14b95ecff4474575816dbb3c1e633ab7f581e7281d992efad43036bb047
|
7
|
+
data.tar.gz: 47d66e2e6e89d98b7b140ffce747fb018c849f1b49ce61f108a267e3e2de490df08db191bd381b504fd6429ac606f38793a3ec8248c06231a4c552462d1e26a5
|
data/.yardoc/checksums
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
lib/my_help.rb 7539f0f58056d44d38352f868bfea4d6fb63a9ee
|
2
|
-
lib/my_help/cli.rb
|
2
|
+
lib/my_help/cli.rb 0f30a4a8ccc9e64bff46604cf6a68a61ecdafb24
|
3
3
|
lib/my_help/init.rb ac83b0cbfd9394278da8e7bf83b089cb84e132e4
|
4
|
-
lib/my_help/list.rb
|
5
|
-
lib/my_help/config.rb
|
4
|
+
lib/my_help/list.rb 26eb7c2b98aa045e6a532d8a318fdc3025fc15f1
|
5
|
+
lib/my_help/config.rb 79e4f2824a23438acef90c7cdbdb443579360349
|
6
6
|
lib/my_help/modify.rb 17a00a9f1b4126d9c067a320b47639e5a5fec845
|
7
|
-
lib/my_help/git_cli.rb
|
7
|
+
lib/my_help/git_cli.rb 54938db3425b6660336b555796bf9238e83db055
|
8
8
|
lib/my_help/md2hash.rb 35ebd32d3f545b40cd9ebb1972dc60d53b58b22a
|
9
9
|
lib/my_help/org2yml.rb 334d0a7b648dc75b1d9504ec6d68937c70e96343
|
10
|
-
lib/my_help/version.rb
|
11
|
-
lib/my_help/org2hash.rb
|
10
|
+
lib/my_help/version.rb acfcfd4138d52fe011679a285b408e21021b0490
|
11
|
+
lib/my_help/org2hash.rb dd8539b04c030f38dc64501a6073e4225621700b
|
data/.yardoc/object_types
CHANGED
Binary file
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
my_help (1.2.
|
4
|
+
my_help (1.2.9)
|
5
5
|
colorize
|
6
6
|
command_line
|
7
7
|
thor
|
@@ -16,6 +16,7 @@ GEM
|
|
16
16
|
cucumber (>= 4.0, < 9.0)
|
17
17
|
rspec-expectations (~> 3.4)
|
18
18
|
thor (~> 1.0)
|
19
|
+
ast (2.4.2)
|
19
20
|
builder (3.2.4)
|
20
21
|
childprocess (4.1.0)
|
21
22
|
colorize (1.0.1)
|
@@ -47,11 +48,20 @@ GEM
|
|
47
48
|
cucumber-tag-expressions (4.1.0)
|
48
49
|
diff-lcs (1.5.0)
|
49
50
|
ffi (1.15.5)
|
51
|
+
json (2.6.3)
|
50
52
|
mime-types (3.4.1)
|
51
53
|
mime-types-data (~> 3.2015)
|
52
54
|
mime-types-data (3.2023.0218.1)
|
53
55
|
multi_test (1.1.0)
|
56
|
+
parallel (1.23.0)
|
57
|
+
parser (3.2.2.3)
|
58
|
+
ast (~> 2.4.1)
|
59
|
+
racc
|
60
|
+
racc (1.7.3)
|
61
|
+
rainbow (3.1.1)
|
54
62
|
rake (13.0.6)
|
63
|
+
regexp_parser (2.8.1)
|
64
|
+
rexml (3.2.6)
|
55
65
|
rspec (3.12.0)
|
56
66
|
rspec-core (~> 3.12.0)
|
57
67
|
rspec-expectations (~> 3.12.0)
|
@@ -65,9 +75,24 @@ GEM
|
|
65
75
|
diff-lcs (>= 1.2.0, < 2.0)
|
66
76
|
rspec-support (~> 3.12.0)
|
67
77
|
rspec-support (3.12.0)
|
78
|
+
rubocop (1.52.1)
|
79
|
+
json (~> 2.3)
|
80
|
+
parallel (~> 1.10)
|
81
|
+
parser (>= 3.2.2.3)
|
82
|
+
rainbow (>= 2.2.2, < 4.0)
|
83
|
+
regexp_parser (>= 1.8, < 3.0)
|
84
|
+
rexml (>= 3.2.5, < 4.0)
|
85
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
86
|
+
ruby-progressbar (~> 1.7)
|
87
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
88
|
+
rubocop-ast (1.29.0)
|
89
|
+
parser (>= 3.2.1.0)
|
90
|
+
ruby-progressbar (1.13.0)
|
68
91
|
sys-uname (1.2.3)
|
69
92
|
ffi (~> 1.1)
|
70
93
|
thor (1.2.2)
|
94
|
+
unicode-display_width (2.4.2)
|
95
|
+
yard (0.9.37)
|
71
96
|
|
72
97
|
PLATFORMS
|
73
98
|
arm64-darwin-20
|
@@ -77,6 +102,8 @@ DEPENDENCIES
|
|
77
102
|
my_help!
|
78
103
|
rake (~> 13.0)
|
79
104
|
rspec (~> 3.0)
|
105
|
+
rubocop
|
106
|
+
yard
|
80
107
|
|
81
108
|
BUNDLED WITH
|
82
109
|
2.4.14
|
data/doc/MyHelp/CLI.html
CHANGED
@@ -155,6 +155,28 @@
|
|
155
155
|
<li class="public ">
|
156
156
|
<span class="summary_signature">
|
157
157
|
|
158
|
+
<a href="#add_defaults-instance_method" title="#add_defaults (instance method)">#<strong>add_defaults</strong> ⇒ Object </a>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
</span>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
173
|
+
|
174
|
+
</li>
|
175
|
+
|
176
|
+
|
177
|
+
<li class="public ">
|
178
|
+
<span class="summary_signature">
|
179
|
+
|
158
180
|
<a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong>(*args) ⇒ Object </a>
|
159
181
|
|
160
182
|
|
@@ -281,6 +303,28 @@
|
|
281
303
|
|
282
304
|
|
283
305
|
|
306
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
307
|
+
|
308
|
+
</li>
|
309
|
+
|
310
|
+
|
311
|
+
<li class="public ">
|
312
|
+
<span class="summary_signature">
|
313
|
+
|
314
|
+
<a href="#place-instance_method" title="#place (instance method)">#<strong>place</strong>(*args) ⇒ Object </a>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
</span>
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
284
328
|
<span class="summary_desc"><div class='inline'></div></span>
|
285
329
|
|
286
330
|
</li>
|
@@ -410,7 +454,59 @@
|
|
410
454
|
|
411
455
|
|
412
456
|
<div class="method_details first">
|
413
|
-
<h3 class="signature first" id="
|
457
|
+
<h3 class="signature first" id="add_defaults-instance_method">
|
458
|
+
|
459
|
+
#<strong>add_defaults</strong> ⇒ <tt>Object</tt>
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
</h3><table class="source_code">
|
466
|
+
<tr>
|
467
|
+
<td>
|
468
|
+
<pre class="lines">
|
469
|
+
|
470
|
+
|
471
|
+
29
|
472
|
+
30
|
473
|
+
31
|
474
|
+
32
|
475
|
+
33
|
476
|
+
34
|
477
|
+
35
|
478
|
+
36
|
479
|
+
37
|
480
|
+
38
|
481
|
+
39
|
482
|
+
40
|
483
|
+
41
|
484
|
+
42</pre>
|
485
|
+
</td>
|
486
|
+
<td>
|
487
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 29</span>
|
488
|
+
|
489
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_defaults'>add_defaults</span>
|
490
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Adding defaults org files in .my_help</span><span class='tstring_end'>"</span></span>
|
491
|
+
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span>
|
492
|
+
<span class='id identifier rubyid_help_dir'>help_dir</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>help_dir</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:local_help_dir</span><span class='rbracket'>]</span>
|
493
|
+
<span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_current_orgs'>current_orgs</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_glob'>glob</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_help_dir'>help_dir</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>*.org</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span>
|
494
|
+
<span class='id identifier rubyid_map!'>map!</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_f'>f</span><span class='rparen'>)</span><span class='rbrace'>}</span>
|
495
|
+
<span class='id identifier rubyid_new_orgs'>new_orgs</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_glob'>glob</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:template_dir</span><span class='rbracket'>]</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>*.org</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
496
|
+
<span class='id identifier rubyid_new_orgs'>new_orgs</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_new_org'>new_org</span><span class='op'>|</span>
|
497
|
+
<span class='id identifier rubyid_p'>p</span> <span class='lbracket'>[</span><span class='id identifier rubyid_new_org'>new_org</span><span class='comma'>,</span> <span class='id identifier rubyid_current_orgs'>current_orgs</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_new_org'>new_org</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
498
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_current_orgs'>current_orgs</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span><span class='id identifier rubyid_new_org'>new_org</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
499
|
+
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_cp'>cp</span><span class='lparen'>(</span><span class='id identifier rubyid_new_org'>new_org</span><span class='comma'>,</span> <span class='id identifier rubyid_help_dir'>help_dir</span><span class='comma'>,</span> <span class='label'>verbose:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
500
|
+
<span class='kw'>end</span>
|
501
|
+
<span class='kw'>end</span>
|
502
|
+
<span class='kw'>end</span></pre>
|
503
|
+
</td>
|
504
|
+
</tr>
|
505
|
+
</table>
|
506
|
+
</div>
|
507
|
+
|
508
|
+
<div class="method_details ">
|
509
|
+
<h3 class="signature " id="delete-instance_method">
|
414
510
|
|
415
511
|
#<strong>delete</strong>(*args) ⇒ <tt>Object</tt>
|
416
512
|
|
@@ -424,21 +520,21 @@
|
|
424
520
|
<pre class="lines">
|
425
521
|
|
426
522
|
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
523
|
+
123
|
524
|
+
124
|
525
|
+
125
|
526
|
+
126
|
527
|
+
127
|
528
|
+
128
|
529
|
+
129
|
530
|
+
130
|
531
|
+
131
|
532
|
+
132
|
533
|
+
133
|
534
|
+
134</pre>
|
439
535
|
</td>
|
440
536
|
<td>
|
441
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line
|
537
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 123</span>
|
442
538
|
|
443
539
|
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
444
540
|
<span class='id identifier rubyid_c'>c</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span>
|
@@ -472,14 +568,14 @@
|
|
472
568
|
<pre class="lines">
|
473
569
|
|
474
570
|
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
571
|
+
90
|
572
|
+
91
|
573
|
+
92
|
574
|
+
93
|
575
|
+
94</pre>
|
480
576
|
</td>
|
481
577
|
<td>
|
482
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line
|
578
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 90</span>
|
483
579
|
|
484
580
|
<span class='kw'>def</span> <span class='id identifier rubyid_edit'>edit</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
485
581
|
<span class='id identifier rubyid_c'>c</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span>
|
@@ -506,13 +602,13 @@
|
|
506
602
|
<pre class="lines">
|
507
603
|
|
508
604
|
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
605
|
+
138
|
606
|
+
139
|
607
|
+
140
|
608
|
+
141</pre>
|
513
609
|
</td>
|
514
610
|
<td>
|
515
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line
|
611
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 138</span>
|
516
612
|
|
517
613
|
<span class='kw'>def</span> <span class='id identifier rubyid_hello'>hello</span>
|
518
614
|
<span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='gvar'>$stdin</span><span class='period'>.</span><span class='id identifier rubyid_gets'>gets</span><span class='period'>.</span><span class='id identifier rubyid_chomp'>chomp</span>
|
@@ -538,23 +634,23 @@
|
|
538
634
|
<pre class="lines">
|
539
635
|
|
540
636
|
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
637
|
+
47
|
638
|
+
48
|
639
|
+
49
|
640
|
+
50
|
641
|
+
51
|
642
|
+
52
|
643
|
+
53
|
644
|
+
54
|
645
|
+
55
|
646
|
+
56
|
647
|
+
57
|
648
|
+
58
|
649
|
+
59
|
650
|
+
60</pre>
|
555
651
|
</td>
|
556
652
|
<td>
|
557
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line
|
653
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 47</span>
|
558
654
|
|
559
655
|
<span class='kw'>def</span> <span class='id identifier rubyid_init'>init</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
560
656
|
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span> <span class='comment'># for using methods in Config
|
@@ -601,17 +697,17 @@
|
|
601
697
|
<pre class="lines">
|
602
698
|
|
603
699
|
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
700
|
+
79
|
701
|
+
80
|
702
|
+
81
|
703
|
+
82
|
704
|
+
83
|
705
|
+
84
|
706
|
+
85
|
707
|
+
86</pre>
|
612
708
|
</td>
|
613
709
|
<td>
|
614
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line
|
710
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 79</span>
|
615
711
|
|
616
712
|
<span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
617
713
|
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span>
|
@@ -641,16 +737,16 @@
|
|
641
737
|
<pre class="lines">
|
642
738
|
|
643
739
|
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
740
|
+
98
|
741
|
+
99
|
742
|
+
100
|
743
|
+
101
|
744
|
+
102
|
745
|
+
103
|
746
|
+
104</pre>
|
651
747
|
</td>
|
652
748
|
<td>
|
653
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line
|
749
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 98</span>
|
654
750
|
|
655
751
|
<span class='kw'>def</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
656
752
|
<span class='id identifier rubyid_c'>c</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span>
|
@@ -662,6 +758,54 @@
|
|
662
758
|
</td>
|
663
759
|
</tr>
|
664
760
|
</table>
|
761
|
+
</div>
|
762
|
+
|
763
|
+
<div class="method_details ">
|
764
|
+
<h3 class="signature " id="place-instance_method">
|
765
|
+
|
766
|
+
#<strong>place</strong>(*args) ⇒ <tt>Object</tt>
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
</h3><table class="source_code">
|
773
|
+
<tr>
|
774
|
+
<td>
|
775
|
+
<pre class="lines">
|
776
|
+
|
777
|
+
|
778
|
+
108
|
779
|
+
109
|
780
|
+
110
|
781
|
+
111
|
782
|
+
112
|
783
|
+
113
|
784
|
+
114
|
785
|
+
115
|
786
|
+
116
|
787
|
+
117
|
788
|
+
118
|
789
|
+
119</pre>
|
790
|
+
</td>
|
791
|
+
<td>
|
792
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 108</span>
|
793
|
+
|
794
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_place'>place</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
795
|
+
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span>
|
796
|
+
<span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_help_name'>help_name</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span> <span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>template.org</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span>
|
797
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.org</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
798
|
+
<span class='id identifier rubyid_t_file'>t_file</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>.</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_help_name'>help_name</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.org</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
799
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='id identifier rubyid_t_file'>t_file</span><span class='rparen'>)</span>
|
800
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>File </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_t_file'>t_file</span><span class='embexpr_end'>}</span><span class='tstring_content'> exists, set file_name.</span><span class='tstring_end'>"</span></span>
|
801
|
+
<span class='kw'>else</span>
|
802
|
+
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_cp'>cp</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:template_dir</span><span class='rbracket'>]</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>template.org</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span>
|
803
|
+
<span class='id identifier rubyid_t_file'>t_file</span><span class='comma'>,</span> <span class='label'>verbose:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
804
|
+
<span class='kw'>end</span>
|
805
|
+
<span class='kw'>end</span></pre>
|
806
|
+
</td>
|
807
|
+
</tr>
|
808
|
+
</table>
|
665
809
|
</div>
|
666
810
|
|
667
811
|
<div class="method_details ">
|
@@ -679,18 +823,18 @@
|
|
679
823
|
<pre class="lines">
|
680
824
|
|
681
825
|
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
826
|
+
64
|
827
|
+
65
|
828
|
+
66
|
829
|
+
67
|
830
|
+
68
|
831
|
+
69
|
832
|
+
70
|
833
|
+
71
|
834
|
+
72</pre>
|
691
835
|
</td>
|
692
836
|
<td>
|
693
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line
|
837
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 64</span>
|
694
838
|
|
695
839
|
<span class='kw'>def</span> <span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
696
840
|
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span> <span class='comment'># for using methods in Config
|
@@ -721,15 +865,15 @@
|
|
721
865
|
<pre class="lines">
|
722
866
|
|
723
867
|
|
724
|
-
|
725
|
-
|
726
|
-
|
868
|
+
20
|
869
|
+
21
|
870
|
+
22</pre>
|
727
871
|
</td>
|
728
872
|
<td>
|
729
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line
|
873
|
+
<pre class="code"><span class="info file"># File 'lib/my_help/cli.rb', line 20</span>
|
730
874
|
|
731
875
|
<span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span>
|
732
|
-
<span class='id identifier
|
876
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>my_help </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="../MyHelp.html#VERSION-constant" title="MyHelp::VERSION (constant)">VERSION</a></span></span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
733
877
|
<span class='kw'>end</span></pre>
|
734
878
|
</td>
|
735
879
|
</tr>
|
@@ -741,9 +885,9 @@
|
|
741
885
|
</div>
|
742
886
|
|
743
887
|
<div id="footer">
|
744
|
-
Generated on
|
888
|
+
Generated on Tue Oct 15 12:36:20 2024 by
|
745
889
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
746
|
-
0.9.
|
890
|
+
0.9.37 (ruby-3.0.2).
|
747
891
|
</div>
|
748
892
|
|
749
893
|
</div>
|