support gets-with-limit from ruby 1.9
Merge pull request #67 from JustinLove/getslimit

support gets-with-limit from ruby 1.9