From: Anthony Metcalf Date: 2009-10-04T18:53:44+09:00 Subject: Re: Get current working copy version in subversion/git --------------enig5A3921C6E73F5CB5BBF505A4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Matt Haley wrote: > I use this in a Rails initializer, it works under Windows as well. Hi Matt, 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.... Which file to I need to include this in in a rails app? Thanks Anthony /usr/lib/ruby19/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/de= pendencies.rb:156:in `require': /home/anthony/Personal/Projects/wxRuby/wxRCG/lib/controllers/dm_screen_co= ntroller.rb:30: dynamic constant assignment (SyntaxError) APP_VERSION_COMMIT_ID =3D commit_id ^ /home/anthony/Personal/Projects/wxRuby/wxRCG/lib/controllers/dm_screen_co= ntroller.rb:31: dynamic constant assignment APP_VERSION_COMMIT_DATE =3D commit_date ^ /home/anthony/Personal/Projects/wxRuby/wxRCG/lib/controllers/dm_screen_co= ntroller.rb:32: dynamic constant assignment APP_VERSION =3D "#{commit_id} #{commit_date}" ^ from /usr/lib/ruby19/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/de= pendencies.rb:156:in `block in require' from /usr/lib/ruby19/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/de= pendencies.rb:521:in `new_constants_in' from /usr/lib/ruby19/gems/1.9.1/gems/activesupport-2.3.3/lib/active_support/de= pendencies.rb:156:in `require' from :34:in `require_relative' from dm_screen.rb:9:in `
' --------------enig5A3921C6E73F5CB5BBF505A4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkrIcOIACgkQtUxufNRmXkFnDACfSku3b/5tOKYuQdlAeNU1SRpu 0U4AoMs+EGNhdk7sVdUzgg3gM5VN9/m+ =aLKy -----END PGP SIGNATURE----- --------------enig5A3921C6E73F5CB5BBF505A4--