“A gem cannot be polished without friction, nor a man perfected without trials.” — Lucius Annaeus Seneca
I ran into a small problem while trying to get the nanite gem working under JRuby. I just wanted to post a quick heads up with a solution. Hopefully google can somehow route people here that have the same problem.
First you need to install the dependencies amqp, eventmachine and jruby-openssl, which should install without a hitch (jgem install amqp eventmachine jruby-openssl).
But now a jgem install nanite will complain about building native extensions. This is because it’s trying to use the json gem. This is easily fixed by first installing the json-jruby gem, then modifying nanite’s Rakefile to point to this gem as a dependency instead of the regular json.
Now a jgem install nanite should work.