[Rubygems-developers] Gem#status?
Trans
transfire at gmail.com
Fri Nov 14 13:55:11 EST 2008
On Nov 13, 3:51 pm, Eric Hodel <drbr... at segment7.net> wrote:
> On Nov 13, 2008, at 10:34 AM, Trans wrote:
>
> >> So ~> for 2.1.0 will be the same as 2.1.0.rc30 gem installed in the
> >> user system.
>
> > No. I think people use ~> when they expect very tight and rational
> > versioning. So ~> means production code only, and rc30 would not fit
> > the bill. That's what I meant by "not consider".
>
> ~> 2.1.0 means any version between 2.1.0 and 2.1.9... only. It
> doesn't mean anything else (nor should it).
>
> 2.1.0.rc30 is less than 2.1.0, and 2.1.9... is less than 2.2.0.rc1.
> This was described further up the thread.
Ok, great. That's exactly what I was saying. But is the extra dot
necessary? "2.1.0rc1" and such is common, but an extra dot, I've seen
anyone use that notation before.
> If there exists a 2.1.5.rc1 and you specify the prerelease flag, then
> you should get what you asked for.
>
> > If one wanted to accept rc versions, then use > or >= instead.
>
> Adding the ability to install prerelease gems should not change what
> comparison means.
There's two sides to this. Installing is one of them. What about the
constraint on the gem method?
T.
More information about the Rubygems-developers
mailing list