Skip to content

Commit ab27f88

Browse files
committed
docs: updates from Homebrew/brew
1 parent a5dff23 commit ab27f88

File tree

1 file changed

+41
-35
lines changed

1 file changed

+41
-35
lines changed

docs/Kernel.html

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -953,9 +953,6 @@ <h3 class="signature first" id="disk_usage_readable-instance_method">
953953
<pre class="lines">
954954

955955

956-
415
957-
416
958-
417
959956
418
960957
419
961958
420
@@ -974,10 +971,13 @@ <h3 class="signature first" id="disk_usage_readable-instance_method">
974971
433
975972
434
976973
435
977-
436</pre>
974+
436
975+
437
976+
438
977+
439</pre>
978978
</td>
979979
<td>
980-
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 415</span>
980+
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 418</span>
981981

982982
<span class='kw'>def</span> <span class='id identifier rubyid_disk_usage_readable'>disk_usage_readable</span><span class='lparen'>(</span><span class='id identifier rubyid_size_in_bytes'>size_in_bytes</span><span class='rparen'>)</span>
983983
<span class='kw'>if</span> <span class='id identifier rubyid_size_in_bytes'>size_in_bytes</span> <span class='op'>&gt;=</span> <span class='int'>1_073_741_824</span>
@@ -1042,7 +1042,10 @@ <h3 class="signature " id="ensure_executable!-instance_method">
10421042
406
10431043
407
10441044
408
1045-
409</pre>
1045+
409
1046+
410
1047+
411
1048+
412</pre>
10461049
</td>
10471050
<td>
10481051
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 398</span>
@@ -1053,6 +1056,9 @@ <h3 class="signature " id="ensure_executable!-instance_method">
10531056
<span class='id identifier rubyid_executable'>executable</span> <span class='op'>=</span> <span class='lbracket'>[</span>
10541057
<span class='id identifier rubyid_which'>which</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span><span class='comma'>,</span>
10551058
<span class='id identifier rubyid_which'>which</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="top-level-namespace.html#ORIGINAL_PATHS-constant" title="ORIGINAL_PATHS (constant)">ORIGINAL_PATHS</a></span></span><span class='rparen'>)</span><span class='comma'>,</span>
1059+
<span class='comment'># We prefer the opt_bin path to a formula&#39;s executable over the prefix
1060+
</span> <span class='comment'># path where available, since the former is stable during upgrades.
1061+
</span> <span class='const'><span class='object_link'><a href="top-level-namespace.html#HOMEBREW_PREFIX-constant" title="HOMEBREW_PREFIX (constant)">HOMEBREW_PREFIX</a></span></span><span class='op'>/</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>opt/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_formula_name'>formula_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>/bin/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
10561062
<span class='const'><span class='object_link'><a href="top-level-namespace.html#HOMEBREW_PREFIX-constant" title="HOMEBREW_PREFIX (constant)">HOMEBREW_PREFIX</a></span></span><span class='op'>/</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>bin/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
10571063
<span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
10581064
<span class='kw'>return</span> <span class='id identifier rubyid_executable'>executable</span> <span class='kw'>if</span> <span class='id identifier rubyid_executable'>executable</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span>
@@ -1400,14 +1406,14 @@ <h3 class="signature " id="number_readable-instance_method">
14001406
<pre class="lines">
14011407

14021408

1403-
438
1404-
439
1405-
440
14061409
441
1407-
442</pre>
1410+
442
1411+
443
1412+
444
1413+
445</pre>
14081414
</td>
14091415
<td>
1410-
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 438</span>
1416+
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 441</span>
14111417

14121418
<span class='kw'>def</span> <span class='id identifier rubyid_number_readable'>number_readable</span><span class='lparen'>(</span><span class='id identifier rubyid_number'>number</span><span class='rparen'>)</span>
14131419
<span class='id identifier rubyid_numstr'>numstr</span> <span class='op'>=</span> <span class='id identifier rubyid_number'>number</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
@@ -2026,12 +2032,12 @@ <h3 class="signature " id="paths-instance_method">
20262032
<pre class="lines">
20272033

