Prevent JRuby rubygems warnings from breaking the build

/cc @myronmarston