Wayne E. Seguin wrote: > On Jul 10, 2007, at 11:05 , Frew Schmidt wrote: >> Thanks for your help! > Frew, why yes there is!!! Thank you for clarifying the question. Tis > simple! > > In lib/gem_name/version.rb place code like: > ================================= > module GemName > module Version > # A method for comparing versions of required modules. It > expects two > # arrays as parameters, and returns true if the first is no more > than the > # second. > def self.check(expected, actual) #:nodoc: > good = false > if actual[0] > expected[0] > good = true > elsif actual[0] == expected[0] > if actual[1] > expected[1] > good = true > elsif actual[1] == expected[1] && actual[2] >= expected[2] > good = true > end > end > > good > end > > MAJOR = 0 > MINOR = 1 > TINY = 2 > > STRING = [MAJOR, MINOR, TINY].join(".") > > SSH_REQUIRED = [1,0,10] > SFTP_REQUIRED = [1,1,0] > end > end > ================================= > > Then require the version file in one of the main entry point files: > > require "lib/gem_name/version" > > Hope this helps! Gems are so much fun to develop. 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 ===================== -- Posted via http://www.ruby-forum.com/.