Ensure jruby compatibility
Merge pull request #25 from codegram/jruby

Ensure jruby compatibility