Fix Gem.ruby singleton method on Windows #1448
This issue was identified when trying to install the murmurhash3 gem, which includes native extensions, on the Windows platform using the jruby-complete JAR file as the executable. This generated an error message as follows:
After digging in a bit, it looked like the problem was that there was an extraneous slash at the beginning of the result of the Gem.ruby singleton method call, causing the command to come out as
I figured while I was in there, I'd extract the
Full Disclosure: I didn't run all the unit tests myself to make sure things don't break because I don't have the whole JRuby development environment set up on my machine. I did, however, manually test the specific behavior related to this change on Windows 7 using both the system-installed jruby.exe and the jruby-complete.jar file, and also on CentOS 6.5.
That's fine. I was going to use the Gem.win_platform? method, but I don't
On Monday, January 27, 2014, Thomas E Enebo firstname.lastname@example.org