1
0
mirror of https://github.com/mrclay/minify.git synced 2025-03-13 17:09:39 +01:00

Prep docs for 2.1.2

test_all.php : add APC test (if apc_store present)
test_Minify_Cache_File.php : use path specified in $min_cachePath
This commit is contained in:
Steve Clay 2009-01-26 22:08:27 +00:00
parent 773276a9ce
commit adc394a0ac
5 changed files with 53 additions and 13 deletions

View File

@ -1,5 +1,17 @@
Minify Release History
Version 2.1.2
* Javascript fixes
* Debug mode no longer confused by "*/*" in strings/RegExps (jQuery)
* quote characters inside RegExp literals no longer cause exception
* files ending in single-line comments no longer cause code loss
* CSS: data: URLs no longer mangled
* Optional error logging to Firefox's FirePHP extension
* Unit tests to check for common DOCUMENT_ROOT problems
* DOCUMENT_ROOT no longer overwritten on IIS servers
* Builder app doesn't fail on systems without gzdeflate()
* APC caching class included
Version 2.1.1
* Bug fix release
* Detection and workarounds for zlib.output_compression and non-PHP encoding modules

View File

@ -7,6 +7,12 @@ GETs (serving content only when clients do not have a valid cache)
and tell clients to cache the file for a period of time.
More info: http://code.google.com/p/minify/
UPGRADING
See UPGRADING.txt for instructions.
INSTALLATION AND USAGE:
1. Place the /min/ directory as a child of your DOCUMENT_ROOT

View File

@ -1,16 +1,35 @@
Minify Upgrade Guide
= From 2.1.0 to 2.1.1 =
UPGRADING FROM 2.1.*
1. Add the following 2 lines to the end of your existing /min/config.php file:
// try to disable output_compression (may not have an effect)
ini_set('zlib.output_compression', '0');
1. Rename the following files:
2. Overwrite all files EXCEPT the following three with those in the 2.1.1 release:
/min/config.php --> /min/old_config.php
/min/groupsConfig.php --> /min/old_groupsConfig.php
/min/config.php <-- do NOT overwrite!
/min/groupsConfig.php <-- do NOT overwrite!
/min/.htaccess <-- do NOT overwrite!
3. (optional) Delete all the Minify files from your cache directory ($min_cachePath).
2. Overwrite all files in /min (and /min_unit_tests) with those from this zip.
3. Delete /min/groupsConfig.php
4. Rename /min/old_groupsConfig.php --> /min/groupsConfig.php
5. Merge your settings in old_config.php into config.php.
* If you've set $_SERVER['DOCUMENT_ROOT'], instead set the new option
$min_documentRoot. This is advantageous on IIS systems because Minify
will no longer overwrite the path you specified.
* $min_errorLogger adds the ability to enable FirePHP logging.
6. (optional) Delete /min/old_config.php and the Minify files from your cache
directory (specified in $min_cachePath).
INSTALLING FRESH
See README.txt for instructions on installing this app for the first time.
SUPPORT
Send a message to http://groups.google.com/group/minify

View File

@ -5,11 +5,13 @@ require_once 'Minify/Cache/File.php';
function test_Minify_Cache_File()
{
global $minifyCachePath;
$data = str_repeat(md5(time()), 160);
$id = 'Minify_test_cache_noLock';
$prefix = 'Minify_Cache_File : ';
$cache = new Minify_Cache_File();
$cache = new Minify_Cache_File($minifyCachePath);
assertTrue(true === $cache->store($id, $data), $prefix . 'store');
@ -29,7 +31,7 @@ function test_Minify_Cache_File()
// test with locks
$id = 'Minify_test_cache_withLock';
$cache = new Minify_Cache_File('', true);
$cache = new Minify_Cache_File($minifyCachePath, true);
assertTrue(true === $cache->store($id, $data), $prefix . 'store w/ lock');

View File

@ -2,6 +2,7 @@
require 'test_Minify.php';
require 'test_Minify_Build.php';
require 'test_Minify_Cache_APC.php';
require 'test_Minify_Cache_File.php';
require 'test_Minify_Cache_Memcache.php';
require 'test_Minify_CSS.php';