Hello community,

here is the log from the commit of package perl-XML-SAX-Writer for 
openSUSE:Factory checked in at 2015-04-22 01:15:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-XML-SAX-Writer (Old)
 and      /work/SRC/openSUSE:Factory/.perl-XML-SAX-Writer.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-XML-SAX-Writer"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-XML-SAX-Writer/perl-XML-SAX-Writer.changes  
2014-02-28 17:46:29.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-XML-SAX-Writer.new/perl-XML-SAX-Writer.changes 
    2015-04-22 01:15:15.000000000 +0200
@@ -1,0 +2,6 @@
+Sun Apr 19 07:27:07 UTC 2015 - [email protected]
+
+- updated to 0.56
+   see /usr/share/doc/packages/perl-XML-SAX-Writer/Changes
+
+-------------------------------------------------------------------

Old:
----
  XML-SAX-Writer-0.54.tar.gz

New:
----
  XML-SAX-Writer-0.56.tar.gz
  cpanspec.yml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-XML-SAX-Writer.spec ++++++
--- /var/tmp/diff_new_pack.KP2NOH/_old  2015-04-22 01:15:16.000000000 +0200
+++ /var/tmp/diff_new_pack.KP2NOH/_new  2015-04-22 01:15:16.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-XML-SAX-Writer
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,15 @@
 
 
 Name:           perl-XML-SAX-Writer
-Version:        0.54
+Version:        0.56
 Release:        0
 %define cpan_name XML-SAX-Writer
 Summary:        SAX2 XML Writer
 License:        Artistic-1.0 or GPL-1.0+
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/XML-SAX-Writer/
-Source:         
http://www.cpan.org/authors/id/P/PE/PERIGRIN/%{cpan_name}-%{version}.tar.gz
+Source0:        
http://www.cpan.org/authors/id/P/PE/PERIGRIN/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
@@ -38,22 +39,7 @@
 %{perl_requires}
 
 %description
