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 6246ba1 commit e1276ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ task :default => :test
namespace :warning do
desc "Treat warning as error"
task :error do
require "json" # workaround https://bugs.ruby-lang.org/issues/20713
def Warning.warn(*message, **)
super
raise "Treat warning as error:\n" + message.join("\n")
Expand Down

0 comments on commit e1276ba

Please sign in to comment.