Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating to package.xml v2

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@296068 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit e163921226c856bfa43299ea77f4107f94eb1443 1 parent ed4a56b
@amir amir authored
Showing with 176 additions and 119 deletions.
  1. +91 −61 package_CreditCard.xml
  2. +85 −58 package_esMX.xml
View
152 package_CreditCard.xml
@@ -1,64 +1,94 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<package version="1.0">
- <name>Validate_Finance_CreditCard</name>
- <summary>Validation class for Credit Cards</summary>
- <description>
- Package to validate Credit Card numbers and types.
- </description>
- <license>New BSD</license>
- <maintainers>
- <maintainer>
- <user>jausions</user>
- <role>lead</role>
- <name>Philippe Jausions</name>
- <email>Philippe.Jausions@11abacus.com</email>
- </maintainer>
- </maintainers>
- <release>
- <version>0.5.2</version>
- <state>alpha</state>
- <date>2005-11-04</date>
+<?xml version="1.0" encoding="UTF-8"?>
+<package packagerversion="1.9.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
+ http://pear.php.net/dtd/tasks-1.0.xsd
+ http://pear.php.net/dtd/package-2.0
+ http://pear.php.net/dtd/package-2.0.xsd">
+ <name>Validate_Finance_CreditCard</name>
+ <channel>pear.php.net</channel>
+ <summary>Validation class for Credit Cards</summary>
+ <description>Package to validate Credit Card numbers and types.
+ </description>
+ <lead>
+ <name>Philippe Jausions</name>
+ <user>jausions</user>
+ <email>Philippe.Jausions@11abacus.com</email>
+ <active>yes</active>
+ </lead>
+ <date>2010-03-11</date>
+ <time>17:28:33</time>
+ <version>
+ <release>0.5.2</release>
+ <api>0.5.2</api>
+ </version>
+ <stability>
+ <release>alpha</release>
+ <api>alpha</api>
+ </stability>
+ <license>New BSD</license>
<notes>
-- Switch to the new BSD License
-(see http://www.opensource.org/licenses/bsd-license.php)
+ - Switch to the new BSD License
+ (see http://www.opensource.org/licenses/bsd-license.php)
</notes>
- <filelist>
- <dir name="/">
- <file role="doc" name="LICENSE" />
- <dir name="Validate">
- <dir name="Finance">
- <file role="php">CreditCard.php</file>
- </dir>
- </dir>
- <dir name="tests" role="test">
- <file>credit_card.phpt</file>
- </dir>
- </dir>
- </filelist>
- <deps>
- <dep type="php" rel="ge" version="4.2.0" />
- <dep type="ext" rel="has">pcre</dep>
- </deps>
- </release>
- <changelog>
-<release>
- <version>0.5.1</version>
- <state>alpha</state>
- <date>2005-07-20</date>
- <notes>
-- Added support for Eurocard/Mastercard. Can be referenced by "EuroCard" or "EuroCard/MasterCard" (case-insensitive)
- </notes>
-</release>
-<release>
- <version>0.5.0</version>
- <state>alpha</state>
- <date>2005-05-20</date>
- <notes>
-- Split from Validate into independent package
-- BC break: creditCard() method now named number() and creditCardType() method is now named type()
-- Request #2194 Improved CreditCard validation with CreditCard Type check, patch by Philippe
-- Added a cvv() method to check card verification value (aka CVV2, CVC, CID, CSC, CIN)
- </notes>
- </release>
- </changelog>
+ <contents>
+ <dir name="/">
+ <dir name="tests">
+ <file name="credit_card.phpt" role="test" />
+ </dir> <!-- /tests -->
+ <dir name="Validate">
+ <dir name="Finance">
+ <file name="CreditCard.php" role="php" />
+ </dir> <!-- /Validate/Finance -->
+ </dir> <!-- /Validate -->
+ <file name="LICENSE" role="doc" />
+ </dir> <!-- / -->
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>4.2.0</min>
+ </php>
+ <pearinstaller>
+ <min>1.4.0b1</min>
+ </pearinstaller>
+ <extension>
+ <name>pcre</name>
+ </extension>
+ </required>
+ </dependencies>
+ <phprelease />
+ <changelog>
+ <release>
+ <version>
+ <release>0.5.1</release>
+ <api>0.5.1</api>
+ </version>
+ <stability>
+ <release>alpha</release>
+ <api>alpha</api>
+ </stability>
+ <date>2005-07-20</date>
+ <license>New BSD</license>
+ <notes>
+ - Added support for Eurocard/Mastercard. Can be referenced by &quot;EuroCard&quot; or &quot;EuroCard/MasterCard&quot; (case-insensitive)
+ </notes>
+ </release>
+ <release>
+ <version>
+ <release>0.5.0</release>
+ <api>0.5.0</api>
+ </version>
+ <stability>
+ <release>alpha</release>
+ <api>alpha</api>
+ </stability>
+ <date>2005-05-20</date>
+ <license>New BSD</license>
+ <notes>
+ - Split from Validate into independent package
+ - BC break: creditCard() method now named number() and creditCardType() method is now named type()
+ - Request #2194 Improved CreditCard validation with CreditCard Type check, patch by Philippe
+ - Added a cvv() method to check card verification value (aka CVV2, CVC, CID, CSC, CIN)
+ </notes>
+ </release>
+ </changelog>
</package>
View
143 package_esMX.xml
@@ -1,61 +1,88 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<package version="1.0">
- <name>Validate_esMX</name>
- <summary>Validation class for esMX</summary>
- <description>
- Package contains locale validation for esMX such as:
- * Postal Code
- * DNI (aka CURP)
- * Region (states)
- * Phone numbers
- </description>
- <license>LGPL</license>
- <maintainers>
- <maintainer>
- <user>pfischer</user>
- <role>lead</role>
- <name>Pablo Fischer</name>
- <email>pfischer@php.net</email>
- </maintainer>
- </maintainers>
- <release>
- <version>0.1.0</version>
- <state>alpha</state>
- <date>2007-08-19</date>
+<?xml version="1.0" encoding="UTF-8"?>
+<package packagerversion="1.9.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
+ http://pear.php.net/dtd/tasks-1.0.xsd
+ http://pear.php.net/dtd/package-2.0
+ http://pear.php.net/dtd/package-2.0.xsd">
+ <name>Validate_esMX</name>
+ <channel>pear.php.net</channel>
+ <summary>Validation class for esMX</summary>
+ <description>Package contains locale validation for esMX such as:
+ * Postal Code
+ * DNI (aka CURP)
+ * Region (states)
+ * Phone numbers
+ </description>
+ <lead>
+ <name>Pablo Fischer</name>
+ <user>pfischer</user>
+ <email>pfischer@php.net</email>
+ <active>yes</active>
+ </lead>
+ <date>2010-03-11</date>
+ <time>17:15:03</time>
+ <version>
+ <release>0.1.0</release>
+ <api>0.1.0</api>
+ </version>
+ <stability>
+ <release>alpha</release>
+ <api>alpha</api>
+ </stability>
+ <license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
<notes>
- New support for esMX.
- Supported methods:
- - Postal Codes: strong and fast check (regexp)
- - Regions (states)
- - DNI (aka CURP)
- - Phone numbers
+ New support for esMX.
+ Supported methods:
+ - Postal Codes: strong and fast check (regexp)
+ - Regions (states)
+ - DNI (aka CURP)
+ - Phone numbers
</notes>
- <filelist>
- <dir name="/">
- <file role="doc" name="LICENSE" />
- <dir name="Validate">
- <file role="php" name="esMX.php">
- <replace type="pear-config" from="@DATADIR@" to="data_dir" />
- </file>
- </dir>
- <dir name="tests" role="test">
- <file>validate_esMX.phpt</file>
- </dir>
- <file role="data" name="data/esMX_postcodes.txt" install-as="esMX_postcodes.txt" />
- </dir>
- </filelist>
- <deps>
- <dep type="php" rel="ge" version="4.2.0" />
- </deps>
- </release>
- <changelog>
- <release>
- <version>0.1.0</version>
- <state>alpha</state>
- <date>2007-08-19</date>
- <notes>
- Initial release
- </notes>
- </release>
- </changelog>
+ <contents>
+ <dir name="/">
+ <dir name="data">
+ <file name="esMX_postcodes.txt" role="data" />
+ </dir> <!-- /data -->
+ <dir name="tests">
+ <file name="validate_esMX.phpt" role="test" />
+ </dir> <!-- /tests -->
+ <dir name="Validate">
+ <file name="esMX.php" role="php">
+ <tasks:replace from="@DATADIR@" to="data_dir" type="pear-config" />
+ </file>
+ </dir> <!-- /Validate -->
+ <file name="LICENSE" role="doc" />
+ </dir> <!-- / -->
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>4.2.0</min>
+ </php>
+ <pearinstaller>
+ <min>1.4.0b1</min>
+ </pearinstaller>
+ </required>
+ </dependencies>
+ <phprelease>
+ <filelist>
+ <install as="esMX_postcodes.txt" name="data/esMX_postcodes.txt" />
+ </filelist>
+ </phprelease>
+ <changelog>
+ <release>
+ <version>
+ <release>0.1.0</release>
+ <api>0.1.0</api>
+ </version>
+ <stability>
+ <release>alpha</release>
+ <api>alpha</api>
+ </stability>
+ <date>2007-08-19</date>
+ <license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
+ <notes>
+ Initial release
+ </notes>
+ </release>
+ </changelog>
</package>
Please sign in to comment.
Something went wrong with that request. Please try again.