summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Anderson <joelanderson333@gmail.com>2022-12-15 23:46:56 -0500
committergit <svn-admin@ruby-lang.org>2023-01-04 06:32:46 +0000
commite25c173c97e1e0e538aeb85734cabcbb59cd11ab (patch)
tree0b477a608af8d9be52bd007935cee411cbf79870
parentd57148e9e2fa83262f56484bb1f7c9c511c9dbc4 (diff)
[ruby/reline] correct Win32API capitalization for JRuby
JRuby 9.4.0.0 introduced a change in case sensitivity in require statements, meaning that an inclusion of `win32api` loaded Win32API.rb. With this change, the require statement needs to be updated to the correct capitalization of the filename to avoid reline failures in newer versions of JRuby. https://github.com/ruby/reline/commit/d6e7c9e1d9
-rw-r--r--lib/reline/windows.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb
index b952329911..c572197472 100644
--- a/lib/reline/windows.rb
+++ b/lib/reline/windows.rb
@@ -53,7 +53,7 @@ class Reline::Windows
end
if defined? JRUBY_VERSION
- require 'win32api'
+ require 'Win32API'
else
class Win32API
DLL = {}