From: "Luca (Email)" Date: 2011-12-29T15:56:07+09:00 Subject: I: referring to version numbers in a gem ------=_NextPart_000_4310_01CCC5FD.8D2435A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable -----Messaggio originale----- Da: Chad Perrin [mailto:code@apotheon.net]=20 Inviato: venerd=EC 11 novembre 2011 21:28 A: ruby-talk ML Oggetto: referring to version numbers in a gem How do I specify and access a gem's version number within the code of = the gem itself? For example: 1. I write a library. 2. I write a command line utility that uses that library. 3. The utility uses OptionParser, with a --version option. 4. I package the things up inside a gem. What's the best way to specify the version number and give the code = executed when the --version argument is supplied the ability to access that = version number? -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] =0D=0A =0D=0A --=0D=0A Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP = autenticato? GRATIS solo con Email.it http://www.email.it/f=0D=0A =0D=0A Sponsor:=0D=0A Riccione Hotel 3 stelle in centro: Pacchetto Capodanno mezza pensione, ani= mazione bimbi, zona relax, parcheggio. Scopri l'offerta solo per oggi...=0D=0A Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3D11982&d=3D29-12=0D=0A ------=_NextPart_000_4310_01CCC5FD.8D2435A0 Content-Type: application/pgp-signature; name="Allegato senza titolo 17166.dat" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Allegato senza titolo 17166.dat" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk69hL0ACgkQ9mn/Pj01uKXjowCfZBYjsbyK2WAuNGaXwgcViyKh 350AoPtfXF/EXkSqaGJnlUZ6CaO4aj5R =fRQf -----END PGP SIGNATURE----- ------=_NextPart_000_4310_01CCC5FD.8D2435A0--