From: "Wayne E. Seguin" Date: 2007-07-11T00:30:48+09:00 Subject: Re: Getting Gem Version from Within a Gem --Apple-Mail-4--384182985 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jul 10, 2007, at 11:24 , Frew Schmidt wrote: > Wayne E. Seguin wrote: > Ok, I want to ensure that I am doing this the correct way, so is this > right? > > lib/delish/version.rb > ===================== > module Delish > > module Version > MAJOR = 0 > MINOR = 7 > TINY = 9 > > STRING = [MAJOR, MINOR, TINY].join(".") > end > > end > ===================== Looks correct to me. You still might want to provide the check method as it provides an interface for versioning checks. So now you should be able to report the version from within your app via: Delish::Version::STRING -- Wayne E. Seguin Sr. Systems Architect & Systems Admin wayneseguin@gmail.com --Apple-Mail-4--384182985--