Fix Ruby 2.1 warnings
Merge pull request #10 from mikz/patch-1

Fix Ruby 2.1 warnings