Hello community,

here is the log from the commit of package perl-Text-Diff for openSUSE:Factory 
checked in at 2016-03-16 10:24:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Text-Diff (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Text-Diff.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Text-Diff"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Text-Diff/perl-Text-Diff.changes    
2015-08-28 08:24:21.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Text-Diff.new/perl-Text-Diff.changes       
2016-03-16 10:24:52.000000000 +0100
@@ -1,0 +2,14 @@
+Tue Mar  8 11:10:13 UTC 2016 - [email protected]
+
+- updated to 1.44
+   see /usr/share/doc/packages/perl-Text-Diff/Changes
+
+  1.44 2016-02-26 NEILB
+      - Fixed the handling of text without a trailing newline. This module now
+        adds the same text that the diff tool does, "
+\ No newline at end of
+        file
+". Previously this module simply produced broken diffs when one or
+        both files had no trailing newline. Fixed by Dave Rolsky. GitHub #1.
+
+-------------------------------------------------------------------

Old:
----
  Text-Diff-1.43.tar.gz

New:
----
  Text-Diff-1.44.tar.gz

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

Other differences:
------------------
++++++ perl-Text-Diff.spec ++++++
--- /var/tmp/diff_new_pack.zqewj4/_old  2016-03-16 10:24:53.000000000 +0100
+++ /var/tmp/diff_new_pack.zqewj4/_new  2016-03-16 10:24:53.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Text-Diff
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 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,7 +17,7 @@
 
 
 Name:           perl-Text-Diff
-Version:        1.43
+Version:        1.44
 Release:        0
 %define cpan_name Text-Diff
 Summary:        Perform diffs on files and record sets
@@ -41,11 +41,11 @@
 than shelling out to a system's 'diff' executable for small files, and
 generally slower on larger files.
 
-Relies on the Algorithm::Diff manpage for, well, the algorithm. This may
-not produce the same exact diff as a system's local 'diff' executable, but
-it will be a valid diff and comprehensible by 'patch'. We haven't seen any
-differences between Algorithm::Diff's logic and GNU diff's, but we have not
-examined them to make sure they are indeed identical.
+Relies on Algorithm::Diff for, well, the algorithm. This may not produce
+the same exact diff as a system's local 'diff' executable, but it will be a
+valid diff and comprehensible by 'patch'. We haven't seen any differences
+between Algorithm::Diff's logic and GNU diff's, but we have not examined
+them to make sure they are indeed identical.
 
 *Note*: If you don't want to import the 'diff' function, do one of the
 following:

++++++ Text-Diff-1.43.tar.gz -> Text-Diff-1.44.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Diff-1.43/Changes new/Text-Diff-1.44/Changes
--- old/Text-Diff-1.43/Changes  2015-08-21 22:44:12.000000000 +0200
+++ new/Text-Diff-1.44/Changes  2016-02-27 00:04:12.000000000 +0100
@@ -1,5 +1,11 @@
 Revision history for Perl module Text::Diff
 
+1.44 2016-02-26 NEILB
+    - Fixed the handling of text without a trailing newline. This module now
+      adds the same text that the diff tool does, "\n\\ No newline at end of
+      file\n". Previously this module simply produced broken diffs when one or
+      both files had no trailing newline. Fixed by Dave Rolsky. GitHub #1.
+
 1.43 2015-08-21 NEILB
     - Got rid of the "Redundant argument in sprintf" warnings from
       Text:Diff::Table on Perl 5.021+. RT#100505 and RT#106602.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Diff-1.43/META.json new/Text-Diff-1.44/META.json
--- old/Text-Diff-1.43/META.json        2015-08-21 22:48:34.000000000 +0200
+++ new/Text-Diff-1.44/META.json        2016-02-27 00:05:49.000000000 +0100
@@ -44,6 +44,6 @@
          "url" : "https://github.com/neilbowers/Text-Diff";
       }
    },
-   "version" : "1.43",
+   "version" : "1.44",
    "x_serialization_backend" : "JSON::PP version 2.27203"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Diff-1.43/META.yml new/Text-Diff-1.44/META.yml
--- old/Text-Diff-1.43/META.yml 2015-08-21 22:48:34.000000000 +0200
+++ new/Text-Diff-1.44/META.yml 2016-02-27 00:05:49.000000000 +0100
@@ -23,5 +23,5 @@
   perl: '5.006'
 resources:
   repository: https://github.com/neilbowers/Text-Diff
-version: '1.43'
+version: '1.44'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.016'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Diff-1.43/lib/Text/Diff/Config.pm 
new/Text-Diff-1.44/lib/Text/Diff/Config.pm
--- old/Text-Diff-1.43/lib/Text/Diff/Config.pm  2015-08-21 22:31:50.000000000 
+0200
+++ new/Text-Diff-1.44/lib/Text/Diff/Config.pm  2016-02-27 00:04:36.000000000 
+0100
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-our $VERSION   = '1.43';
+our $VERSION   = '1.44';
 our $Output_Unicode;
 
 BEGIN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Diff-1.43/lib/Text/Diff/Table.pm 
new/Text-Diff-1.44/lib/Text/Diff/Table.pm
--- old/Text-Diff-1.43/lib/Text/Diff/Table.pm   2015-08-21 22:31:55.000000000 
+0200
+++ new/Text-Diff-1.44/lib/Text/Diff/Table.pm   2016-02-27 00:04:39.000000000 
+0100
@@ -6,7 +6,7 @@
 use Carp;
 use Text::Diff::Config;
 
-our $VERSION   = '1.43';
+our $VERSION   = '1.44';
 our @ISA       = qw( Text::Diff::Base Exporter );
 our @EXPORT_OK = qw( expand_tabs );
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Text-Diff-1.43/lib/Text/Diff.pm 
new/Text-Diff-1.44/lib/Text/Diff.pm
--- old/Text-Diff-1.43/lib/Text/Diff.pm 2015-08-21 22:43:47.000000000 +0200
+++ new/Text-Diff-1.44/lib/Text/Diff.pm 2016-02-27 00:04:33.000000000 +0100
@@ -7,7 +7,7 @@
 use Exporter        ();
 use Algorithm::Diff ();
 
-our $VERSION = '1.43';
+our $VERSION = '1.44';
 our @ISA     = qw/ Exporter /;
 our @EXPORT  = qw/ diff /;
 
@@ -236,7 +236,11 @@
     return () unless defined $op_sym;
 
     $a_or_b = $op->[OPCODE] ne "+" ? 0 : 1 unless defined $a_or_b;
-    return ( $op_sym, $seqs->[$a_or_b][$op->[$a_or_b]] );
+    my @line = ( $op_sym, $seqs->[$a_or_b][$op->[$a_or_b]] );
+    unless ( $line[1] =~ /(?:\n|\r\n)$/ ) {
+        $line[1] .= "\n\\ No newline at end of file\n";
+    }
+    return @line;
 }
 
 SCOPE: {


Reply via email to