Skip to content
Permalink
Browse files

moved unit_tests to min_unit_tests

min/builder/index.php : + note about CSS imports
HISTORY.txt and README.txt additions
some text file renaming
tools removed
  • Loading branch information...
mrclay committed Sep 11, 2008
1 parent 30db35a commit c54ae9205cec73da624dae093b1c94e0afa66c65
Showing with 3,477 additions and 23 deletions.
  1. +6 −5 HISTORY → HISTORY.txt
  2. 0 LICENSE → LICENSE.txt
  3. +19 −12 README → README.txt
  4. +8 −0 min/builder/index.php
  5. +7 −1 min/config.php
  6. +15 −0 min_extras/README.txt
  7. 0 {min_extras/unit_tests → min_unit_tests}/HTTP_ConditionalGet/2.php
  8. 0 {min_extras/unit_tests → min_unit_tests}/HTTP_ConditionalGet/3.php
  9. 0 {min_extras/unit_tests → min_unit_tests}/HTTP_ConditionalGet/4.php
  10. 0 {min_extras/unit_tests → min_unit_tests}/HTTP_ConditionalGet/5.php
  11. 0 {min_extras/unit_tests → min_unit_tests}/HTTP_ConditionalGet/_include.php
  12. 0 {min_extras/unit_tests → min_unit_tests}/HTTP_ConditionalGet/index.php
  13. BIN {min_extras/unit_tests → min_unit_tests}/HTTP_Encoder/green.png
  14. 0 {min_extras/unit_tests → min_unit_tests}/HTTP_Encoder/index.php
  15. +12 −1 {min_extras/unit_tests → min_unit_tests}/_inc.php
  16. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/comments.css
  17. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/comments.min.css
  18. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/hacks.css
  19. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/hacks.min.css
  20. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/paths.css
  21. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/paths.min.css
  22. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/readme.txt
  23. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/selectors.css
  24. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/selectors.min.css
  25. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/styles.css
  26. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/styles.min.css
  27. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/subsilver.css
  28. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/subsilver.min.css
  29. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/unusual_strings.css
  30. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/unusual_strings.min.css
  31. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/vladmirated.css
  32. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css/vladmirated.min.css
  33. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css_uriRewriter/exp.css
  34. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/css_uriRewriter/in.css
  35. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/html/before.html
  36. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/html/before.min.html
  37. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/html/before2.html
  38. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/html/before2.min.html
  39. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/importProcessor/1/adjacent.css
  40. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/importProcessor/1/tv.css
  41. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/importProcessor/adjacent.css
  42. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/importProcessor/input.css
  43. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/importProcessor/output.css
  44. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/js/before.js
  45. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/js/before.min.js
  46. +3,408 −0 min_unit_tests/_test_files/js/jquery-1.2.3.js
  47. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/minify/QueryString.js
  48. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/minify/email.js
  49. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/minify/lines_output.js
  50. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/minify/minified.css
  51. 0 {min_extras/unit_tests → min_unit_tests}/_test_files/minify/minified.js
  52. 0 {min_extras/unit_tests → min_unit_tests}/test_HTTP_ConditionalGet.php
  53. +2 −1 {min_extras/unit_tests → min_unit_tests}/test_HTTP_Encoder.php
  54. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify.php
  55. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_Build.php
  56. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_CSS.php
  57. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_CSS_UriRewriter.php
  58. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_Cache_File.php
  59. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_Cache_Memcache.php
  60. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_CommentPreserver.php
  61. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_HTML.php
  62. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_ImportProcessor.php
  63. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_Javascript.php
  64. 0 {min_extras/unit_tests → min_unit_tests}/test_Minify_Lines.php
  65. 0 {min_extras/unit_tests → min_unit_tests}/test_all.php
  66. +0 −3 tools/doc.bat
@@ -1,21 +1,21 @@
Minify Release History

Version 2.1.0
* "min" default configuration for quick deployment
* "min" default application for quick deployment
* Minify URI Builder app & bookmarklet for quickly creating minify URIs
* Relative URIs in CSS file are fixed automatically
* Conditional GETs always supported
* Relative URIs in CSS file are fixed automatically by default
* "debug" mode for revealing original line #s in combined files
* Better IIS support
* Improved minifier classes:
* JS: preserves IE conditional comments
* CSS: smaller output, preserves more hacks and valid CSS syntax,
shorter line lengths, other bug fixes
* HTML: smaller output, shorter line lengths, other bug fixes
* Default Cache-Control: max-age of 30 minutes
* Conditional GETs supported even when max-age sent
* Experimental memcache cache class (default is files)
* Minify_Cache_File has flock()s (by default)
* Workaround for Windows mtime reporting bug
* New "CSS linearizer" which processes @imports server-side

