r62788 - in /trunk/libcss-tiny-perl: Changes MANIFEST META.yml Makefile.PL README debian/changelog debian/control debian/copyright lib/CSS/Tiny.pm t/04_rt.t

angelabad-guest at users.alioth.debian.org angelabad-guest at users.alioth.debian.org
Tue Sep 21 23:46:46 UTC 2010


Author: angelabad-guest
Date: Tue Sep 21 23:46:37 2010
New Revision: 62788

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=62788
Log:
* New upstream release
* Add myself to Uploaders
* debian/copyright: Update license information
* Bump Standards-Version to 3.9.1 (no changes)

Added:
    trunk/libcss-tiny-perl/t/04_rt.t
      - copied unchanged from r62787, branches/upstream/libcss-tiny-perl/current/t/04_rt.t
Modified:
    trunk/libcss-tiny-perl/Changes
    trunk/libcss-tiny-perl/MANIFEST
    trunk/libcss-tiny-perl/META.yml
    trunk/libcss-tiny-perl/Makefile.PL
    trunk/libcss-tiny-perl/README
    trunk/libcss-tiny-perl/debian/changelog
    trunk/libcss-tiny-perl/debian/control
    trunk/libcss-tiny-perl/debian/copyright
    trunk/libcss-tiny-perl/lib/CSS/Tiny.pm

Modified: trunk/libcss-tiny-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/Changes?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/Changes (original)
+++ trunk/libcss-tiny-perl/Changes Tue Sep 21 23:46:37 2010
@@ -1,4 +1,13 @@
 Revision history for Perl extension CSS-Tiny
+
+1.19 Fri  3 Sep 2010
+	- No functional changes
+	- Resolved RT #59037: CSS::Tiny reorders rules
+	- The use of Tie::IxHash to achieve ordering is now documented
+
+1.18 Fri  3 Sep 2010
+	- Resolved RT #60776: Parsing of multiple whitespace selectors
+	- Added test script specifically for RT regression tests
 
 1.17 Sun  4 Jul 2010
 	- Removed the use of Module::Install

Modified: trunk/libcss-tiny-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/MANIFEST?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/MANIFEST (original)
+++ trunk/libcss-tiny-perl/MANIFEST Tue Sep 21 23:46:37 2010
@@ -7,6 +7,7 @@
 t/01_compile.t
 t/02_main.t
 t/03_inline_clone.t
+t/04_rt.t
 test.css
 xt/meta.t
 xt/pmv.t

Modified: trunk/libcss-tiny-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/META.yml?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/META.yml (original)
+++ trunk/libcss-tiny-perl/META.yml Tue Sep 21 23:46:37 2010
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               CSS-Tiny
-version:            1.17
+version:            1.19
 abstract:           Read/Write .css files with as little code as possible
 author:
     - Adam Kennedy <adamk at cpan.org>

Modified: trunk/libcss-tiny-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/Makefile.PL?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/Makefile.PL (original)
+++ trunk/libcss-tiny-perl/Makefile.PL Tue Sep 21 23:46:37 2010
@@ -2,7 +2,7 @@
 use vars qw{$VERSION};
 BEGIN {
 	require 5.004;
-	$VERSION = '1.17';
+	$VERSION = '1.19';
 }
 use ExtUtils::MakeMaker;
 

Modified: trunk/libcss-tiny-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/README?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/README (original)
+++ trunk/libcss-tiny-perl/README Tue Sep 21 23:46:37 2010
@@ -131,6 +131,23 @@
     When an error occurs, you can retrieve the error message either from the
     $CSS::Tiny::errstr variable, or using the "errstr" method.
 
+CAVEATS
+  CSS Rule Order
+    While the order of rules in CSS is important, this is one of the
+    features that is sacrificed to keep things small and dependency-free. If
+    you need to preserve order yourself, we recommend that you upgrade to
+    the more powerful CSS module.
+
+    If this is not possible in your case, alternatively it can be done with
+    the help of another module such as Tie::IxHash:
+
+        my $css = CSS::Tiny->new;
+        tie %$css, 'Tie::IxHash';
+        $css->read('style.css');
+
+    Note: You will also need to remember to add the additional dependency to
+    your code or module in this case.
+
 SUPPORT
     Bugs should be reported via the CPAN bug tracker at
 

Modified: trunk/libcss-tiny-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/debian/changelog?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/debian/changelog (original)
+++ trunk/libcss-tiny-perl/debian/changelog Tue Sep 21 23:46:37 2010
@@ -1,3 +1,12 @@
+libcss-tiny-perl (1.19-1) unstable; urgency=low
+
+  * New upstream release
+  * Add myself to Uploaders
+  * debian/copyright: Update license information
+  * Bump Standards-Version to 3.9.1 (no changes)
+
+ -- Angel Abad <angelabad at gmail.com>  Wed, 22 Sep 2010 01:43:46 +0200
+
 libcss-tiny-perl (1.17-1) unstable; urgency=low
 
   [ gregor herrmann ]

