From: Frew Schmidt Date: 2007-07-11T00:05:52+09:00 Subject: Re: Getting Gem Version from Within a Gem Wayne E. Seguin wrote: > On Jul 10, 2007, at 09:37 , Frew Schmidt wrote: >> So there's not a variable inside the program that I can access that >> contains the Gem info? > > Frew, > > The usual method of accessing the version of a gem from within a > running Ruby app is: > > GemConstName::Version::STRING > > This works if the author followed convention. I am the author of the application in question. I tested your suggestion by doing a >> puts GemConstName::Version::STRING to see if it would have the variable defined by the gem system as defined in my gemspec, but it didn't work. Is there something I need to do to make this work? Thanks for your help! -fREW -- Posted via http://www.ruby-forum.com/.