JRuby dropio gem?

1 view
Skip to first unread message

klauer

unread,
Jan 13, 2009, 5:03:13 PM1/13/09
to Drop.io API
I noticed that I could not install the dropio ruby gem using JRuby.
Is this because it uses C extensions that won't work on JRuby? If so,
are there any techincal reasons that we couldn't have a pure Ruby gem
as opposed to CRuby?

I'm no expert in gem development, but I did just read that the FFI gem
(http://kenai.com/projects/ruby-ffi) can help with preventing cross-
implementation issues and maintaining multiple gems (JRuby and CRuby
versions).

Or, perhaps I'm just slow and haven't figured out how to install the
dropio gem on JRuby. Has anyone else had trouble with this?

Jake Good

unread,
Jan 14, 2009, 10:02:28 AM1/14/09
to klauer, Drop.io API
The gem requirements are as such:

require 'mime/types'
require 'json'

The json gem is a C-Extension gem, *BUT* you can install the json-pure
gem which is a drop in replacement (written in pure Ruby)...

Jake Good
http://api.drop.io
Reply all
Reply to author
Forward
0 new messages