I think the gem versions here are probably four years old, so I thought it might be helpful to update them.
I fixed some rspec warnings about calling raise_error without passing an error class.
Added a space to make right -1 into right - 1 to eliminate the JRuby warning:
...algorithms/lib/algorithms/sort.rb:313: warning: `-' after local variable or literal is interpreted as binary operator
...algorithms/lib/algorithms/sort.rb:313: warning: even though it seems like unary operator
raise_error
without passing an error class.right -1
intoright - 1
to eliminate the JRuby warning: