[Pkg-javascript-commits] [node-detective] 09/09: New upstream version
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Nov 30 10:43:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-detective.
commit 25f9c9be622630d4d3768f3cd34caf8ec93fb9c7
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Nov 30 11:37:48 2017 +0100
New upstream version
---
debian/changelog | 6 ++++++
debian/control | 8 ++++----
debian/examples | 1 +
debian/tests/control | 6 +++---
debian/tests/runtestsuite | 16 ++++++++++++++++
5 files changed, 30 insertions(+), 7 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 0879739..dde4ef8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-detective (4.6.0-1) unstable; urgency=medium
+
+ * New upstream version
+
+ -- Bastien Roucariès <rouca at debian.org> Thu, 30 Nov 2017 11:33:30 +0100
+
node-detective (4.5.0-1) unstable; urgency=low
* Initial release (Closes: #873453)
diff --git a/debian/control b/debian/control
index 19c23b7..910aedb 100644
--- a/debian/control
+++ b/debian/control
@@ -8,10 +8,10 @@ Build-Depends:
, dh-buildinfo
, nodejs (>= 6)
, dpkg-dev (>= 1.17.14)
- , node-tap (>=5.7.1) <!nocheck>
+ , node-tap (>=10) <!nocheck>
, node-defined (>= 1.0.0) <!nocheck>
- , node-acorn (>= 5.1.1+ds1-3) <!nocheck>
-Standards-Version: 4.1.0
+ , node-acorn (>= 5.2.1) <!nocheck>
+Standards-Version: 4.1.1
Homepage: https://github.com/substack/node-detective#readme
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-detective.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-detective.git
@@ -22,7 +22,7 @@ Depends:
${misc:Depends}
, nodejs (>= 6)
, node-defined (>= 1.0.0)
- , node-acorn (>= 5.1.1+ds1-3)
+ , node-acorn (>= 5.2.1)
Description: find all require() calls by walking the AST
This modules allows one to determine modules depends by
walking AST tree and detecting require() call.
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..e5a7b8d
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+example/*
\ No newline at end of file
diff --git a/debian/tests/control b/debian/tests/control
index ccfcd3b..0aa9981 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,8 +1,8 @@
Tests: require
-Depends: node-detective
+Depends: node-detective, nodejs (>= 6)
Tests: runexamples
-Depends: node-detective
+Depends: node-detective, nodejs (>= 6)
Tests: runtestsuite
-Depends: node-detective, node-tap (>= 5.1.2)
+Depends: node-detective, node-tap (>= 5.1.2), nodejs (>= 6)
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..5724e76
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+# notice the / at end in order to load this module
+PACKAGE='detective'
+SEDCMD="s,require\s*[(]\s*'[.][.]/?([^']*)'\s*[)],require('$PACKAGE/\1'),g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test/ $tmpdir/test
+find test/ -name '*.js' -print0 | \
+ xargs -0 -n1 \
+ sh -c 'set -e; echo "Create: $3"; sed -E "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+cd $tmpdir
+# avoid false that does not work outside build dir
+tap test/*.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-detective.git
More information about the Pkg-javascript-commits
mailing list