From d4c62854e5382ba7d5c38737760dd9c849252d27 Mon Sep 17 00:00:00 2001 From: taca Date: Mon, 11 Feb 2013 02:41:42 +0000 Subject: Update ruby-diff-lcs to 1.2.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit == 1.2.1 / 2013-02-09 * Bugs Fixed: * As seen in https://github.com/rspec/rspec-expectations/pull/200, the release of Diff::LCS 1.2 introduced an unnecessary public API change to Diff::LCS::Hunk (see the change at https://github.com/rspec/rspec-expectations/commit/3d6fc82c for details). The new method name (and behaviour) is more correct, but I should not have renamed the function or should have at least provided an alias. This release restores Diff::LCS::Hunk#unshift as an alias to #merge. Note that the old #unshift behaviour was incorrect and will not be restored. == 1.2.0 / 2013-01-21 * Minor Enhancements: * Added special case handling for Diff::LCS.patch so that it handles patches that are empty or contain no changes. * Added two new methods (#patch\_me and #unpatch\_me) to the includable module. * Bugs Fixed: * Fixed issue #1 patch direction detection. https://github.com/halostatue/diff-lcs/issues/1 * Resolved issue #2 by handling string[string.size, 1] properly (it returns "" not nil). https://github.com/halostatue/diff-lcs/issues/2 * Michael Granger (ged) fixed an implementation error in Diff::LCS::Change and added specs in pull request #8. Thanks! https://github.com/halostatue/diff-lcs/issues/8 * Made the code auto-testable. * Vít Ondruch (voxik) provided the latest version of the GPL2 license file in pull request #10. Thanks! https://github.com/halostatue/diff-lcs/issues/10 * Fixed a documentation issue with the includable versions of #patch! and #unpatch! where they implied that they would replace the original value. Given that Diff::LCS.patch always returns a copy, the documentation was incorrect and has been corrected. To provide the behaviour that was originally documented, two new methods were added to provide this behaviour. Found by scooter-dangle in issue #12. Thanks! https://github.com/halostatue/diff-lcs/issues/12 * Code Style Changes: * Removed trailing spaces. * Calling class methods using '.' instead of '::'. * Vít Ondruch (voxik) removed unnecessary shebangs in pull request #9. Thanks! https://github.com/halostatue/diff-lcs/issues/9 * Kenichi Kamiya (kachick) removed some warnings of an unused variable in lucky pull request #13. https://github.com/halostatue/diff-lcs/issues/13 Thanks! * Embarked on a major refactoring to make the files a little more manageable and understand the code on a deeper level. * Adding to http://travis-ci.org. --- textproc/ruby-diff-lcs/Makefile | 4 ++-- textproc/ruby-diff-lcs/PLIST | 14 ++++++++++++-- textproc/ruby-diff-lcs/distinfo | 8 ++++---- 3 files changed, 18 insertions(+), 8 deletions(-) (limited to 'textproc/ruby-diff-lcs') diff --git a/textproc/ruby-diff-lcs/Makefile b/textproc/ruby-diff-lcs/Makefile index 7c8ed92258f..4749d44eca1 100644 --- a/textproc/ruby-diff-lcs/Makefile +++ b/textproc/ruby-diff-lcs/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2011/09/12 13:38:16 taca Exp $ +# $NetBSD: Makefile,v 1.5 2013/02/11 02:41:42 taca Exp $ -DISTNAME= diff-lcs-1.1.3 +DISTNAME= diff-lcs-1.2.1 CATEGORIES= textproc MAINTAINER= pkgsrc-users@NetBSD.org diff --git a/textproc/ruby-diff-lcs/PLIST b/textproc/ruby-diff-lcs/PLIST index b9e08e443c7..b678a7faa8d 100644 --- a/textproc/ruby-diff-lcs/PLIST +++ b/textproc/ruby-diff-lcs/PLIST @@ -1,18 +1,25 @@ -@comment $NetBSD: PLIST,v 1.3 2011/09/12 13:38:16 taca Exp $ +@comment $NetBSD: PLIST,v 1.4 2013/02/11 02:41:42 taca Exp $ bin/htmldiff bin/ldiff ${GEM_HOME}/cache/${GEM_NAME}.gem +${GEM_LIBDIR}/.autotest ${GEM_LIBDIR}/.gemtest +${GEM_LIBDIR}/.hoerc +${GEM_LIBDIR}/.rspec +${GEM_LIBDIR}/.travis.yml +${GEM_LIBDIR}/Contributing.rdoc +${GEM_LIBDIR}/Gemfile ${GEM_LIBDIR}/History.rdoc ${GEM_LIBDIR}/License.rdoc ${GEM_LIBDIR}/Manifest.txt ${GEM_LIBDIR}/README.rdoc ${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/autotest/discover.rb ${GEM_LIBDIR}/bin/htmldiff ${GEM_LIBDIR}/bin/ldiff ${GEM_LIBDIR}/diff-lcs.gemspec ${GEM_LIBDIR}/docs/COPYING.txt -${GEM_LIBDIR}/docs/artistic.html +${GEM_LIBDIR}/docs/artistic.txt ${GEM_LIBDIR}/lib/diff-lcs.rb ${GEM_LIBDIR}/lib/diff/lcs.rb ${GEM_LIBDIR}/lib/diff/lcs/array.rb @@ -21,9 +28,12 @@ ${GEM_LIBDIR}/lib/diff/lcs/callbacks.rb ${GEM_LIBDIR}/lib/diff/lcs/change.rb ${GEM_LIBDIR}/lib/diff/lcs/htmldiff.rb ${GEM_LIBDIR}/lib/diff/lcs/hunk.rb +${GEM_LIBDIR}/lib/diff/lcs/internals.rb ${GEM_LIBDIR}/lib/diff/lcs/ldiff.rb ${GEM_LIBDIR}/lib/diff/lcs/string.rb +${GEM_LIBDIR}/spec/change_spec.rb ${GEM_LIBDIR}/spec/diff_spec.rb +${GEM_LIBDIR}/spec/issues_spec.rb ${GEM_LIBDIR}/spec/lcs_spec.rb ${GEM_LIBDIR}/spec/patch_spec.rb ${GEM_LIBDIR}/spec/sdiff_spec.rb diff --git a/textproc/ruby-diff-lcs/distinfo b/textproc/ruby-diff-lcs/distinfo index 54c4f10bbb9..557037ff31a 100644 --- a/textproc/ruby-diff-lcs/distinfo +++ b/textproc/ruby-diff-lcs/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.2 2011/09/12 13:38:16 taca Exp $ +$NetBSD: distinfo,v 1.3 2013/02/11 02:41:42 taca Exp $ -SHA1 (diff-lcs-1.1.3.gem) = f9e5dac8411c1b51905d71c38da72aa4948514b7 -RMD160 (diff-lcs-1.1.3.gem) = 9a0e172a7b50b4a20b4a4591d47ea20b01dd9bd5 -Size (diff-lcs-1.1.3.gem) = 41472 bytes +SHA1 (diff-lcs-1.2.1.gem) = 9be5a63dddb78ef153b747789cb640bdcf059d14 +RMD160 (diff-lcs-1.2.1.gem) = c9bab2b63fb9ee870a6bba6984bb6ee41d91e9fe +Size (diff-lcs-1.2.1.gem) = 46080 bytes -- cgit v1.2.3