summaryrefslogtreecommitdiff
path: root/lib/version.t
Commit message (Collapse)AuthorAgeFilesLines
* add tests for version::is_strict() and version::is_lax()David Golden2010-04-251-0/+63
|
* Omnibus strict and lax version parsingDavid Golden2010-01-131-26/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Final release of version-0.77 for inclusion in 5.10.1John Peacock2009-07-271-7/+8
|
* Integrate version.pm-0.77 into bleadperlJohn Peacock2009-06-281-189/+263
|
* Upgrade to version 0.76 by John PeacockRafael Garcia-Suarez2008-07-151-1/+7
| | | | | | 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-0/+11
| | | | | 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-0/+8
| | | | | Message-ID: <46F31B47.6030601@cpan.org> p4raw-id: //depot/perl@31934
* Upgrade to version-0.7203.Rafael Garcia-Suarez2007-04-211-60/+38
| | | | | Plus a change in Module::Build::Version, specific to bleadperl. p4raw-id: //depot/perl@31005
* Upgrade to version.pm 0.71, by John PeacockRafael Garcia-Suarez2007-03-191-13/+34
| | | p4raw-id: //depot/perl@30629
* Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.70.tar.gzJohn Peacock2007-02-131-41/+66
| | | | | Message-ID: <45D127AB.3050904@rowman.com> p4raw-id: //depot/perl@30254
* Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.68.tar.gzJohn Peacock2006-10-301-2/+196
| | | | | Message-ID: <45450567.7040609@rowman.com> p4raw-id: //depot/perl@29149
* Test cases for version cannot handle Test::More versions thatSteve Peters2006-09-131-5/+8
| | | | | end with _0X. TODO-ing the failing test cases for now. p4raw-id: //depot/perl@28838
* Upgrade to version.pm 0.67Rafael Garcia-Suarez2006-08-101-392/+400
| | | p4raw-id: //depot/perl@28687
* [patch] Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.64.tar.gzJohn Peacock2006-06-091-0/+32
| | | | | Message-ID: <4488CB5C.4070702@rowman.com> p4raw-id: //depot/perl@28375
* Re: [PATCH - DUH] Synchronize bleadperl with version-0.60John Peacock2006-05-231-0/+6
| | | | | Message-ID: <44724453.5090606@rowman.com> p4raw-id: //depot/perl@28288
* Upgrade to version.pm 0.60Rafael Garcia-Suarez2006-05-221-31/+125
| | | p4raw-id: //depot/perl@28276
* Upgrade to version-0.53Steve Peters2006-01-111-1/+20
| | | p4raw-id: //depot/perl@26777
* Upgrade to version-0.52Steve Peters2006-01-061-1/+5
| | | p4raw-id: //depot/perl@26685
* Upgrade to version-0.50Steve Peters2005-12-031-5/+6
| | | p4raw-id: //depot/perl@26246
* Upgrade to version.pm 0.48Rafael Garcia-Suarez2005-09-151-5/+7
| | | p4raw-id: //depot/perl@25416
* [Fwd: CPAN Upload: J/JP/JPEACOCK/version-0.47.tar.gz]John Peacock2005-08-241-4/+45
| | | | | | From: "John Peacock" <jpeacock@rowman.com> Message-ID: <2444.85.65.24.143.1124818871.squirrel@webmail.rowman.com> p4raw-id: //depot/perl@25325
* Since the version module is use'd afterwards, use_ok needs to beRafael Garcia-Suarez2005-06-141-1/+4
| | | | | in a BEGIN block p4raw-id: //depot/perl@24831
* Bring bleadperl up to version.pmJohn Peacock2005-06-131-11/+23
| | | | | 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/+3
| | | | | Message-ID: <40F35423.5080304@rowman.com> p4raw-id: //depot/perl@23088
* 's to bring bleadperl up to version-0.39John Peacock2004-04-141-17/+20
| | | | | Message-ID: <407C8B13.9020104@rowman.com> p4raw-id: //depot/perl@22692
* Bleadperl to version 0.37John Peacock2004-04-071-11/+10
| | | | | 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-199/+254
| | | | | Message-ID: <401DB17F.5060808@rowman.com> p4raw-id: //depot/perl@22264
* version.pm up to date with CPANJohn Peacock2003-06-241-10/+12
| | | | | Message-ID: <3EF7B03A.2060705@rowman.com> p4raw-id: //depot/perl@19847
* version objects final(?) patchJohn Peacock2003-02-101-9/+37
| | | | | Message-ID: <3E18E9D9.2040908@rowman.com> p4raw-id: //depot/perl@18682
* Re: [PATCH] Version object combined patchJohn Peacock2002-10-171-2/+10
| | | | | 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/+169
p4raw-link: @17990 on //depot/perl: ad63d80fcd28c3b5fdbb5328f0f8ea29cbce94d8 p4raw-id: //depot/perl@17991