Skip to content

Commit

Permalink
Rakefile: workaround Ruby 3.3.5 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Sep 4, 2024
1 parent ad02f99 commit 68f8344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ task :default => :test
namespace :warning do
desc "Treat warning as error"
task :error do
def Warning.warn(*message)
require "json" # workaround https://bugs.ruby-lang.org/issues/20713
def Warning.warn(*message, **kwargs)
super
raise "Treat warning as error:\n" + message.join("\n")
end
Expand Down

0 comments on commit 68f8344

Please sign in to comment.