ruby-changes:63834
From: V=C3=ADt <ko1@a...>
Date: Wed, 2 Dec 2020 12:46:42 +0900 (JST)
Subject: [ruby-changes:63834] fbe37ff37a (master): Emit warning when 'did_you_mean' was not properly loaded.
https://git.ruby-lang.org/ruby.git/commit/?id=fbe37ff37a From fbe37ff37a291f138d9a1119df257174005e7086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@r...> Date: Wed, 18 Dec 2019 15:02:31 +0100 Subject: Emit warning when 'did_you_mean' was not properly loaded. diff --git a/gem_prelude.rb b/gem_prelude.rb index d25cc49..87f59fd 100644 --- a/gem_prelude.rb +++ b/gem_prelude.rb @@ -6,4 +6,5 @@ end if defined?(Gem) https://github.com/ruby/ruby/blob/trunk/gem_prelude.rb#L6 begin require 'did_you_mean' rescue LoadError + warn "`did_you_mean' was not loaded." end if defined?(DidYouMean) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/