From: Ryan Davis Date: 2007-07-11T10:01:03+09:00 Subject: Re: Getting Gem Version from Within a Gem On Jul 9, 2007, at 23:40 , Frew Schmidt 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? invert! Have your program know what its version is and have your gemspec ask it: === 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