jgarber / redcloth

RedCloth is a Ruby library for converting Textile into HTML.
Other
445 stars 102 forks source link

Fixes loading problems when Gem is built for Windows #62

Closed mohits closed 10 months ago

mohits commented 4 years ago

On Windows, the loading code in redcloth.rb assumed that one is loading it from a 'fat binary' gem. Using standard windows Ruby versions from 2.4 forward, the gem can be compiled by the user.

This change first tries to require the library using the prefix (for fat gems). If that fails, it tries again to require without the prefix (for built gems).

References: #51 and #61 for Windows users.

mohits commented 2 years ago

Thanks @Silverfishnet! I have been wanting to get back to this gem to fix the JRuby issues... and this action of yours is motivation to do it now.

mohits commented 10 months ago

Thank you!