diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fda9c6..f8f9f29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## HEAD (unreleased) +- No longer shows the detail of monkey patch as the document (https://github.com/ruby/syntax_suggest/pull/174) - Drop CI for Ruby 3.2.0-rc1, now that 3.2.0 is available (https://github.com/ruby/syntax_suggest/pull/172) ## 1.0.2 diff --git a/lib/syntax_suggest/core_ext.rb b/lib/syntax_suggest/core_ext.rb index aed93e1..f2fbc7a 100644 --- a/lib/syntax_suggest/core_ext.rb +++ b/lib/syntax_suggest/core_ext.rb @@ -66,9 +66,13 @@ def detailed_message(highlight: true, syntax_suggest: true, **kwargs) else autoload :Pathname, "pathname" + #-- # Monkey patch kernel to ensure that all `require` calls call the same # method + #++ module Kernel + # :stopdoc: + module_function alias_method :syntax_suggest_original_require, :require