Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-web-user
Lists: gentoo-web-user: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-web-user@g.o
From: Adam Sroka <asroka@...>
Subject: Re: Java Script Libraries
Date: Thu, 23 Feb 2006 11:21:32 -0600
Stuart Herbert wrote:
> Hrm ... all the code I've seen uses:
> 	require_gem "<package-name>"
> 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 
<package-name>". However, Gems also lets you say:

require_gem '<package-name>', '>= 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:

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@g.o mailing list

RE: Java Script Libraries
-- Stuart Herbert
Lists: gentoo-web-user: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
RE: Java Script Libraries
Next by thread:
Squirrelmail's i18n broken with PHP's mbstring enabled
Previous by date:
RE: Java Script Libraries
Next by date:

Updated Jun 17, 2009

Summary: Archive of the gentoo-web-user mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.