freelancing-god/thinking-sphinx — Issue #301: Generate config file fails with Riddle 1.5.0
Author: Shinta
Created: 2011-11-04 14:39:40+00:00
State: open

Hello,

I just updated all my gems to tests some stemming with TS, and Riddle updated too, to 1.5.0 and when I run rake ts:config:

```
** Invoke ts:config (first_time)
** Invoke thinking_sphinx:configure (first_time)
** Invoke thinking_sphinx:app_env (first_time)
** Execute thinking_sphinx:app_env
** Execute thinking_sphinx:configure
Generating Configuration to /var/www/html/www.yagua.com/config/development.sphinx.conf
rake aborted!
undefined method `indexes' for #
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/thinking-sphinx-2.0.9/lib/thinking_sphinx/configuration.rb:154:in `generate'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/thinking-sphinx-2.0.9/lib/thinking_sphinx/configuration.rb:172:in `build'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/thinking-sphinx-2.0.9/lib/thinking_sphinx/tasks.rb:80:in `block (2 levels) in '
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/gems/rake-0.9.2.2/bin/rake:33:in `'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.2-p290@rails.3.0/bin/rake:19:in `

'
Tasks: TOP => ts:config => thinking_sphinx:configure
```

With Riddle 1.4.0 there is no problem.

I don't know if this issue goes to Riddle Issue list or here, sorry if I'm mistaken.

Hugs.