public inbox for gentoo-web-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Adam Sroka <asroka@covad.net>
To: gentoo-web-user@lists.gentoo.org
Subject: Re: [gentoo-web-user] Java Script Libraries
Date: Thu, 23 Feb 2006 11:21:32 -0600	[thread overview]
Message-ID: <43FDEF1C.2050909@covad.net> (raw)
In-Reply-To: <ADCB49082E30F44986E6FAC26F581BDF221AE9@baley.hq.boxuk.net>

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: 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



  reply	other threads:[~2006-02-23 17:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-23 17:06 [gentoo-web-user] Java Script Libraries Stuart Herbert
2006-02-23 17:21 ` Adam Sroka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-02-23 14:41 Stuart Herbert
2006-02-23 14:53 ` Renat Lumpau
2006-02-23 16:40 ` Adam Sroka
2006-02-23 13:21 Stuart Herbert
2006-02-23 14:24 ` Gunnar Wrobel
2006-02-23 11:35 Stuart Herbert
2006-02-23 12:22 ` Gunnar Wrobel
2006-02-23 10:53 Stuart Herbert
2006-02-23 11:01 ` Gunnar Wrobel
2006-02-23  9:49 Stuart Herbert
2006-02-23 10:28 ` Gunnar Wrobel
2006-02-22 23:28 Gunnar Wrobel
2006-02-23  2:54 ` Renat Lumpau
2006-02-23  6:44   ` Gunnar Wrobel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43FDEF1C.2050909@covad.net \
    --to=asroka@covad.net \
    --cc=gentoo-web-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox