summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2024-06-10 22:57:21 +0900
committergit <svn-admin@ruby-lang.org>2024-06-10 13:57:28 +0000
commite8bd745c17b809ba1a64e33fde91edd5babe4500 (patch)
tree9a9b7349974824b670cde52546d8342572a40f0b /lib
parent21e06e57af4ac002840ddf7d875ae3c6a8234d3a (diff)
[ruby/reline] Suppress warning(Ruby 3.4) requiring fiddle from
terminfo.rb (https://github.com/ruby/reline/pull/721) https://github.com/ruby/reline/commit/9da2cbcd82
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/terminfo.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/reline/terminfo.rb b/lib/reline/terminfo.rb
index 6885a0c6be..1eb371464b 100644
--- a/lib/reline/terminfo.rb
+++ b/lib/reline/terminfo.rb
@@ -1,4 +1,7 @@
begin
+ # Ignore warning `Add fiddle to your Gemfile or gemspec` in Ruby 3.4.
+ # terminfo.rb and ansi.rb supports fiddle unavailable environment.
+ verbose, $VERBOSE = $VERBOSE, nil
require 'fiddle'
require 'fiddle/import'
rescue LoadError
@@ -7,6 +10,8 @@ rescue LoadError
false
end
end
+ensure
+ $VERBOSE = verbose
end
module Reline::Terminfo