-Why yet another XML Writer ?
-
-A new XML Writer was needed to match the SAX2 effort because quite naturally no
-existing writer understood SAX2. My first intention had been to start patching
-XML::Handler::YAWriter as it had previously been my favourite writer in the 
SAX1 world.
-
-However the more I patched it the more I realised that what I thought was 
going to be
-a simple patch (mostly adding a few event handlers and changing the attribute 
syntax)
-was turning out to be a rewrite due to various ideas I`d been collecting along 
the way.
-Besides, I couldn`t find a way to elegantly make it work with SAX2 without 
breaking
-the SAX1 compatibility which people are probably still using. There are of 
course
-ways to do that, but most require user interaction which is something I wanted 
to avoid.
-
-So in the end there was a new writer. I think it`s in fact better this way as 
it
-helps keep SAX1 and SAX2 separated.
-
+SAX2 XML Writer
 
 %prep
 %setup -q -n %{cpan_name}-%{version}

++++++ XML-SAX-Writer-0.54.tar.gz -> XML-SAX-Writer-0.56.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/LICENSE 
new/XML-SAX-Writer-0.56/LICENSE
--- old/XML-SAX-Writer-0.54/LICENSE     2013-12-13 18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/LICENSE     2014-11-13 19:51:22.000000000 +0100
@@ -1,4 +1,4 @@
-This software is copyright (c) 2013 by Robin Berjon.
+This software is copyright (c) 2014 by Robin Berjon.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
 
 --- The GNU General Public License, Version 1, February 1989 ---
 
-This software is Copyright (c) 2013 by Robin Berjon.
+This software is Copyright (c) 2014 by Robin Berjon.
 
 This is free software, licensed under:
 
@@ -22,7 +22,7 @@
                      Version 1, February 1989
 
  Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Suite 500, Boston, MA  02110-1335  USA
+ 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
@@ -272,7 +272,7 @@
 
 --- The Artistic License 1.0 ---
 
-This software is Copyright (c) 2013 by Robin Berjon.
+This software is Copyright (c) 2014 by Robin Berjon.
 
 This is free software, licensed under:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/MANIFEST 
new/XML-SAX-Writer-0.56/MANIFEST
--- old/XML-SAX-Writer-0.54/MANIFEST    2013-12-13 18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/MANIFEST    2014-11-13 19:51:22.000000000 +0100
@@ -1,3 +1,4 @@
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v5.025.
 Changes
 LICENSE
 MANIFEST
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/META.yml 
new/XML-SAX-Writer-0.56/META.yml
--- old/XML-SAX-Writer-0.54/META.yml    2013-12-13 18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/META.yml    2014-11-13 19:51:22.000000000 +0100
@@ -4,25 +4,25 @@
   - 'Robin Berjon <[email protected]>'
   - 'Chris Prather <[email protected]>'
 build_requires:
-  File::Spec: 0
-  IO::Handle: 0
-  IPC::Open3: 0
-  Test::More: 0.40
+  File::Spec: '0'
+  IO::Handle: '0'
+  IPC::Open3: '0'
+  Test::More: '0.40'
 configure_requires:
-  ExtUtils::MakeMaker: 6.30
+  ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.006, CPAN::Meta::Converter version 
2.120921'
+generated_by: 'Dist::Zilla version 5.025, CPAN::Meta::Converter version 
2.142690'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
+  version: '1.4'
 name: XML-SAX-Writer
 requires:
-  Encode: 2.12
-  XML::Filter::BufferText: 1.00
-  XML::NamespaceSupport: 1.00
-  XML::SAX::Exception: 1.01
+  Encode: '2.12'
+  XML::Filter::BufferText: '1.00'
+  XML::NamespaceSupport: '1.00'
+  XML::SAX::Exception: '1.01'
 resources:
   homepage: https://github.com/perigrin/xml-sax-writer
   repository: https://github.com/perigrin/xml-sax-writer.git
-version: 0.54
+version: '0.56'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/Makefile.PL 
new/XML-SAX-Writer-0.56/Makefile.PL
--- old/XML-SAX-Writer-0.54/Makefile.PL 2013-12-13 18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/Makefile.PL 2014-11-13 19:51:22.000000000 +0100
@@ -1,10 +1,11 @@
 
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v5.025.
 use strict;
 use warnings;
 
 
 
-use ExtUtils::MakeMaker 6.30;
+use ExtUtils::MakeMaker;
 
 
 
@@ -15,7 +16,7 @@
     "Test::More" => "0.40"
   },
   "CONFIGURE_REQUIRES" => {
-    "ExtUtils::MakeMaker" => "6.30"
+    "ExtUtils::MakeMaker" => 0
   },
   "DISTNAME" => "XML-SAX-Writer",
   "EXE_FILES" => [],
@@ -33,7 +34,7 @@
     "IPC::Open3" => 0,
     "Test::More" => "0.40"
   },
-  "VERSION" => "0.54",
+  "VERSION" => "0.56",
   "test" => {
     "TESTS" => "t/*.t"
   }
@@ -42,6 +43,7 @@
 
 my %FallbackPrereqs = (
   "Encode" => "2.12",
+  "ExtUtils::MakeMaker" => 0,
   "File::Spec" => 0,
   "IO::Handle" => 0,
   "IPC::Open3" => 0,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/README 
new/XML-SAX-Writer-0.56/README
--- old/XML-SAX-Writer-0.54/README      2013-12-13 18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/README      2014-11-13 19:51:22.000000000 +0100
@@ -1,13 +1,15 @@
 
 
 This archive contains the distribution XML-SAX-Writer,
-version 0.54:
+version 0.56:
 
   SAX2 XML Writer
 
-This software is copyright (c) 2013 by Robin Berjon.
+This software is copyright (c) 2014 by Robin Berjon.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
 
 
+This README file was generated by Dist::Zilla::Plugin::Readme v5.025.
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/README.md 
new/XML-SAX-Writer-0.56/README.md
--- old/XML-SAX-Writer-0.54/README.md   2013-12-13 18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/README.md   2014-11-13 19:51:22.000000000 +0100
@@ -27,17 +27,16 @@
 Usage
 -----
 
-  use XML::SAX::Writer;
-  use XML::SAX::SomeDriver;
+>   use XML::SAX::Writer;
+>   use XML::SAX::SomeDriver;
+> 
+>   my $w = XML::SAX::Writer->new;
+>   my $d = XML::SAX::SomeDriver->new(Handler => $w);
+> 
+>   $d->parse('some options...');
 
-  my $w = XML::SAX::Writer->new;
-  my $d = XML::SAX::SomeDriver->new(Handler => $w);
-
-  $d->parse('some options...');
-
-See http://perl-xml.sourceforge.net/perl-sax/ for more details about
+See [http://perl-xml.sourceforge.net/perl-sax/]() for more details about
 Perl SAX 2.
- 
 
 License
 -------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/dist.ini 
new/XML-SAX-Writer-0.56/dist.ini
--- old/XML-SAX-Writer-0.54/dist.ini    2013-12-13 18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/dist.ini    2014-11-13 19:51:22.000000000 +0100
@@ -3,14 +3,13 @@
 author  = Chris Prather <[email protected]>
 license = Perl_5
 copyright_holder = Robin Berjon
-copyright_year   = 2013
+copyright_year   = 2014
 
 [@Basic]
 [PkgVersion]
 [Prereqs::FromCPANfile]
 
 [PruneFiles]
-filenames = Makefile.PL
 match = ^nytprof.*
 match = ^local
 match = ^perl5
@@ -21,5 +20,7 @@
 [PodWeaver]
 
 [@Git]
+exclude_filename = Makefile.PL
+
 [Git::NextVersion]
 [GithubMeta]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/lib/XML/SAX/Writer/XML.pm 
new/XML-SAX-Writer-0.56/lib/XML/SAX/Writer/XML.pm
--- old/XML-SAX-Writer-0.54/lib/XML/SAX/Writer/XML.pm   2013-12-13 
18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/lib/XML/SAX/Writer/XML.pm   2014-11-13 
19:51:22.000000000 +0100
@@ -1,20 +1,15 @@
-###
-# XML::SAX::Writer - SAX2 XML Writer
-# Robin Berjon <[email protected]>
-###
-
 package XML::SAX::Writer::XML;
-{
-  $XML::SAX::Writer::XML::VERSION = '0.54';
-}
+$XML::SAX::Writer::XML::VERSION = '0.56';
 use strict;
 use XML::NamespaceSupport   qw();
 @XML::SAX::Writer::XML::ISA = qw(XML::SAX::Writer);
 
+# ABSTRACT: XML::SAX::Writer's SAX Handler
+
+###
+# Robin Berjon <[email protected]>
+###
 
-#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#
-#`,`, The SAX Handler `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,#
-#```````````````````````````````````````````````````````````````````#
 
 #-------------------------------------------------------------------#
 # start_document
