]> git.notmuchmail.org Git - sup/commit
compare bin and lib versions, and error out on mismatch
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 9 Jan 2008 18:50:04 +0000 (10:50 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 9 Jan 2008 18:50:04 +0000 (10:50 -0800)
commited12112fe44da42eead22aeaeaa70d4c42596420
tree714bc4e4561e1d3814f9c5ea096e8e53fe1e23d9
parent75429eec816c990462653dfec45893348cd6e9bf
compare bin and lib versions, and error out on mismatch

This should help the occasional bug reports that happen because someone
runs bin/sup from development, but somehow picks up libraries from a
pre-installed gem.

To make "rake gem" still function when working from a checkout, we fake
a version number of 999. (Gem versions must be dotted numerics.)

It won't detect version mismatches against gems that have been installed
via "rake gem" from a checkout, but that is typically a less common
issue.
Rakefile
bin/sup
lib/sup.rb