[Pkg-javascript-commits] [node-stylus] 04/04: add patch for updating to latest should api

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jun 29 22:02:10 UTC 2014


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

andrewrk-guest pushed a commit to branch master
in repository node-stylus.

commit 58908731b0785107b3b14f99293f0fc408597273
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Sun Jun 29 22:00:16 2014 +0000

    add patch for updating to latest should api
---
 debian/patches/latest_should_api.patch | 21 +++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/latest_should_api.patch b/debian/patches/latest_should_api.patch
new file mode 100644
index 0000000..4aa6413
--- /dev/null
+++ b/debian/patches/latest_should_api.patch
@@ -0,0 +1,21 @@
+Description: update should usage to latest API
+ stylus depends on should 2.x which is very old and has not accepted this
+ patch to update their code to should 4.x
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: https://github.com/LearnBoost/stylus/pull/1604
+Last-Update: 2014-06-29
+--- node-stylus-0.46.3.orig/test/middleware/index.js
++++ node-stylus-0.46.3/test/middleware/index.js
+@@ -23,9 +23,9 @@ describe('middleware', function() {
+ 			src: __dirname,
+ 			dest: __dirname
+ 		})(req, res, function() {
+-			fs.readFileSync(__dirname + '/test.css').toString().should.include('color: #000')
++			fs.readFileSync(__dirname + '/test.css').toString().should.containEql('color: #000')
+ 			fs.unlinkSync(__dirname + '/test.css');
+ 			done()
+ 		});
+ 	});
+-});
+\ No newline at end of file
++});
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6dae10c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+latest_should_api.patch

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



More information about the Pkg-javascript-commits mailing list