From: "Wayne E. Seguin" Date: 2007-07-12T06:11:19+09:00 Subject: Re: Getting Gem Version from Within a Gem --Apple-Mail-13--277351407 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jul 10, 2007, at 21:01 , Ryan Davis wrote: > > === lib/blah.rb > > class Blah > VERSION = "1.2.3" > # ... > end > > === Rakefile > > require 'rubygems' > require 'hoe' > > require './lib/blah.rb' > > Hoe.new("Blah", Blah::VERSION) do |p| # this builds the gemspec and > defines a lot of commands > # ... > end Frew, If you don't mind requiring Hoe then this is an excellent approach to use. -- Wayne E. Seguin Sr. Systems Architect & Systems Admin wayneseguin@gmail.com --Apple-Mail-13--277351407--