Skip to content

Commit

Permalink
[ruby/readline] Fix readline-ext gem loading in non Unix-like environ…
Browse files Browse the repository at this point in the history
  • Loading branch information
hogelog authored and hsbt committed Dec 16, 2023
1 parent 20fbdae commit cb636fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/readline.rb
@@ -1,5 +1,5 @@
begin
require 'readline.so'
require "readline.#{RbConfig::CONFIG["DLEXT"]}"
rescue LoadError
require 'reline' unless defined? Reline
Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
Expand Down

0 comments on commit cb636fe

Please sign in to comment.