Frew Schmidt wrote:
> Kuba wrote:
>> On 7/10/07, Frew Schmidt <frioux / gmail.com> wrote:
>>> Does anyone know if there is a way that I can have my program output
>>> what version it is and get the version from the Gem that it is installed
>>> from?
>> 
>> Using 'gem' , you can execute sth. like:
>> 
>>  gem list --local | grep <your_prog_name>
>> 
>> but i'm not sure, is it what you expect.
>> 
>> Best Regards, Kuba.
> 
> So there's not a variable inside the program that I can access that 
> contains the Gem info?

I think, it depends on your gems' library/program.
There is no general variable (fix me if i'm wrong).

E.g.: In module 'Inline' is defined const. VERSION, so you can print 
Inline::VERSION, but 'rake' defined const. RAKEVERSION

-- 
Posted via http://www.ruby-forum.com/.