From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FCKAU-0007I1-MG for garchives@archives.gentoo.org; Thu, 23 Feb 2006 17:22:19 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1NHLc3d030382; Thu, 23 Feb 2006 17:21:38 GMT Received: from mail843.megamailservers.com (mail843.carrierinternetsolutions.com [69.49.106.53]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1NHLZv5027912 for ; Thu, 23 Feb 2006 17:21:36 GMT X-Authenticated-User: asroka.covad.net Received: from [10.10.0.128] (iscborder.infoglide.com [66.195.107.254]) (authenticated bits=0) by mail843.megamailservers.com (8.13.1/8.13.1) with ESMTP id k1NHLWBG012689 for ; Thu, 23 Feb 2006 12:21:33 -0500 Message-ID: <43FDEF1C.2050909@covad.net> Date: Thu, 23 Feb 2006 11:21:32 -0600 From: Adam Sroka User-Agent: Thunderbird 1.5 (Windows/20051201) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-web-user@gentoo.org Reply-to: gentoo-web-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-web-user@lists.gentoo.org Subject: Re: [gentoo-web-user] Java Script Libraries References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 80db7e2b-8d29-4e38-9054-e3f73c443f1c X-Archives-Hash: d83f9cee9376b46c28a33bc69d3c8675 Stuart Herbert wrote: > Hrm ... all the code I've seen uses: > > require_gem "" > > with no sign of version requirements passed around. How does Gems > handle the versioning in the background? > > Best regards, > Stu > That code is implicitly saying "use the latest version of ". However, Gems also lets you say: require_gem '', '>= 1.1.5' One of the most useful things you can do is say: '~> 1.1' This means, use the version closest to 1.1, but I don't care which minor revision you use. This will allow you to pick up new minor revisions that contain, for instance, a security patch, but not major revisions that might change the API. For more info see here: http://docs.rubygems.org/read/chapter/16 Another thing that is great about Gems is that you can stand up a gem server and serve your own versions of any required libraries. All a user would have to do is point at your gem server, and they could use your version. This is analogous to having your own rsync server. -- gentoo-web-user@gentoo.org mailing list