@@ -547,11 +542,11 @@
 
 =head1 NAME
 
-XML::SAX::Writer::XML
+XML::SAX::Writer::XML - XML::SAX::Writer's SAX Handler
 
 =head1 VERSION
 
-version 0.54
+version 0.56
 
 =head1 SYNOPSIS
 
@@ -595,7 +590,7 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-This software is copyright (c) 2013 by Robin Berjon.
+This software is copyright (c) 2014 by Robin Berjon.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/lib/XML/SAX/Writer.pm 
new/XML-SAX-Writer-0.56/lib/XML/SAX/Writer.pm
--- old/XML-SAX-Writer-0.54/lib/XML/SAX/Writer.pm       2013-12-13 
18:43:46.000000000 +0100
+++ new/XML-SAX-Writer-0.56/lib/XML/SAX/Writer.pm       2014-11-13 
19:51:22.000000000 +0100
@@ -1,7 +1,7 @@
 package XML::SAX::Writer;
+$XML::SAX::Writer::VERSION = '0.56';
 use strict;
-use vars qw($VERSION %DEFAULT_ESCAPE %COMMENT_ESCAPE);
-$VERSION = '0.53';
+use vars qw(%DEFAULT_ESCAPE %COMMENT_ESCAPE);
 
 # ABSTRACT: SAX2 XML Writer
 
@@ -36,12 +36,12 @@
     $opt->{Writer}          ||= 'XML::SAX::Writer::XML';
     $opt->{Escape}          ||= \%DEFAULT_ESCAPE;
     $opt->{CommentEscape}   ||= \%COMMENT_ESCAPE;
-    $opt->{EncodeFrom}      ||= 'utf-8';
-    $opt->{EncodeTo}        ||= 'utf-8';
+    $opt->{EncodeFrom}        = exists $opt->{EncodeFrom} ? $opt->{EncodeFrom} 
: 'utf-8';
+    $opt->{EncodeTo}          = exists $opt->{EncodeTo}   ? $opt->{EncodeTo}   
: 'utf-8';
     $opt->{Format}          ||= {}; # needs options w/ defaults, we'll see 
