From: brabuhr@... Date: 2009-10-06T01:48:43+09:00 Subject: Re: Get current working copy version in subversion/git On 10/4/09, Anthony Metcalf wrote: > Matt Haley wrote: >> I use this in a Rails initializer, it works under Windows as well. > > Thanks for this, it's taken me a while to look at it though. > > If I include the code below in my wxRuby app, I get the errors > below. This is simply including the code in a method, in a class, and > including the source file. No calls to it or anything yet.... On Sun, Oct 4, 2009 at 9:53 AM, Anthony Metcalf wrote: > No, it looks like the last three assignments... > > dynamic constant assignment (SyntaxError) >           APP_VERSION_COMMIT_ID   = commit_id Oh, right, I hadn't really looked at your error message. That error is from sticking Matt's example inside a method: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/264536