for ruby 2.1 support
Merge pull request #1 from bradleyd/patch-1

for ruby 2.1 support