From: "Shot (Piotr Szotkowski)" Date: 2010-02-14T17:35:08+09:00 Subject: [ruby-core:28171] Re: RCR: RUBY_VERSION_INT --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Roger Pack: > The gotcha (for me) was > if RUBY_VERSION > '1.8' > # 1.9 stuff > end Ah, this makes more sense =E2=80=93 as in, the more I think about it, the m= ore I have a cognitive dissonance. :) On one hand it=E2=80=99s obvious for me t= hat '1.8.7' is larger than '1.8' and so Ruby=E2=80=99s Sting#<=3D> works as exp= ected for RUBY_VERSION numbers; on the other, I can see now how =E2=80=98larger t= han '1.8'=E2=80=99 can be seen as an equivalent to =E2=80=98larger or equal to = '1.9'=E2=80=99. Still, you wouldn=E2=80=99t make the question go away with switching from Strings to Version objects; you=E2=80=99d still have to address whether 1.8.7 > 1.8 is true or not (and now I can=E2=80=99t say for sure which is PoLS in my book, but I=E2=80=99m still kind of biased towards it being true= ). =E2=80=94 Shot --=20 It=E2=80=99s not hard, it=E2=80=99s just asking for a visit by the fuckup f= airy. [Peter da Silva] --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkt3taoACgkQi/mCfdEo8UrJ0ACfdODhoXpD6dW9Sy/dVYE5Xfpf 6L8An23LDx4UBYFOFvcKkQct/9AZqig7 =6PWs -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--