biola / turnout

Turnout makes it easy to put Rack apps into maintenance mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gem.searcher deprecated in rubygems > 2.0

buffym opened this issue · comments

You get an error when running the rake tasks when you have rubygems > 2.0 installed as they have deprecated Gem.searcher.

undefined method `searcher' for Gem:Module
/Users/buffy/.rvm/gems/ruby-1.9.3-p194/gems/turnout-0.2.3/lib/turnout/rake_tasks.rb:3:in `<top (required)>'
/Users/buffy/.rvm/gems/ruby-1.9.3-p194/gems/backports-3.1.1/lib/backports/tools.rb:328:in `require'

Thanks for letting me know @buffym. I'll try to get this fixed but I'm having a hard time reproducing this exactly. The Gem.searcher method should only need to be called in Ralis 2.3. Could you tell me what version or ruby, rubygems and rails you're running?

I'm using ruby 1.9.3, rails 3.2 and rubygems 2.0.6. As far as I can tell, the searcher call is being made regardless of the version of rails you are running. Thanks.

I noticed this issue and thought I'd see if I can replicate. I cannot in the following environment:

gem -v && rails -v && ruby -v
2.2.2
Rails 3.2.16
ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-darwin13.1.0]

This issue has obviously been open for a while and I haven't heard any other reports of it, or been able to reproduce it myself. So I'm going to close it. Let me know if it's still an issue for anybody.