[Pkg-javascript-commits] [node-tap] 10/14: Fix patch

Jérémy Lal kapouer at moszumanska.debian.org
Mon Oct 20 00:02:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

kapouer pushed a commit to branch master
in repository node-tap.

commit 8c57ca459d62ce00114b92cc67c9629f4e211df2
Author: Jérémy Lal <kapouer at melix.org>
Date:   Mon Oct 20 01:51:01 2014 +0200

    Fix patch
---
 debian/patches/use_available_modules.patch | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/debian/patches/use_available_modules.patch b/debian/patches/use_available_modules.patch
index 7b936bd..13a348f 100644
--- a/debian/patches/use_available_modules.patch
+++ b/debian/patches/use_available_modules.patch
@@ -5,18 +5,18 @@ Author: Jérémy Lal <kapouer at melix.org>
 Last-Update: 2014-10-20
 --- a/lib/tap-assert.js
 +++ b/lib/tap-assert.js
-@@ -1,9 +1,26 @@
+@@ -1,9 +1,27 @@
  // an assert module that returns tappable data for each assertion.
 -var difflet = require('difflet')
 -  , deepEqual = require('deep-equal')
 -  , bufferEqual = require('buffer-equal')
-+var diffl = require('diff')
-+  , assert = require('assert')
++var createPatch = require('diff').createPatch
++  , assertDeepEqual = require('assert').deepEqual
    , Buffer = require('buffer').Buffer
  
 +function deepEqual(a, b) {
 +  try {
-+    assert.deepEqual(a, b);
++    assertDeepEqual(a, b);
 +  } catch(e) {
 +    return false;
 +  }
@@ -30,12 +30,13 @@ Last-Update: 2014-10-20
 +  for (var i=0, len=a.length; i < len; i++) {
 +    if (a[i] != b[i]) return false;
 +  }
++  return true;
 +}
 +
  module.exports = assert
  
  var syns = {}
-@@ -384,6 +401,8 @@
+@@ -384,6 +402,8 @@
    }})())
  }
  
@@ -44,13 +45,12 @@ Last-Update: 2014-10-20
  function diffString (f, w) {
    if (w === f) return null
    var p = 0
-@@ -395,7 +414,8 @@
+@@ -395,7 +415,7 @@
  }
  
  function diffObject (f, w) {
 -  return difflet({ indent : 2, comment : true }).compare(w, f)
-+  var sw = JSON.stringify(w, null, 2);
-+  return diff.createPatch('', JSON.stringify(w, null, 2), JSON.stringify(f, null, 2));
++  return createPatch('', JSON.stringify(w, null, 2), JSON.stringify(f, null, 2));
  }
  
  function diff (f, w, p) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git



More information about the Pkg-javascript-commits mailing list