I didn’t think I’d have to do this, but after seeing that the ruby-yui-compressor gem forks a process every time, I thought that, whilst using JRuby, that’s unequivocally Doing It Wrong™. So I wrapped the YUI Java compressor library in a gem and called it JMinify. If anybody needs to compress their assets and they’re using JRuby, knock yourselves out.