Re: strange syntax error on rename

2012-12-07 Thread Chris Hulan
i updated the gist, but i haven't actually run the code ;) On Fri, Dec 7, 2012 at 8:29 PM, Chris Hulan wrote: > is this happening every time? > possibly some non-mp3 files in the dir? > > also, Dir.foreach does not give the full path > so may have to append the path, > > > On Fri, Dec 7, 2012

Re: strange syntax error on rename

2012-12-07 Thread Chris Hulan
is this happening every time? possibly some non-mp3 files in the dir? also, Dir.foreach does not give the full path so may have to append the path, On Fri, Dec 7, 2012 at 8:14 PM, peteV wrote: > On 12/07/2012 07:54 PM, Chris Hulan wrote: > > here's how i'd do it: https://gist.github.com/42378

Re: strange syntax error on rename

2012-12-07 Thread Chris Hulan
here's how i'd do it: https://gist.github.com/4237869 On Fri, Dec 7, 2012 at 7:45 PM, Chris Hulan wrote: > I think the error is due to a missing 'end' > you have 2 'do' blocks but only 1 'end' > > Note 'file' is a string so no need to '.to_s' nor "#{..}" > > > On Fri, Dec 7, 2012 at 6:28 PM, pe

Re: strange syntax error on rename

2012-12-07 Thread Chris Hulan
I think the error is due to a missing 'end' you have 2 'do' blocks but only 1 'end' Note 'file' is a string so no need to '.to_s' nor "#{..}" On Fri, Dec 7, 2012 at 6:28 PM, peteV wrote: > On 12/07/2012 05:17 PM, peteV wrote: > >> >> >> File.rename ( "#{file}","#{tag.title}-#{tag.**artist}.m

Re: How to create a gem which conditionally compiles/installs a C extension?

2012-12-07 Thread Intransition
> > Consider creating a separate gem for the C extension. Then maybe it would > be easier to limit it's installation as a dependency. At the very worst you > can just tell 1.9.2 users that they need to install the extension > gem separately. -- You received this message because you are subscri

Re: how to trigger a thread by event

2012-12-07 Thread Robert Klemme
On Fri, Dec 7, 2012 at 10:18 AM, Carlo E. Prelz wrote: > Subject: how to trigger a thread by event > Date: Fri 07 Dec 12 06:05:43PM +0900 > > Quoting XueBrian ([email protected]): > >> Here my question is how can I defer the thread execution until >> something happened, like an

Re: how to trigger a thread by event

2012-12-07 Thread Robert Klemme
On Fri, Dec 7, 2012 at 10:05 AM, XueBrian wrote: > As you know, ruby thread start to execute when created, like > > Thread.new do > .. > end > > Here my question is how can I defer the thread execution until something > happened, like an event? Huh? Is this a serious question? The so