diff options
author | Takashi Kokubun <[email protected]> | 2024-05-28 11:41:04 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2024-05-28 11:41:31 -0700 |
commit | 2608f2a23bb037f2b79e76c83d4b70716f039d1a () | |
tree | 56742fec27a06ca3172f45317a8144c74fcc6487 /tool/redmine-backporter.rb | |
parent | a7eb3d077b4a0e4582380540830b9ef994f2a6a2 (diff) |
redmine-backporter.rb: Fix #color for Ruby 3 splat
color(*PRIORITIES['Immediate']) didn't work with Ruby 3.
-rwxr-xr-x | tool/redmine-backporter.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -63,12 +63,12 @@ COLORS = { } class String - def color(fore=nil, back=nil, bold: false, underscore: false) seq = "" - if bold seq << "\e[1m" end - if underscore seq << "\e[2m" end if fore |