sferik / twitter-ruby

A Ruby interface to the Twitter API.
http://www.rubydoc.info/gems/twitter
MIT License
4.58k stars 1.31k forks source link

No Method Error in Class: Twitter::SearchResults #406

Closed norcali closed 11 years ago

norcali commented 11 years ago

I'm doing a tiny script to search certain keywords in Twitter and when the count goes over 100, I wanted to keep logging those results but when I try to use the methods "next_result/page" I get a no method error undefined method `next_results' for #Twitter::SearchResults:0x8236b14 (NoMethodError)

I want to know if the documentation is wrong and those methods indeed dont exist or if there's a problem I'm not aware of.

I'm attaching a GIST with the rpsec tests I did about this issue https://gist.github.com/norcali/5698858

sferik commented 11 years ago

What version of the gem are you using? The next_results method was just added in version 4.7.0. /cc @KentonWhite

norcali commented 11 years ago

Right, my bad then I installed the gem like 1 month ago and I never assumed it could have been updated, I had the v4.6.

Thanks for the quick reply man, sorry to bother.

sferik commented 11 years ago

No problem.