From: "Shot (Piotr Szotkowski)" Date: 2010-02-12T06:01:33+09:00 Subject: [ruby-core:28150] Re: RCR: RUBY_VERSION_INT --DocE+STaALJfprDB Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Roger Pack: >> I don=E2=80=99t like the =E2=80=98one digit=E2=80=99 policy, but this is= precisely why it was >> instituted =E2=80=93 to have string comparisons of version numbers =E2= =80=98just work=E2=80=99. >> =E2=80=94 Shot > I guess it's ok the way it is then. > I just need to get used to using the full string > if RUBY_VERSION < '1.9.0' > ... > end > so that the comparison works right. I suppose now it's not so trippy. Ok, pardon the noise (replying on list so it=E2=80=99s in the archives if e= ither of us happens to be right), but I still don=E2=80=99t get why you need the = full string: >> puts "#{RUBY_VERSION} is smaller than 1.9" if RUBY_VERSION < '1.9' 1.8.7 is smaller than 1.9 =E2=80=94 Shot --=20 I love how grammar is like being handsome on the internet. [Shart] --DocE+STaALJfprDB 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) iEYEARECAAYFAkt0cCkACgkQi/mCfdEo8UobyQCfXTBm2UUPjCB8LMynwLVncVwn QY0An0hRpvIMkiR1qOsN1yzWAff/CLKE =m0P+ -----END PGP SIGNATURE----- --DocE+STaALJfprDB--