add compability for ruby greater than or equal to 2.0
Merge pull request #1 from timcase/master

add compability for ruby greater than or equal to 2.0