Modified: trunk/libcss-tiny-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/debian/control?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/debian/control (original)
+++ trunk/libcss-tiny-perl/debian/control Tue Sep 21 23:46:37 2010
@@ -4,15 +4,16 @@
 Build-Depends: debhelper (>= 7)
 Build-Depends-Indep: perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Damyan Ivanov <dmn at debian.org>, Ansgar Burchardt <ansgar at 43-1.org>
-Standards-Version: 3.9.0
+Uploaders: Damyan Ivanov <dmn at debian.org>, Ansgar Burchardt <ansgar at 43-1.org>,
+ Angel Abad <angelabad at gmail.com>
+Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/CSS-Tiny/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libcss-tiny-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libcss-tiny-perl/
 
 Package: libcss-tiny-perl
 Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}
+Depends: ${misc:Depends}, ${perl:Depends}
 Description: Perl module to read/write .css files with as little code as possible
  CSS::Tiny is a perl class to read and write .css stylesheets with as 
  little code as possible, reducing load time and memory overhead.

Modified: trunk/libcss-tiny-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/debian/copyright?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/debian/copyright (original)
+++ trunk/libcss-tiny-perl/debian/copyright Tue Sep 21 23:46:37 2010
@@ -3,29 +3,32 @@
 Source: http://search.cpan.org/dist/CSS-Tiny/
 Name: CSS-Tiny
 
+Files: *
 Copyright: 2002-2010, Adam Kennedy <adamk at cpan.org>
 License: Artistic or GPL-1+
 
 Files: debian/*
-Copyright:
- 2005, Chip Salzenberg <chip at debian.org>
+Copyright: 2005, Chip Salzenberg <chip at debian.org>
  2005, Gunnar Wolf <gwolf at debian.org>
  2006, Florian Ragwitz <rafl at debian.org>
+ 2008, Damyan Ivanov <dmn at debian.org>
  2008, Mark Hymers <mhy at debian.org>
- 2008, Damyan Ivanov <dmn at debian.org>
+ 2010, Angel Abad <angelabad at gmail.com>
  2010, Ansgar Burchardt <ansgar at 43-1.org>
 License: Artistic or GPL-1+
 
 License: Artistic
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the Artistic License, which comes with Perl.
-    On Debian GNU/Linux systems, the complete text of the Artistic License
-    can be found in `/usr/share/common-licenses/Artistic'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian GNU/Linux systems, the complete text of the Artistic License
+ can be found in `/usr/share/common-licenses/Artistic'.
 
 License: GPL-1+
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 1, or (at your option)
-    any later version.
-    On Debian GNU/Linux systems, the complete text of the GNU General
-    Public License can be found in `/usr/share/common-licenses/GPL'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian GNU/Linux systems, the complete text of version 1 of the
+ General Public License can be found in `/usr/share/common-licenses/GPL-1'.

Modified: trunk/libcss-tiny-perl/lib/CSS/Tiny.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcss-tiny-perl/lib/CSS/Tiny.pm?rev=62788&op=diff
==============================================================================
--- trunk/libcss-tiny-perl/lib/CSS/Tiny.pm (original)
+++ trunk/libcss-tiny-perl/lib/CSS/Tiny.pm Tue Sep 21 23:46:37 2010
@@ -5,7 +5,7 @@
 use strict;
 BEGIN {
 	require 5.004;
-	$CSS::Tiny::VERSION = '1.17';
+	$CSS::Tiny::VERSION = '1.19';
 	$CSS::Tiny::errstr  = '';
 }
 
@@ -47,13 +47,14 @@
 		}
 
 		# Split in such a way as to support grouped styles
-		my $style = $1;
+		my $style      = $1;
+		my $properties = $2;
 		$style =~ s/\s{2,}/ /g;
 		my @styles = grep { s/\s+/ /g; 1; } grep { /\S/ } split /\s*,\s*/, $style;
 		foreach ( @styles ) { $self->{$_} ||= {} }
 
 		# Split into properties
-		foreach ( grep { /\S/ } split /\;/, $2 ) {
+		foreach ( grep { /\S/ } split /\;/, $properties ) {
 			unless ( /^\s*([\w._-]+)\s*:\s*(.*?)\s*$/ ) {
 				return $self->_error( "Invalid or unexpected property '$_' in style '$style'" );
 			}
@@ -284,6 +285,25 @@
 When an error occurs, you can retrieve the error message either from the
 C<$CSS::Tiny::errstr> variable, or using the C<errstr> method.
 
+=head1 CAVEATS
+
+=head2 CSS Rule Order
+
+While the order of rules in CSS is important, this is one of the features
+that is sacrificed to keep things small and dependency-free. If you need
+to preserve order yourself, we recommend that you upgrade to the more
+powerful L<CSS> module.
+
+If this is not possible in your case, alternatively it can be done with the
+help of another module such as L<Tie::IxHash>:
+
+    my $css = CSS::Tiny->new;
+    tie %$css, 'Tie::IxHash';
+    $css->read('style.css');
+
+Note: You will also need to remember to add the additional dependency to
+your code or module in this case.
+
 =head1 SUPPORT
 
 Bugs should be reported via the CPAN bug tracker at




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