From: Chad Perrin Date: 2011-11-12T13:22:26+09:00 Subject: Re: referring to version numbers in a gem --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 12, 2011 at 09:34:24AM +0900, Josh Cheek wrote: >=20 > Just use your git hash: This is probably a joke, but . . . 1. I'm using Mercurial, not Git. 2. That wouldn't be a very good idea for version numbers, in my opinion. >=20 > # assumes file is in root/lib/gem_name.rb > module GemName > VERSION =3D `git --git-dir=3D"#{File.dirname __FILE__}/../.git" rev-par= se > origin/master` > end 3. The only part of this that actually answers my question is this: VERSION =3D --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --VrqPEDrXMn8OVzN4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk698+sACgkQ9mn/Pj01uKV+nACfTD05YP9yoaPT9n+xaTbPG/iv i58AoKxheIKZSnRIyD/zDobv3IxODw3O =LaA/ -----END PGP SIGNATURE----- --VrqPEDrXMn8OVzN4--