deepfryed/idn-ruby

JRuby support

Closed this issue ยท 5 comments

Hello!

I ran into this library while trying to install dependencies for Mastodon. I want JRuby support! ๐Ÿ˜

The C code is obviously not very big. Could it be FFI? It appears to depend on idn as an external library already.

The other option might be if there's some equivalent library on the JVM we could wrap. There would be no external deps then.

In any case, it shouldn't be too hard to add JRuby support, and we want to help!

btw completely forgot about this gem :)

Took a quick look at the extension and I should be able to rewrite it to use FFI. It'll have a go at it.

@deepfryed any update on this? I'm also trying to get it running in JRuby. Appreciate it!

I'm also trying to run Mastodon on JRuby. any updates? ๐Ÿ˜ƒ

FWIW, sassc is an example of an FFI-based gem that ships the C code it binds and builds that code as if it were an extension. It works fine on JRuby, because it just compiles the code into a dynamic library we can load from Ruby.

sorry haven't had the time to look into porting everything over to FFI, if someone can send a PR that'd be much appreciated.