Thank very much for fast commit.
It works as excepted.
On Jan 21, 6:00 am, Pat Allan <[email protected]> wrote:
> Ah, I was under the assumption Array either returned the argument if
> it was an Array, or created an Array with the argument as the only
> element. Turns out, it tries to call .to_a, otherwise, does the above.
> And String.to_a splits on new lines.
>
> Lesson learnt.
>
> I've just pushed out fixes for Riddle and Thinking Sphinx that should
> get rid of this issue. Give it a shot :)
>
> Cheers
>
> --
> Pat
>
> On 21/01/2009, at 3:02 AM, xasedy wrote:
>
>
>
> > Dear Pat,
>
> > Finally i figured out that it is not related to YAML. Actually your
> > YAML multi-line suggestion works.
> > The problem is a little weird i think because it is related to Array
> > class.
>
> > In the Riddle::Configuration::Section at line 23, an array is created
> > by "Array(send(setting))"
> > This codes acts like this:
> > irb > Array("a,b,\nc")
> > => ["a,b,\n", "c"]
>
> > So whenever it come across \n it splits the string. After that it
> > creates more than one "charset_table" in the development.sphinx.conf
>
> > When I tried to fix this, i broke the other parts. :) You know
> > Riddle::Configuration::Section class is inherited by some other
> > classes, too.
>
> > I am not sure if i can explain the problem very well but i guess you
> > will understand the problem.
> > Any idea how to fix it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---