fix deprecation warnings in Ruby 2.1
Merge pull request #8 from ccutrer/master

fix deprecation warnings in Ruby 2.1