20282034

2029-
411
2030-
412
2031-
413</pre>
2035+
414
2036+
415
2037+
416</pre>
20322038
</td>
20332039
<td>
2034-
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 411</span>
2040+
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 414</span>
20352041

20362042
<span class='kw'>def</span> <span class='id identifier rubyid_paths'>paths</span>
20372043
<span class='ivar'>@paths</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="top-level-namespace.html#ORIGINAL_PATHS-constant" title="ORIGINAL_PATHS (constant)">ORIGINAL_PATHS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_uniq'>uniq</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:to_s</span><span class='rparen'>)</span>
@@ -2288,14 +2294,14 @@ <h3 class="signature " id="redact_secrets-instance_method">
22882294
<pre class="lines">
22892295

22902296

2291-
513
2292-
514
2293-
515
22942297
516
2295-
517</pre>
2298+
517
2299+
518
2300+
519
2301+
520</pre>
22962302
</td>
22972303
<td>
2298-
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 513</span>
2304+
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 516</span>
22992305

23002306
<span class='kw'>def</span> <span class='id identifier rubyid_redact_secrets'>redact_secrets</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_secrets'>secrets</span><span class='rparen'>)</span>
23012307
<span class='id identifier rubyid_secrets'>secrets</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
@@ -2484,20 +2490,20 @@ <h3 class="signature " id="tap_and_name_comparison-instance_method">
24842490
<pre class="lines">
24852491

24862492

2487-
501
2488-
502
2489-
503
24902493
504
24912494
505
24922495
506
24932496
507
24942497
508
24952498
509
24962499
510
2497-
511</pre>
2500+
511
2501+
512
2502+
513
2503+
514</pre>
24982504
</td>
24992505
<td>
2500-
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 501</span>
2506+
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 504</span>
25012507

25022508
<span class='kw'>def</span> <span class='id identifier rubyid_tap_and_name_comparison'>tap_and_name_comparison</span>
25032509
<span class='id identifier rubyid_proc'>proc</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='comma'>,</span> <span class='id identifier rubyid_b'>b</span><span class='op'>|</span>
@@ -2543,9 +2549,6 @@ <h3 class="signature " id="truncate_text_to_approximate_size-instance_method">
25432549
<pre class="lines">
25442550

25452551

2546-
448
2547-
449
2548-
450
25492552
451
25502553
452
25512554
453
@@ -2569,10 +2572,13 @@ <h3 class="signature " id="truncate_text_to_approximate_size-instance_method">
25692572
471
25702573
472
25712574
473
2572-
474</pre>
2575+
474
2576+
475
2577+
476
2578+
477</pre>
25732579
</td>
25742580
<td>
2575-
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 448</span>
2581+
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 451</span>
25762582

25772583
<span class='kw'>def</span> <span class='id identifier rubyid_truncate_text_to_approximate_size'>truncate_text_to_approximate_size</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='comma'>,</span> <span class='id identifier rubyid_max_bytes'>max_bytes</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
25782584
<span class='id identifier rubyid_front_weight'>front_weight</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:front_weight</span><span class='comma'>,</span> <span class='float'>0.5</span><span class='rparen'>)</span>
@@ -2836,9 +2842,6 @@ <h3 class="signature " id="with_env-instance_method">
28362842
<pre class="lines">
28372843

28382844

2839-
486
2840-
487
2841-
488
28422845
489
28432846
490
28442847
491
@@ -2849,10 +2852,13 @@ <h3 class="signature " id="with_env-instance_method">
28492852
496
28502853
497
28512854
498
2852-
499</pre>
2855+
499
2856+
500
2857+
501
2858+
502</pre>
28532859
</td>
28542860
<td>
2855-
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 486</span>
2861+
<pre class="code"><span class="info file"># File 'extend/kernel.rb', line 489</span>
28562862

28572863
<span class='kw'>def</span> <span class='id identifier rubyid_with_env'>with_env</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
28582864
<span class='id identifier rubyid_old_values'>old_values</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>

0 commit comments

Comments
 (0)