Update to ruby 2.2.0 and fix decpreciation warning