summaryrefslogtreecommitdiff
path: root/tool/redmine-backporter.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2024-05-28 11:41:04 -0700
committerTakashi Kokubun <[email protected]>2024-05-28 11:41:31 -0700
commit2608f2a23bb037f2b79e76c83d4b70716f039d1a ()
tree56742fec27a06ca3172f45317a8144c74fcc6487 /tool/redmine-backporter.rb
parenta7eb3d077b4a0e4582380540830b9ef994f2a6a2 (diff)
redmine-backporter.rb: Fix #color for Ruby 3 splat
color(*PRIORITIES['Immediate']) didn't work with Ruby 3.
-rwxr-xr-xtool/redmine-backporter.rb6
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