Skip to content

Commit

Permalink
Support require "readline.3.3.0.so"
Browse files Browse the repository at this point in the history
  • Loading branch information
zw963 committed Feb 8, 2024
1 parent 3552d78 commit 44afa4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/pryx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

case RbConfig::CONFIG['ruby_version']
when '3.3.0'...'3.4.0'
require "readline"
begin
require "readline"
rescue
require "readline.#{RbConfig::CONFIG['ruby_version']}.#{RbConfig::CONFIG['DLEXT']}"
end
end

require 'pryx/version'
Expand Down

0 comments on commit 44afa4d

Please sign in to comment.