later
     $opt->{Output}          ||= *{STDOUT}{IO};
     $opt->{QuoteCharacter}  ||= q['];
-    
+
     eval "use $opt->{Writer};";
 
     my $obj = bless $opt, $opt->{Writer};
@@ -171,10 +171,10 @@
     my $str = shift;
 
     my $out = $self->{Encoder}->convert($str);
-    
-    if (!defined $out and defined $str) {
-       warn "Conversion error returned by Encoder [$self->{Encoder}], string: 
'$str'";
-       $out = '_LOST_DATA_';
+
+    if (!defined $out && defined $str) {
+        warn "Conversion error returned by Encoder [$self->{Encoder}], string: 
'$str'";
+        $out = '_LOST_DATA_';
     }
     return $out;
 }
@@ -189,7 +189,7 @@
 # new methods are added to the interface
 
 package XML::SAX::Writer::ConsumerInterface;
-
+$XML::SAX::Writer::ConsumerInterface::VERSION = '0.56';
 sub new {
     my $class = shift;
     my $ref = shift;
@@ -207,6 +207,7 @@
 #```````````````````````````````````````````````````````````````````#
 
 package XML::SAX::Writer::StringConsumer;
+$XML::SAX::Writer::StringConsumer::VERSION = '0.56';
 @XML::SAX::Writer::StringConsumer::ISA = 
qw(XML::SAX::Writer::ConsumerInterface);
 
 #-------------------------------------------------------------------#
@@ -236,6 +237,7 @@
 #```````````````````````````````````````````````````````````````````#
 
 package XML::SAX::Writer::CodeConsumer;
+$XML::SAX::Writer::CodeConsumer::VERSION = '0.56';
 @XML::SAX::Writer::CodeConsumer::ISA = qw(XML::SAX::Writer::ConsumerInterface 
);
 
 #-------------------------------------------------------------------#
@@ -266,6 +268,7 @@
 #```````````````````````````````````````````````````````````````````#
 
 package XML::SAX::Writer::ArrayConsumer;
+$XML::SAX::Writer::ArrayConsumer::VERSION = '0.56';
 @XML::SAX::Writer::ArrayConsumer::ISA = 
qw(XML::SAX::Writer::ConsumerInterface);
 
 #-------------------------------------------------------------------#
@@ -296,6 +299,7 @@
 #```````````````````````````````````````````````````````````````````#
 
 package XML::SAX::Writer::HandleConsumer;
+$XML::SAX::Writer::HandleConsumer::VERSION = '0.56';
 @XML::SAX::Writer::HandleConsumer::ISA = 
qw(XML::SAX::Writer::ConsumerInterface);
 
 #-------------------------------------------------------------------#
@@ -321,6 +325,7 @@
 #```````````````````````````````````````````````````````````````````#
 
 package XML::SAX::Writer::FileConsumer;
+$XML::SAX::Writer::FileConsumer::VERSION = '0.56';
 @XML::SAX::Writer::FileConsumer::ISA = qw(XML::SAX::Writer::HandleConsumer);
 
 #-------------------------------------------------------------------#
@@ -358,6 +363,7 @@
 #```````````````````````````````````````````````````````````````````#
 
 package XML::SAX::Writer::NullConverter;
+$XML::SAX::Writer::NullConverter::VERSION = '0.56';
 sub new     { return bless [], __PACKAGE__ }
 sub convert { $_[1] }
 
@@ -367,21 +373,26 @@
 #```````````````````````````````````````````````````````````````````#
 
 package XML::SAX::Writer::Encode;
+$XML::SAX::Writer::Encode::VERSION = '0.56';
 sub new {
-    my $class = shift;
+    my ($class, $from, $to) = @_;
     my $self = {
-        from_enc => shift,
-        to_enc => shift,
+        from_enc => $from,
+        to_enc   => $to,
     };
     return bless $self, $class;
 }
 sub convert {
-    my $self = shift;
-    my $data = shift;
+    my ($self, $data) = @_;
     eval {
-        Encode::from_to( $data, $self->{from_enc}, $self->{to_enc}, 
Encode::FB_CROAK );
+        $data = Encode::decode($self->{from_enc}, $data) if $self->{from_enc};
+        $data = Encode::encode($self->{to_enc}, $data, Encode::FB_CROAK) if 
$self->{to_enc};
     };
-    return $@ ? undef : $data;
+    if ($@) {
+        warn $@;
+        return;
+    }
+    return $data;
 };
 
 
@@ -397,7 +408,7 @@
 
 =head1 VERSION
 
-version 0.54
+version 0.56
 
 =head1 SYNOPSIS
 
@@ -479,11 +490,15 @@
 The character set encoding in which incoming data will be provided.
 This defaults to UTF-8, which works for US-ASCII as well.
 
+Set this to C<undef> if you do not wish to decode your data.
+
 =item * EncodeTo
 
 The character set encoding in which output should be encoded. Again,
 this defaults to UTF-8.
 
+Set this to C<undef> if you do not with to encode your data.
+
 =item * QuoteCharacter
 
 Set the character used to quote attributes. This defaults to single quotes (') 
@@ -700,7 +715,7 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-This software is copyright (c) 2013 by Robin Berjon.
+This software is copyright (c) 2014 by Robin Berjon.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/XML-SAX-Writer-0.54/t/00-compile.t 
new/XML-SAX-Writer-0.56/t/00-compile.t
--- old/XML-SAX-Writer-0.54/t/00-compile.t      2013-12-13 18:43:46.000000000 
+0100
+++ new/XML-SAX-Writer-0.56/t/00-compile.t      2014-11-13 19:51:22.000000000 
+0100
@@ -2,11 +2,11 @@
 use strict;
 use warnings;
 
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.039
-
-use Test::More  tests => 2 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.051
 
+use Test::More;
 
+plan tests => 2 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
 
 my @module_files = (
     'XML/SAX/Writer.pm',
@@ -46,6 +46,7 @@
 
 
 
-is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
+is(scalar(@warnings), 0, 'no warnings found')
+    or diag 'got warnings: ', ( Test::More->can('explain') ? 
Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if 
$ENV{AUTHOR_TESTING};
 
 

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

Reply via email to