Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
@@ -0,0 +1,33 @@
# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2024, by Samuel Williams.
require_relative "logger"
module Console
# Whether the current fiber is emitting a warning.
Fiber.attr_accessor :console_warn
# Redirect warnings to Console.warn.
module Warn
# Redirect warnings to {Console.warn}.
def warn(message, **options)
fiber = Fiber.current
# We do this to be extra pendantic about avoiding infinite recursion.
return super if fiber.console_warn
begin
fiber.console_warn = true
message.chomp!
Console::Logger.instance.warn(message, **options)
ensure
fiber.console_warn = false
end
end
end
::Warning.extend(Warn)
end