From: Rick DeNatale Date: 2010-03-29T09:35:32+09:00 Subject: Re: a question about gem's ~> On Sun, Mar 28, 2010 at 7:21 PM, Albert Schlef wrote: > I have a question about RubyGems's "~>". Sorry for asking this here. > I've searched in their "manual", but it's like searching a needle in a > haystack. > > My question is simple: > > My gem works only on Ruby 1.8 (that is, it doesn't work on Ruby 1.9 (and > isn't supposed to)). > > In my gem specification I have: > >  s.required_ruby_version = '~> 1.8' This says that the version must have a major version number of 1, and a minor version number >= 8, so it will include 1.9.x > > Is this correct? Or do I have to write '~> 1.8.0' ? You need to specify some teeny version number. so ~> 1.8.0 or ~> 1.8.6 should work. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale