Prevent JRuby rubygems warnings from breaking the build

/cc @myronmarston 
The default line ending character, I copied it from the ruby docs, I don't know of an alternative constant.