Update to ruby 2.2.0 and fix depreciation warning