r60475 - in /trunk/libcss-minifier-xs-perl: Changes MANIFEST META.yml Makefile.PL README XS.xs debian/changelog debian/control debian/copyright debian/rules lib/CSS/Minifier/XS.pm t/css/media.css t/css/media.min
ansgar-guest at users.alioth.debian.org
ansgar-guest at users.alioth.debian.org
Thu Jul 22 11:40:27 UTC 2010
Author: ansgar-guest
Date: Thu Jul 22 11:40:11 2010
New Revision: 60475
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=60475
Log:
* New upstream release.
* debian/copyright: Update years of copyright.
* Use Build.PL.
* Use source format 3.0 (quilt).
* Bump Standards-Version to 3.9.0 (no changes).
* Add myself to Uploaders.
Added:
trunk/libcss-minifier-xs-perl/t/css/media.css
- copied unchanged from r60473, branches/upstream/libcss-minifier-xs-perl/current/t/css/media.css
trunk/libcss-minifier-xs-perl/t/css/media.min
- copied unchanged from r60473, branches/upstream/libcss-minifier-xs-perl/current/t/css/media.min
Modified:
trunk/libcss-minifier-xs-perl/Changes
trunk/libcss-minifier-xs-perl/MANIFEST
trunk/libcss-minifier-xs-perl/META.yml
trunk/libcss-minifier-xs-perl/Makefile.PL
trunk/libcss-minifier-xs-perl/README
trunk/libcss-minifier-xs-perl/XS.xs
trunk/libcss-minifier-xs-perl/debian/changelog
trunk/libcss-minifier-xs-perl/debian/control
trunk/libcss-minifier-xs-perl/debian/copyright
trunk/libcss-minifier-xs-perl/debian/rules
trunk/libcss-minifier-xs-perl/lib/CSS/Minifier/XS.pm
Modified: trunk/libcss-minifier-xs-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/Changes?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/Changes (original)
+++ trunk/libcss-minifier-xs-perl/Changes Thu Jul 22 11:40:11 2010
@@ -1,4 +1,12 @@
Revision history for Perl extension CSS::Minifier::XS.
+
+0.07 Wed Jul 21 21:09 PDT 2010
+ - RT #39978; use 'Newxz/Safefree' instead of 'malloc/free' for memory
+ allocation. Thanks to Kenichi Ishigaki.
+
+0.06 Wed Jul 21 20:44 PDT 2010
+ - RT #59549; '(' should retain leading WS, as needed for @media queries.
+ Thanks to Mike Cardwell.
0.05 Fri Apr 23 22:29 PDT 2010
- Switch to Git
Modified: trunk/libcss-minifier-xs-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/MANIFEST?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/MANIFEST (original)
+++ trunk/libcss-minifier-xs-perl/MANIFEST Thu Jul 22 11:40:11 2010
@@ -19,6 +19,8 @@
t/css/comments-mac-ie-hack.min
t/css/leading-whitespace.css
t/css/leading-whitespace.min
+t/css/media.css
+t/css/media.min
t/css/retain-whitespace-after-close-parenthesis.css
t/css/retain-whitespace-after-close-parenthesis.min
t/css/styles.css
Modified: trunk/libcss-minifier-xs-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/META.yml?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/META.yml (original)
+++ trunk/libcss-minifier-xs-perl/META.yml Thu Jul 22 11:40:11 2010
@@ -1,21 +1,23 @@
---
name: CSS-Minifier-XS
-version: 0.05
+version: 0.07
author:
- Graham TerMarsch (cpan at howlingfrog.com)
abstract: XS based CSS minifier
license: perl
resources:
- license: ~
+ license: http://dev.perl.org/licenses/
+build_requires:
+ Test::More: 0
requires:
perl: 5.006
-build_requires:
- Test::More: 0
+configure_requires:
+ Module::Build: 0.35
provides:
CSS::Minifier::XS:
file: lib/CSS/Minifier/XS.pm
- version: 0.05
-generated_by: Module::Build version 0.32
+ version: 0.07
+generated_by: Module::Build version 0.35
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
Modified: trunk/libcss-minifier-xs-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/Makefile.PL?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/Makefile.PL (original)
+++ trunk/libcss-minifier-xs-perl/Makefile.PL Thu Jul 22 11:40:11 2010
@@ -1,14 +1,15 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.32
+# Note: this file was auto-generated by Module::Build::Compat version 0.35
require 5.006;
use ExtUtils::MakeMaker;
WriteMakefile
(
+ 'PL_FILES' => {},
+ 'INSTALLDIRS' => 'site',
'NAME' => 'CSS::Minifier::XS',
+ 'EXE_FILES' => [],
'VERSION_FROM' => 'lib/CSS/Minifier/XS.pm',
'PREREQ_PM' => {
'Test::More' => 0
- },
- 'INSTALLDIRS' => 'site',
- 'EXE_FILES' => []
+ }
)
;
Modified: trunk/libcss-minifier-xs-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/README?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/README (original)
+++ trunk/libcss-minifier-xs-perl/README Thu Jul 22 11:40:11 2010
@@ -1,6 +1,6 @@
CSS::Minifier::XS minifies CSS documents by removing un-necessary whitespace
-Copyright (C) 2007, Graham TerMarsch. All Rights Reserved.
+Copyright (C) 2007-2010, Graham TerMarsch. All Rights Reserved.
This is free software; you can redistribute it and/or modify it under the same
terms as Perl itself.
Modified: trunk/libcss-minifier-xs-perl/XS.xs
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/XS.xs?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/XS.xs (original)
+++ trunk/libcss-minifier-xs-perl/XS.xs Thu Jul 22 11:40:11 2010
@@ -38,10 +38,8 @@
}
int charIsInfix(char ch) {
/* WS before+after these characters can be removed */
- /* NOTE: ')' is -NOT- infix, its postfix; MSIE requires WS after it */
if (ch == '{') return 1;
if (ch == '}') return 1;
- if (ch == '(') return 1;
if (ch == ';') return 1;
if (ch == ':') return 1;
if (ch == ',') return 1;
@@ -50,11 +48,12 @@
}
int charIsPrefix(char ch) {
/* WS after these characters can be removed */
+ if (ch == '(') return 1; /* requires leading WS when used in @media */
return charIsInfix(ch);
}
int charIsPostfix(char ch) {
/* WS before these characters can be removed */
- if (ch == ')') return 1;
+ if (ch == ')') return 1; /* requires trailing WS for MSIE */
return charIsInfix(ch);
}
@@ -168,7 +167,8 @@
*/
/* allocates a new node */
Node* CssAllocNode() {
- Node* node = malloc(sizeof(Node));
+ Node* node;
+ Newxz(node, 1, Node);
node->prev = NULL;
node->next = NULL;
node->contents = NULL;
@@ -181,8 +181,8 @@
/* frees the memory used by a node */
void CssFreeNode(Node* node) {
if (node->contents)
- free(node->contents);
- free(node);
+ Safefree(node->contents);
+ Safefree(node);
}
void CssFreeNodeList(Node* head) {
while (head) {
@@ -195,7 +195,7 @@
/* clears the contents of a node */
void CssClearNodeContents(Node* node) {
if (node->contents)
- free(node->contents);
+ Safefree(node->contents);
node->contents = NULL;
node->length = 0;
}
@@ -205,8 +205,7 @@
CssClearNodeContents(node);
node->length = len;
/* allocate string, fill with NULLs, and copy */
- node->contents = malloc( sizeof(char) * (len+1) );
- memset( node->contents, 0, len );
+ Newxz(node->contents, (len+1), char);
strncpy( node->contents, string, len );
}
@@ -538,7 +537,8 @@
/* allocate the result buffer to the same size as the original CSS; in
* a worst case scenario that's how much memory we'll need for it.
*/
- ptr = results = malloc( sizeof(char) * (strlen(string)+1) );
+ Newxz(results, (strlen(string)+1), char);
+ ptr = results;
/* copy node contents into result buffer */
curr = head;
while (curr) {
@@ -572,7 +572,7 @@
/* hand back the minified CSS (if we had any) */
if (buffer != NULL) {
RETVAL = newSVpv(buffer, 0);
- free( buffer );
+ Safefree( buffer );
}
OUTPUT:
RETVAL
Modified: trunk/libcss-minifier-xs-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/debian/changelog?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/debian/changelog (original)
+++ trunk/libcss-minifier-xs-perl/debian/changelog Thu Jul 22 11:40:11 2010
@@ -1,17 +1,18 @@
-libcss-minifier-xs-perl (0.05-1) UNRELEASED; urgency=low
-
- IGNORE-VERSION: 0.05-1
- Only changes to MANIFEST.SKIP.
+libcss-minifier-xs-perl (0.07-1) unstable; urgency=low
[ Ryan Niebur ]
* Update ryan52's email address
[ Ansgar Burchardt ]
+ * New upstream release.
+ * debian/copyright: Update years of copyright.
+ * debian/copyright: Formatting changes for current DEP-5 proposal.
+ * Use Build.PL.
* Use source format 3.0 (quilt).
- * debian/copyright: Formatting changes for current DEP-5 proposal.
- * Bump Standards-Version to 3.8.4 (no changes).
+ * Bump Standards-Version to 3.9.0 (no changes).
+ * Add myself to Uploaders.
- -- Ansgar Burchardt <ansgar at 43-1.org> Mon, 26 Apr 2010 20:12:58 +0900
+ -- Ansgar Burchardt <ansgar at 43-1.org> Thu, 22 Jul 2010 20:39:52 +0900
libcss-minifier-xs-perl (0.04-1) unstable; urgency=low
Modified: trunk/libcss-minifier-xs-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/debian/control?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/debian/control (original)
+++ trunk/libcss-minifier-xs-perl/debian/control Thu Jul 22 11:40:11 2010
@@ -1,11 +1,12 @@
Source: libcss-minifier-xs-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7), libtest-pod-perl, libtest-pod-coverage-perl
+Build-Depends: debhelper (>= 7.3.7~), libtest-pod-perl, libtest-pod-coverage-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Ryan Niebur <ryan at debian.org>,
- gregor herrmann <gregoa at debian.org>
-Standards-Version: 3.8.4
+ gregor herrmann <gregoa at debian.org>,
+ Ansgar Burchardt <ansgar at 43-1.org>
+Standards-Version: 3.9.0
Homepage: http://search.cpan.org/dist/CSS-Minifier-XS/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcss-minifier-xs-perl/
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libcss-minifier-xs-perl/
Modified: trunk/libcss-minifier-xs-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/debian/copyright?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/debian/copyright (original)
+++ trunk/libcss-minifier-xs-perl/debian/copyright Thu Jul 22 11:40:11 2010
@@ -3,7 +3,7 @@
Source: http://search.cpan.org/dist/CSS-Minifier-XS/
Name: CSS-Minifier-XS
-Copyright: Copyright (C) 2007, Graham TerMarsch. All Rights Reserved.
+Copyright: 2007-2010, Graham TerMarsch. All Rights Reserved.
License: Artistic or GPL-1+
Files: debian/*
Modified: trunk/libcss-minifier-xs-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/debian/rules?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/debian/rules (original)
+++ trunk/libcss-minifier-xs-perl/debian/rules Thu Jul 22 11:40:11 2010
@@ -1,4 +1,4 @@
#!/usr/bin/make -f
%:
- dh $@
+ dh $@ --buildsystem=perl_build
Modified: trunk/libcss-minifier-xs-perl/lib/CSS/Minifier/XS.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-minifier-xs-perl/lib/CSS/Minifier/XS.pm?rev=60475&op=diff
==============================================================================
--- trunk/libcss-minifier-xs-perl/lib/CSS/Minifier/XS.pm (original)
+++ trunk/libcss-minifier-xs-perl/lib/CSS/Minifier/XS.pm Thu Jul 22 11:40:11 2010
@@ -9,7 +9,7 @@
our @ISA = qw(Exporter DynaLoader);
our @EXPORT_OK = qw(minify);
-our $VERSION = '0.05';
+our $VERSION = '0.07';
bootstrap CSS::Minifier::XS $VERSION;
@@ -130,7 +130,7 @@
=head1 COPYRIGHT
-Copyright (C) 2007, Graham TerMarsch. All Rights Reserved.
+Copyright (C) 2007-2010, Graham TerMarsch. All Rights Reserved.
This is free software; you can redistribute it and/or modify it under the same
license as Perl itself.
More information about the Pkg-perl-cvs-commits
mailing list