stewartmckee / cobweb

Web crawler with very flexible crawling options. Can either use standalone or can be used with resque to perform clustered crawls.
MIT License
227 stars 45 forks source link

LoadError with version 1.0.26 #39

Closed pisaacs closed 9 years ago

pisaacs commented 9 years ago

When using 1.0.26 I get the below message. However, if I set to the prior version of the gem (gem 'cobweb', '1.0.25'), I have no issues starting the rails server.

$ rails s
/Users/xxx/.rvm/gems/ruby-2.2.0/gems/cobweb-1.0.26/lib/cobweb_crawler.rb:3:in `require': cannot load such file -- ap (LoadError)
from /Users/xxx/.rvm/gems/ruby-2.2.0/gems/cobweb-1.0.26/lib/cobweb_crawler.rb:3:in `<top (required)>'
from /Users/xxx/.rvm/gems/ruby-2.2.0/gems/cobweb-1.0.26/lib/cobweb.rb:8:in `require'
from /Users/xxx/.rvm/gems/ruby-2.2.0/gems/cobweb-1.0.26/lib/cobweb.rb:8:in `block in <top (required)>'
from /Users/xxx/.rvm/gems/ruby-2.2.0/gems/cobweb-1.0.26/lib/cobweb.rb:7:in `each'
from /Users/xxx/.rvm/gems/ruby-2.2.0/gems/cobweb-1.0.26/lib/cobweb.rb:7:in `<top (required)>'
stewartmckee commented 9 years ago

Just pushed v1.0.27 which should sort this. Think the code in coweb_crawler was always there, but had included awesome print in the gemspec, and had removed it as I use it for debug only.

thanks for letting me know. Stewart.

pisaacs commented 9 years ago

Thanks @stewartmckee. With 1.0.27, it seems I'm getting the same error. I'm using rails 4.2.0.

$ rails s
/Users/xxx/.rvm/gems/ruby-2.2.0/gems/cobweb-1.0.27/lib/cobweb_crawler.rb:3:in `require': cannot load such file -- ap (LoadError)
    from /Users/xxx/.rvm/gems/ruby-2.2.0/gems/cobweb-1.0.27/lib/cobweb_crawler.rb:3:in `<top (required)>'

By the way, thanks for all your great work on this gem!