develooper Front page | perl.module.build | Postings from April 2007

version-0.7201 patch

Thread Next
From:
John Peacock
Date:
April 15, 2007 11:28
Subject:
version-0.7201 patch
Message ID:
46226EC9.9050102@rowman.com
Based on a discussion started on p5p, I have revised the version object code to
always return the initializer string as the stringified version (much like I was
already doing for Module::Build::Version).  Thus what you put in is what you get
out; the sole exception is that the use of qv(1.2) *NOTE* one decimal place and
no leading 'v' *NOTE* will stringify as "v1.2" so we can successfully roundtrip
that value.

Attached, please find the patch to bring Module::Build into compliance.  I also
included a $VERSION scalar in M::B::Version, since that was missing (and already
patched in bleadperl).  I chose to keep the same $VERSION as the underlying
version.pm release.  I had to tweak a couple of tests that expected a leading
'v' (which the old code would prepend).

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About