kanwei / algorithms

Ruby algorithms and data structures. C extensions
http://kanwei.github.io/algorithms/
MIT License
2.67k stars 351 forks source link

Update dependencies and fix spec warnings #44

Closed keithrbennett closed 3 years ago

keithrbennett commented 3 years ago
  1. I think the gem versions here are probably four years old, so I thought it might be helpful to update them.
  2. I fixed some rspec warnings about calling raise_error without passing an error class.
  3. 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