2008/10/21

JRuby on CouchDB with CouchRest

Last night I successfully built my own gem from the amazing CouchRest library source - it passed all tests in JRuby and CouchDB 0.9 (svn trunk).

Switching from json gem to json-jruby was easy as that: correct the gemspec and the Rakefile. But I ran into a problem that I could avoid if I did not install C Ruby the same box. The problem was the usage of "wrong" shebang in CouchRest so I just simply set the env from

#!/usr/bin/env ruby
to
#!/usr/bin/env jruby

Beautyful. Kudos goes to Jan and Chris.

1 comments:

LacKac said...

Thanks, this is just what I needed now.