Remove various warnings

This just removes a few Ruby warnings generated by coveralls (they were bugging me on rspec)
but I also took the time to update a deprecation warning for you

Thanks