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.