ruby-gpgme
ruby-gpgme copied to clipboard
Are you interested in an FFI version?
I'm beginning the process of converting this handy library over to FFI, so I can use it in JRuby + MRI.
https://github.com/sgonyea/ruby-gpgme/tree/ffi_ify
ruby-gpgme is currently not compatible with JRuby, as I get a bunch of issues due to C-Ext compatibility.
Would you be interested in merging in my FFI code? Otherwise, I'll release this under some name like ffi-gpgme.
Cool. Does FFI work with static libraries? I think the current ruby-gpgme links statically with bundled libraries which can be found under ext/gpgme/*.
+1 !
Incidentally, changing https://github.com/sgonyea/ruby-gpgme/blob/ffi_ify/lib/gpgme/ffi.rb Line 10 from:
ffi_lib "gpgme"
to:
ffi_lib "#{File.expand_path("../../../", FILE)}/ext/gpgme/gpgme_n.bundle"
seems to do the trick...
Cool! I sorta abandoned this and went with the JRuby Bouncy Castle library, but that's a bit of pain.