r70771 - in /branches/upstream/libcss-packer-perl/current: Changes Makefile.PL lib/CSS/Packer.pm t/01-io.t

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Mon Mar 7 03:53:36 UTC 2011


Author: jawnsy-guest
Date: Mon Mar  7 03:53:23 2011
New Revision: 70771

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=70771
Log:
[svn-upgrade] new version libcss-packer-perl (1.000001)

Modified:
    branches/upstream/libcss-packer-perl/current/Changes
    branches/upstream/libcss-packer-perl/current/Makefile.PL
    branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm
    branches/upstream/libcss-packer-perl/current/t/01-io.t

Modified: branches/upstream/libcss-packer-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/Changes?rev=70771&op=diff
==============================================================================
--- branches/upstream/libcss-packer-perl/current/Changes (original)
+++ branches/upstream/libcss-packer-perl/current/Changes Mon Mar  7 03:53:23 2011
@@ -1,4 +1,9 @@
 Revision history for CSS-Packer
+
+1.000001    2011-02-27
+    - Changed requirements to Regexp::RegGrp 1.000001 due to "undefined submatches bug" in Regexp::RegGrp.
+    - Small change in declaration replacement sub.
+    - Added test.
 
 1.000   2011-01-17
     - Changed versioning.

Modified: branches/upstream/libcss-packer-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/Makefile.PL?rev=70771&op=diff
==============================================================================
--- branches/upstream/libcss-packer-perl/current/Makefile.PL (original)
+++ branches/upstream/libcss-packer-perl/current/Makefile.PL Mon Mar  7 03:53:23 2011
@@ -5,7 +5,7 @@
 
 all_from        'lib/CSS/Packer.pm';
 test_requires   'Test::More'        => 0;
-requires        'Regexp::RegGrp'    => "1.000";
+requires        'Regexp::RegGrp'    => "1.000001";
 
 repository 'http://github.com/nevesenin/css-packer-perl';
 

Modified: branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm?rev=70771&op=diff
==============================================================================
--- branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm (original)
+++ branches/upstream/libcss-packer-perl/current/lib/CSS/Packer.pm Mon Mar  7 03:53:23 2011
@@ -6,7 +6,7 @@
 use Carp;
 use Regexp::RegGrp;
 
-our $VERSION        = '1.000';
+our $VERSION        = '1.000001';
 
 our $DICTIONARY     = {
     'STRING1'   => qr~"(?>(?:(?>[^"\\]+)|\\.|\\"|\\\s)*)"~,
@@ -125,7 +125,7 @@
                     $value =~ s/\s+/ /gsm;
                 }
 
-                return '' if ( not $key or ( not $value and $value ne '0' ) );
+                return '' if ( not $key or $value eq '' );
 
                 return $key . ':' . $value . ';' . ( $compress eq 'pretty' ? "\n" : '' );
             }
@@ -316,7 +316,7 @@
 
 =head1 VERSION
 
-Version 1.000
+Version 1.000001
 
 =head1 DESCRIPTION
 

Modified: branches/upstream/libcss-packer-perl/current/t/01-io.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcss-packer-perl/current/t/01-io.t?rev=70771&op=diff
==============================================================================
--- branches/upstream/libcss-packer-perl/current/t/01-io.t (original)
+++ branches/upstream/libcss-packer-perl/current/t/01-io.t Mon Mar  7 03:53:23 2011
@@ -8,7 +8,7 @@
 
 use Test::More;
 
-my $not = 9;
+my $not = 10;
 
 SKIP: {
 	eval( 'use CSS::Packer' );
@@ -33,6 +33,9 @@
 	$var = "foo {\na : b;\n}";
 	$packer->minify( \$var, { 'compress' => 'pretty' } );
 	is( $var, "foo{\na:b;\n}\n", 'string literal input and ouput (pretty)' );
+	$var = "foo {\nborder:0;\nmargin:1;\npadding:0\n}";
+	$packer->minify( \$var, { 'compress' => 'minify' } );
+	is( $var, "foo{border:0;margin:1;padding:0;}", 'string literal input and ouput (minify)' );
 }
 
 sub filesMatch {




More information about the Pkg-perl-cvs-commits mailing list