1<?xml version="1.0" encoding="UTF-8"?> 2<package packagerversion="1.5.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"> 3 <name>File_Fortune</name> 4 <channel>pear.php.net</channel> 5 <summary>File_Fortune provides an interface for reading from and writing to fortune files.</summary> 6 <description>File_Fortune provides a PHP interface to reading fortune files. With it, you may 7retrieve a single fortune, a random fortune, or all fortunes in the file. 8 9Additionally, it offers the ability to access fortune files as if they were a 10native array, including updating and deleting items. All write operations will 11produce a binary header file to allow compatability with the fortune and 12fortune-mod programs (as well as other fortune interfaces).</description> 13 <lead> 14 <name>Matthew Weier O'Phinney</name> 15 <user>weierophinney</user> 16 <email>mweierophinney@gmail.com</email> 17 <active>yes</active> 18 </lead> 19 <date>2007-07-24</date> 20 <time>09:15:43</time> 21 <version> 22 <release>1.0.0</release> 23 <api>1.0.0</api> 24 </version> 25 <stability> 26 <release>stable</release> 27 <api>stable</api> 28 </stability> 29 <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> 30 <notes>* Stable version</notes> 31 <contents> 32 <dir baseinstalldir="/" name="/"> 33 <file baseinstalldir="/" md5sum="cc17f67792e0c62c9a59dbadd7c731c3" name="examples/phpFortune" role="data" /> 34 <file baseinstalldir="/" md5sum="4d2bc2f8980e14a6f2a54f437a9c02c9" name="File/Fortune.php" role="php" /> 35 <file baseinstalldir="/" md5sum="c8f56f51de53d0081188933ca27cf909" name="File/Fortune/Exception.php" role="php" /> 36 <file baseinstalldir="/" md5sum="289e8b68bd11d84ab7b3eaf0bbdfe82e" name="tests/AllTests.php" role="test" /> 37 <file baseinstalldir="/" md5sum="f8872f1fe7fb2916e71942b0131d791c" name="tests/File_FortuneTest.php" role="test" /> 38 <file baseinstalldir="/" md5sum="162e94592fa6981215a3387e3ba0a0d1" name="tests/_files/orig/ftest" role="test" /> 39 <file baseinstalldir="/" md5sum="ed91f01f397b47362f695efdb7f453a9" name="tests/_files/orig/ftest.dat" role="test" /> 40 <file baseinstalldir="/" md5sum="162e94592fa6981215a3387e3ba0a0d1" name="tests/_files/orig/ftest2" role="test" /> 41 <file baseinstalldir="/" md5sum="ed91f01f397b47362f695efdb7f453a9" name="tests/_files/orig/ftest2.dat" role="test" /> 42 <file baseinstalldir="/" md5sum="77001068b0f90c30cd47d71c1dfa01d7" name="tutorials/File_Fortune.cls" role="doc" /> 43 </dir> 44 </contents> 45 <dependencies> 46 <required> 47 <php> 48 <min>5.1.4</min> 49 </php> 50 <pearinstaller> 51 <min>1.4.0a12</min> 52 </pearinstaller> 53 </required> 54 </dependencies> 55 <phprelease /> 56 <changelog> 57 <release> 58 <version> 59 <release>0.8.2</release> 60 <api>0.8.2</api> 61 </version> 62 <stability> 63 <release>beta</release> 64 <api>beta</api> 65 </stability> 66 <date>2005-06-26</date> 67 <license uri="http://www.php.net/license">PHP</license> 68 <notes>2005-06-26: 0.8.2 69================ 70* Made PHP4 compatible 71 * Removed public/protected/private keywords 72 732005-06-25: 0.8.1 74================ 75* Initial PEAR-style package 76* File_Fortune class 77 * Ported from Fortune.pm perl module 78 * Modified to suit PHP 79 * Additional modifications to functionality 80* File_Fortune_Writer class 81 * New class 82 * Provides interface for writing, adding to, updating, and deleting from 83 fortune files</notes> 84 </release> 85 <release> 86 <version> 87 <release>0.8.3</release> 88 <api>0.8.3</api> 89 </version> 90 <stability> 91 <release>beta</release> 92 <api>beta</api> 93 </stability> 94 <date>2005-07-01</date> 95 <license uri="http://www.php.net/license">PHP</license> 96 <notes>2005-07-01: 0.8.3 97================ 98* Reverted to PHP5-only package 99* Changed error constants to class constants, and truncated names to remove 100 class name 101* Moved package-level documentation to class-level documentation</notes> 102 </release> 103 <release> 104 <version> 105 <release>0.8.4</release> 106 <api>0.8.4</api> 107 </version> 108 <stability> 109 <release>beta</release> 110 <api>beta</api> 111 </stability> 112 <date>2005-07-02</date> 113 <license uri="http://www.php.net/license">PHP</license> 114 <notes>2005-07-02: 0.8.4 115================ 116* Added exception handling (to replace error handling): 117 * Created Fortune/Exception.php with exception classes 118 * Changed all PEAR_ErrorStack errors to exceptions 119 * Added @throws docblock entries 120 * Rewrote tests to catch exceptions 121* In File_Fortune: 122 * Added check in open() for open file; calls close() if so, and then proceeds 123 to open file 124 * Documentation updates 125* In File_Fortune_Writer 126 * Changed to package File_Fortune (not File_Fortune_Writer 127 * Documentation updates</notes> 128 </release> 129 <release> 130 <version> 131 <release>0.8.5</release> 132 <api>0.8.5</api> 133 </version> 134 <stability> 135 <release>beta</release> 136 <api>beta</api> 137 </stability> 138 <date>2005-07-02</date> 139 <license uri="http://www.php.net/license">PHP</license> 140 <notes>2005-07-02: 0.8.5 141================ 142* Updated phpFortune example to try and catch exception 143* Updated test 5 in __construct.phpt. Erroneously expected failure; instead, 144 the method Does The Right Thing and gets headers from the fortune file itself 145 if a non-existent file is used for the header file. 146* Added test 6 in __construct.phpt -- checks for mal-formed header file.</notes> 147 </release> 148 <release> 149 <version> 150 <release>0.8.6</release> 151 <api>0.8.6</api> 152 </version> 153 <stability> 154 <release>beta</release> 155 <api>beta</api> 156 </stability> 157 <date>2005-07-05</date> 158 <license uri="http://www.php.net/license">PHP</license> 159 <notes>2005-07-05: 0.8.6 160================ 161* Updated documentation: 162 * Re-phrased a number of paragraphs to restate intent of package and future of 163 package 164 * Removed unnecessary docblock tags from File/Fortune/Exception.php 165 * Added @package-version@ tags to File/Fortune/Writer.php and 166 File/Fortune/Exception.php</notes> 167 </release> 168 <release> 169 <version> 170 <release>0.9.0</release> 171 <api>0.9.0</api> 172 </version> 173 <stability> 174 <release>beta</release> 175 <api>beta</api> 176 </stability> 177 <date>2005-07-13</date> 178 <license uri="http://www.php.net/license">PHP</license> 179 <notes>2005-07-13: 0.9.0 180================ 181* Initial PEAR release: 182 * Fixed typo in File_Fortune_Writer when throwing an exception 183 * Renamed exception classes to conform to PEAR CS 184 * Created tutorial documentation (slightly expanded version of what was in API 185 docs) 186 * Trimmed down the API docs to omit examples 187 * Added getRandomFromSet() method and corresponding unit test; allows grabbing 188 a random fortune from a list of files 189 * Updates to phpFortune example to use getRandomFromSet()</notes> 190 </release> 191 <release> 192 <version> 193 <release>0.9.1</release> 194 <api>0.9.1</api> 195 </version> 196 <stability> 197 <release>beta</release> 198 <api>beta</api> 199 </stability> 200 <date>2007-07-05</date> 201 <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> 202 <notes>Refactored to use Iterator, Countable, and ArrayAccess, allowing in-place modification of fortune files and omitting the necessity for File_Fortune_Writer; also changed license to New BSD</notes> 203 </release> 204 <release> 205 <version> 206 <release>0.9.2</release> 207 <api>0.9.2</api> 208 </version> 209 <stability> 210 <release>beta</release> 211 <api>beta</api> 212 </stability> 213 <date>2007-07-05</date> 214 <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> 215 <notes>Added set|getFiles() to allow specifying a specific list of files from which to select fortunes</notes> 216 </release> 217 <release> 218 <version> 219 <release>1.0.0RC1</release> 220 <api>1.0.0</api> 221 </version> 222 <stability> 223 <release>beta</release> 224 <api>stable</api> 225 </stability> 226 <date>2007-07-08</date> 227 <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> 228 <notes>* Allow counting all fortunes in all files 229* getAll() counts all fortunes in all files 230* No iteration when directory/multiple files set 231* No array access when a directory/multiple files set 232* Allow passing an array of files to constructor</notes> 233 </release> 234 <release> 235 <version> 236 <release>1.0.0RC2</release> 237 <api>1.0.0</api> 238 </version> 239 <stability> 240 <release>beta</release> 241 <api>stable</api> 242 </stability> 243 <date>2007-07-10</date> 244 <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> 245 <notes>* Fixed issue with getRandom() using directory/multiple files</notes> 246 </release> 247 <release> 248 <version> 249 <release>1.0.0</release> 250 <api>1.0.0</api> 251 </version> 252 <stability> 253 <release>stable</release> 254 <api>stable</api> 255 </stability> 256 <date>2007-07-24</date> 257 <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> 258 <notes>* Stable version</notes> 259 </release> 260 </changelog> 261</package> 262