update to ruby 2.2.0 and fix decpreciation warning
Merge pull request #56 from CWDG/ruby-2.2.0

Update to ruby 2.2.0 and fix depreciation warning