10000 Rakefile: workaround Ruby 3.3.5 bug · ruby/rexml@68f8344 · GitHub
[go: up one dir, main page]

Skip to content

Commit 68f8344

Browse files
committed
Rakefile: workaround Ruby 3.3.5 bug
1 parent ad02f99 commit 68f8344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ task :default => :test
1414
namespace :warning do
1515
desc "Treat warning as error"
1616
task :error do
17-
def Warning.warn(*message)
17+
require "json" # workaround https://bugs.ruby-lang.org/issues/20713
18+
def Warning.warn(*message, **kwargs)
1819
super
1920
raise "Treat warning as error:\n" + message.join("\n")
2021
end

0 commit comments

Comments
 (0)
0