@@ -953,9 +953,6 @@ <h3 class="signature first" id="disk_usage_readable-instance_method">
953
953
< pre class ="lines ">
954
954
955
955
956
- 415
957
- 416
958
- 417
959
956
418
960
957
419
961
958
420
@@ -974,10 +971,13 @@ <h3 class="signature first" id="disk_usage_readable-instance_method">
974
971
433
975
972
434
976
973
435
977
- 436</ pre >
974
+ 436
975
+ 437
976
+ 438
977
+ 439</ pre >
978
978
</ td >
979
979
< 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 >
981
981
982
982
< 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 >
983
983
< span class ='kw '> if</ span > < span class ='id identifier rubyid_size_in_bytes '> size_in_bytes</ span > < span class ='op '> >=</ span > < span class ='int '> 1_073_741_824</ span >
@@ -1042,7 +1042,10 @@ <h3 class="signature " id="ensure_executable!-instance_method">
1042
1042
406
1043
1043
407
1044
1044
408
1045
- 409</ pre >
1045
+ 409
1046
+ 410
1047
+ 411
1048
+ 412</ pre >
1046
1049
</ td >
1047
1050
< td >
1048
1051
< 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">
1053
1056
< span class ='id identifier rubyid_executable '> executable</ span > < span class ='op '> =</ span > < span class ='lbracket '> [</ span >
1054
1057
< 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 >
1055
1058
< 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'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 '> "</ 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 '> "</ span > </ span > < span class ='comma '> ,</ span >
1056
1062
< 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 '> "</ 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 '> "</ span > </ span > < span class ='comma '> ,</ span >
1057
1063
< 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 >
1058
1064
< 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">
1400
1406
< pre class ="lines ">
1401
1407
1402
1408
1403
- 438
1404
- 439
1405
- 440
1406
1409
441
1407
- 442</ pre >
1410
+ 442
1411
+ 443
1412
+ 444
1413
+ 445</ pre >
1408
1414
</ td >
1409
1415
< 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 >
1411
1417
1412
1418
< 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 >
1413
1419
< 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">
2026
2032
< pre class ="lines ">
2027
2033
2028
2034
2029
- 411
2030
- 412
2031
- 413 </ pre >
2035
+ 414
2036
+ 415
2037
+ 416 </ pre >
2032
2038
</ td >
2033
2039
< 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 >
2035
2041
2036
2042
< span class ='kw '> def</ span > < span class ='id identifier rubyid_paths '> paths</ span >
2037
2043
< 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 '> &</ span > < span class ='symbol '> :to_s</ span > < span class ='rparen '> )</ span >
@@ -2288,14 +2294,14 @@ <h3 class="signature " id="redact_secrets-instance_method">
2288
2294
< pre class ="lines ">
2289
2295
2290
2296
2291
- 513
2292
- 514
2293
- 515
2294
2297
516
2295
- 517</ pre >
2298
+ 517
2299
+ 518
2300
+ 519
2301
+ 520</ pre >
2296
2302
</ td >
2297
2303
< 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 >
2299
2305
2300
2306
< 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 >
2301
2307
< 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">
2484
2490
< pre class ="lines ">
2485
2491
2486
2492
2487
- 501
2488
- 502
2489
- 503
2490
2493
504
2491
2494
505
2492
2495
506
2493
2496
507
2494
2497
508
2495
2498
509
2496
2499
510
2497
- 511</ pre >
2500
+ 511
2501
+ 512
2502
+ 513
2503
+ 514</ pre >
2498
2504
</ td >
2499
2505
< 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 >
2501
2507
2502
2508
< span class ='kw '> def</ span > < span class ='id identifier rubyid_tap_and_name_comparison '> tap_and_name_comparison</ span >
2503
2509
< 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">
2543
2549
< pre class ="lines ">
2544
2550
2545
2551
2546
- 448
2547
- 449
2548
- 450
2549
2552
451
2550
2553
452
2551
2554
453
@@ -2569,10 +2572,13 @@ <h3 class="signature " id="truncate_text_to_approximate_size-instance_method">
2569
2572
471
2570
2573
472
2571
2574
473
2572
- 474</ pre >
2575
+ 474
2576
+ 475
2577
+ 476
2578
+ 477</ pre >
2573
2579
</ td >
2574
2580
< 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 >
2576
2582
2577
2583
< 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 >
2578
2584
< 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">
2836
2842
< pre class ="lines ">
2837
2843
2838
2844
2839
- 486
2840
- 487
2841
- 488
2842
2845
489
2843
2846
490
2844
2847
491
@@ -2849,10 +2852,13 @@ <h3 class="signature " id="with_env-instance_method">
2849
2852
496
2850
2853
497
2851
2854
498
2852
- 499</ pre >
2855
+ 499
2856
+ 500
2857
+ 501
2858
+ 502</ pre >
2853
2859
</ td >
2854
2860
< 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 >
2856
2862
2857
2863
< 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 >
2858
2864
< 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