Version 2.0.2 beta (2008-06-24)
* Fast new cache system. Cached files served almost 3x as fast.
@@ -31,7 +31,8 @@ Version 2.0.0 (2008-05-22)
* Expanded CSS and HTML minifiers with test cases
* Easily plug-in 3rd-party minifiers (like Packer)
* Plug-able front end controller allows changing the way files are chosen
* Compression & encoding modules lazy-loaded as needed (304 responses use minimal code)
* Compression & encoding modules lazy-loaded as needed (304 responses use
use minimal code)
* Separate utility classes for HTTP encoding and cache control

Version 1.0.1 (2007-05-05)
File renamed without changes.
@@ -17,6 +17,25 @@ you to the Minify URI Builder application, which will help you
quickly start using Minify to serve content on your site.


UNIT TESTING:

1. Place the /min_unit_tests/ directory as a child of your DOCUMENT_ROOT
directory: i.e. you will have: /home/user/www/public_html/min_unit_tests

2. To run unit tests, access: http://yourdomain/min_unit_tests/test_all.php

(If you wish, the other test_*.php files can be run to test individual
components with more verbose output.)

3. Remove /min_unit_tests/ from your DOCUMENT_ROOT when you are done.


EXTRAS:

The min_extras folder contains files for benchmarking using Apache ab on Windows
and a couple single-use tools. DO NOT place this on your production server.


FILE ENCODINGS

Minify *should* work fine with files encoded in UTF-8 or other 8-bit
@@ -26,15 +45,3 @@ encodings like ISO 8859/Windows-1252. By default Minify appends
Leading UTF-8 BOMs are stripped from all sources to prevent
duplication in output files, and files are converted to Unix newlines.


UNIT TESTING:

1. Place the /min_extras/ directory as a child of your DOCUMENT_ROOT
directory: i.e. you will have: /home/user/www/public_html/min_extras

2. To run unit tests, access: http://yourdomain/min_extras/unit_tests/test_all.php

Other test_*.php files in that directory can be run to test individual
components more verbosely.

After testing you should remove the min_extras directory.
@@ -80,6 +80,14 @@
<p><a id=bm>Create Minify URIs</a> <small>(right-click, add to favorites/bookmarks)</small></p>
</div>

<h3>Combining CSS files that contain <code>@import</code></h3>
<p>If your CSS files contain <code>@import</code> declarations, Minify will not
remove them. Therefore, you will want to remove those that point to files already
in your list, and move any others to the top of the first file in your list
(imports below any styles will be ignored by browsers as invalid).</p>
<p>If you desire, you can use Minify URIs in imports and they will not be touched
by Minify. E.g. <code>@import "/min/?g=css2";</code></p>

<hr>
<p>Need help? Search or post to the <a class=ext href="http://groups.google.com/group/minify">Minify discussion list</a>.</p>
<p><small>This app is minified :) <a class=ext href="http://code.google.com/p/minify/source/browse/trunk/min/builder/index.php">view source</a></small></p>
@@ -73,7 +73,13 @@
*
* Immediately after modifying and uploading a file, use the touch command to
* update the mtime on the server. If the mtime jumps ahead by a number of hours,
* set this variable to that number. If the mtime moves back, this should not be needed.
* set this variable to that number. If the mtime moves back, this should not be
* needed.
*
* In the Windows SFTP client WinSCP, there's an option that may fix this
* issue without changing the variable below. Under login > environment,
* select the option "Adjust remote timestamp with DST".
* @link http://winscp.net/eng/docs/ui_login_environment#daylight_saving_time
*/
$min_uploaderHoursBehind = 0;
@@ -0,0 +1,15 @@
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
DO NOT leave this directory on a site in production. Some scripts within may be
resource intensive and some allow file uploads.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This directory contains testing scripts and a few example applications built
with the Minify library classes.

ab_tests/
Windows batch files used to benchmark various Minify and Apache
configurations using Apache ab.

tools/
Two utility web apps that upload a file, alter it, and send it back to the
user. One applies HTTP encoding, the other minifies CSS/JS/HTML.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,9 +1,20 @@
<?php
require '../config.php';
require dirname(__FILE__) . '/../min/config.php';
if (!isset($min_libPath)) {
// default lib path is inside min
$min_libPath = dirname(__FILE__) . '/../min/lib';
}
set_include_path($min_libPath . PATH_SEPARATOR . get_include_path());
$minifyCachePath = isset($min_cachePath)
? $min_cachePath
: '';
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
header('Content-Type: text/plain');
$thisDir = dirname(__FILE__);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c54ae92

Please sign in to comment.
You can’t perform that action at this time.