From: Jim Weirich Date: 2004-07-01T05:45:31+09:00 Subject: Re: [ANN] arrayfields-3.0.0 Mauricio Fern�ndez said: > Yours has got stronger semantics than RubyGems' (which basically provides > the methods but sets no policy), so it will work just fine if users do > > require_gem "arrayfields", ">=3.1", "<4.0" Or ... require_gem "arrayfields", "~> 3.1" You can think of the ~> operator as "approximately greater than/equal to". It will allow any version from 3.1 upto (but not including) 4.0. The theory is that changes in major version number break backwards compatibility. I call this a pessimistic version request (you expect things to break), where "> 3.1" is an optomistic version request (you hope thinkgs won't break). See http://rubygems.rubyforge.org/wiki/wiki.pl?UserGuide#operators for details. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)