--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?

--=20
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk69hL0ACgkQ9mn/Pj01uKXjowCfZBYjsbyK2WAuNGaXwgcViyKh
350AoPtfXF/EXkSqaGJnlUZ6CaO4aj5R
=fRQf
-----END PGP SIGNATURE-----

--k+w/mQv8wyuph6w0--