From: Hugh Sasse Staff Elec Eng Date: 2003-11-25T20:50:41+09:00 Subject: Re: raise unless RUBY_VERSION[%r/^\s*\d+\.\d+/o].to_f >= 1.8 On Tue, 25 Nov 2003, Chad Fowler wrote: > > On Tue, 25 Nov 2003, Ara.T.Howard wrote: > > # On Tue, 25 Nov 2003, Gennady wrote: > # > # > It does not work as a general solution, as "1.11.0" < "1.8.0". However, [...] > # ah yes - _did_ think of that at one point. must have drank more coffee that [...] > # at one point, i created a Version class which used the rules that 'ld' > # follows: > # > # interface.age.revision > # > # etc. etc. > # > > > See my previous post about the Version class from RubyGems. It handles > the cases that you need. if http://www.eng.cse.dmu.ac.uk/~hgs/ruby/revision.rb is any use.... > > Chad > Hugh