summaryrefslogtreecommitdiff
path: root/lib/version.pm
Commit message (Collapse)AuthorAgeFilesLines
* Bump version's $VERSIONSteve Hay2010-02-141-1/+1
| | | | | version.pm was changed by 61a0cb1c57a82d328c88c2dd525c91495edb2db9 and Jesse confirms that the $VERSION should be bumped as a result.
* Export and document is_lax and is_strict functionsJohn Peacock2010-02-061-4/+16
| | | | | | | | Allow the is_lax and is_strict functions to be optionally exported to the caller's namespace (without having to use Exporter). Document the usage of is_lax and is_strict, plus nuke some trailing spaces.
* Omnibus strict and lax version parsingDavid Golden2010-01-131-3/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Authors: John Peacock, David Golden and Zefram The goal of this mega-patch is to enforce strict rules for version numbers provided to 'package NAME VERSION' while formalizing the prior, lax rules used for version object creation. Parsing for use() is unchanged. version.pm adds two globals, $STRICT and $LAX, containing regular expressions that define the rules. There are two additional functions -- version::is_strict and version::is_lax -- that test an argument against these rules. However, parsing of strings that might contain version numbers is done in core via the Perl_scan_version function, which may be called during compilation or may be called later when version objects are created by Perl_new_version or Perl_upg_version. A new helper function, Perl_prescan_version, has been added to validate a string under either strict or lax rules. This is used in toke.c for 'package NAME VERSION' in strict mode and by Perl_scan_version in lax mode. It matches the behavior of the verison.pm regular expressions, but does not use them directly. A new test file, comp/packagev.t, validates strict and lax behaviors of 'package NAME VERSION' and 'version->new(VERSION)' respectively and verifies their behavior against the $STRICT and $LAX regular expressions, as well. Validating these two implementation should help ensure they each work as intended. Other files and tests have been modified as necessary to support these changes. There is remaining work to be done in a few areas: * documenting all changes in behavior and new functions * determining proper treatment of "," as decimal separators in various locales * updating diagnostics for new error messages * porting changes back to the version.pm distribution on CPAN, including pure-Perl versions
* Integrate version.pm-0.77 into bleadperlJohn Peacock2009-06-281-7/+38
|
* Upgrade to version 0.76 by John PeacockRafael Garcia-Suarez2008-07-151-1/+1
| | | | | | Fix segfault in serialized version objects (bug #56606) p4raw-id: //depot/perl@34142
* Bring version.pm core into compliance with CPAN releaseJohn Peacock2007-10-251-1/+1
| | | | | Message-ID: <471FF9BD.40204@havurah-software.org> p4raw-id: //depot/perl@32189
* version-0.73 (was Re: Change 31920: Don't use ~0 as a versionJohn Peacock2007-09-211-1/+1
| | | | | Message-ID: <46F31B47.6030601@cpan.org> p4raw-id: //depot/perl@31934
* Upgrade to version-0.7203.Rafael Garcia-Suarez2007-04-211-1/+1
| | | | | Plus a change in Module::Build::Version, specific to bleadperl. p4raw-id: //depot/perl@31005
* Somehow, version.pm was missed from change #30629.Steve Peters2007-04-101-1/+1
| | | | | p4raw-link: @30629 on //depot/perl: ac0e6a2fd2970df72270aecb94d407fe170b43a7 p4raw-id: //depot/perl@30895
* Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.70.tar.gzJohn Peacock2007-02-131-1/+1
| | | | | Message-ID: <45D127AB.3050904@rowman.com> p4raw-id: //depot/perl@30254
* Upgrade to version-0.69Steve Peters2007-01-201-1/+1
| | | p4raw-id: //depot/perl@29895
* Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.68.tar.gzJohn Peacock2006-10-301-1/+1
| | | | | Message-ID: <45450567.7040609@rowman.com> p4raw-id: //depot/perl@29149
* Upgrade to version-0.6701Steve Peters2006-10-031-1/+1
| | | p4raw-id: //depot/perl@28924
* Upgrade to version.pm 0.67Rafael Garcia-Suarez2006-08-101-2/+2
| | | p4raw-id: //depot/perl@28687
* [patch] Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.64.tar.gzJohn Peacock2006-06-091-3/+2
| | | | | Message-ID: <4488CB5C.4070702@rowman.com> p4raw-id: //depot/perl@28375
* Re: [PATCH - DUH] Synchronize bleadperl with version-0.60John Peacock2006-05-231-2/+4
| | | | | Message-ID: <44724453.5090606@rowman.com> p4raw-id: //depot/perl@28288
* Amend version.pm so it correctly loads the XS version of qv()Rafael Garcia-Suarez2006-05-221-13/+1
| | | p4raw-id: //depot/perl@28280
* Upgrade to version.pm 0.60Rafael Garcia-Suarez2006-05-221-8/+24
| | | p4raw-id: //depot/perl@28276
* Upgrade to version-0.53Steve Peters2006-01-111-1/+1
| | | p4raw-id: //depot/perl@26777
* Upgrade to version-0.52Steve Peters2006-01-061-1/+1
| | | p4raw-id: //depot/perl@26685
* Upgrade to version-0.50Steve Peters2005-12-031-1/+1
| | | p4raw-id: //depot/perl@26246
* Upgrade to version-0.49Steve Peters2005-10-161-1/+1
| | | p4raw-id: //depot/perl@25768
* Upgrade to version.pm 0.48Rafael Garcia-Suarez2005-09-151-557/+2
| | | p4raw-id: //depot/perl@25416
* [Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.47.tar.gz]John Peacock2005-08-241-1/+23
| | | | | | From: "John Peacock" <jpeacock@rowman.com> Message-ID: <2444.85.65.24.143.1124818871.squirrel@webmail.rowman.com> p4raw-id: //depot/perl@25325
* Typos in *.p[lm]Piotr Fusik2005-08-021-3/+3
| | | | | | From: "Piotr Fusik" <pfusik@op.pl> Message-ID: <001401c595bd$dccb5d80$0bd34dd5@piec> p4raw-id: //depot/perl@25261
* Increment the version number of version.pmRafael Garcia-Suarez2005-07-251-1/+1
| | | | | (no code changes on CPAN) p4raw-id: //depot/perl@25221
* Bring bleadperl up to version.pmJohn Peacock2005-06-131-47/+69
| | | | | Message-ID: <42A414DD.8090504@rowman.com> p4raw-id: //depot/perl@24823
* Upgrade to version 0.42.Rafael Garcia-Suarez2004-09-021-1/+1
| | | | | | | | | From: Subject: CPAN Upload: J/JP/JPEACOCK/version-0.42.tar.gz From: John Peacock <jpeacock@rowman.com> Date: Wed, 18 Aug 2004 08:26:35 -0400 Message-ID: <41234AFB.1020009@rowman.com> p4raw-id: //depot/perl@23257
* was Re: UNIVERSAL::VERSION causing "Use of uninitialized value..." warningJohn Peacock2004-07-131-1/+1
| | | | | Message-ID: <40F35423.5080304@rowman.com> p4raw-id: //depot/perl@23088
* 's to bring bleadperl up to version-0.39John Peacock2004-04-141-7/+42
| | | | | Message-ID: <407C8B13.9020104@rowman.com> p4raw-id: //depot/perl@22692
* Bleadperl to version 0.37John Peacock2004-04-071-66/+130
| | | | | Message-ID: <40735FC3.5010305@rowman.com> p4raw-id: //depot/perl@22668
* was Re: [Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.36.tar.gz]John Peacock2004-02-031-59/+126
| | | | | Message-ID: <401DB17F.5060808@rowman.com> p4raw-id: //depot/perl@22264
* version.pm up to date with CPANJohn Peacock2003-06-241-74/+93
| | | | | Message-ID: <3EF7B03A.2060705@rowman.com> p4raw-id: //depot/perl@19847
* version objects final(?) patchJohn Peacock2003-02-101-59/+161
| | | | | Message-ID: <3E18E9D9.2040908@rowman.com> p4raw-id: //depot/perl@18682
* Re: versions too accurateJohn Peacock2002-10-171-248/+9
| | | | | Message-ID: <3DAB7F40.1050200@rowman.com> p4raw-id: //depot/perl@18027
* Re: [PATCH] Version object combined patchJohn Peacock2002-10-171-6/+17
| | | | | Message-ID: <3DA627F5.5050907@rowman.com> p4raw-id: //depot/perl@18026
* new files lib/version.pm and lib/version.t for change #17990.Hugo van der Sanden2002-10-101-0/+472
p4raw-link: @17990 on //depot/perl: ad63d80fcd28c3b5fdbb5328f0f8ea29cbce94d8 p4raw-id: //depot/perl@17991