lib/zold/commands/thread_badge.rb in zold-0.31.8 vs lib/zold/commands/thread_badge.rb in zold-0.31.9
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-# Copyright (c) 2018-2023 Zerocracy
+# Copyright (c) 2018-2024 Zerocracy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -20,11 +20,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# Thread badge.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
-# Copyright:: Copyright (c) 2018 Yegor Bugayenko
+# Copyright:: Copyright (c) 2018-2024 Zerocracy
# License:: MIT
module Zold
# This module should be included in each command, in order to label
# the current Thread correctly, when the command is running. This is mostly
# useful for debugging/testing purposes - want to be able to see what's
@@ -36,10 +36,10 @@
module ThreadBadge
def run(args = [])
before = Thread.current.name || ''
Thread.current.name = "#{before}:#{self.class.name.gsub(/^Zold::/, '')}"
begin
- super(args)
+ super
ensure
Thread.current.name = before
end
end
end