[Pkg-javascript-commits] [node-glob-parent] 01/03: New upstream version 3.0.1

Sruthi Chandran srud-guest at moszumanska.debian.org
Fri Oct 28 14:20:14 UTC 2016


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

srud-guest pushed a commit to branch master
in repository node-glob-parent.

commit 0b56bfe8b7c5f5680ff2d0c88d72ee754f2ce570
Author: Sruthi <srud at disroot.org>
Date:   Fri Oct 28 17:26:55 2016 +0530

    New upstream version 3.0.1
---
 .travis.yml  |  8 ++++----
 appveyor.yml | 25 +++++++++++++++++++++++++
 package.json |  5 +++--
 test.js      |  7 +++++++
 4 files changed, 39 insertions(+), 6 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 18fc42f..a404ceb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,8 @@
 language: node_js
 node_js:
+  - "6"
+  - "5"
   - "4"
-  - "iojs-v3"
-  - "iojs-v2"
-  - "iojs-v1"
-  - "0.12"
   - "0.10"
+script:
+  - npm run ci-test
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..eb93254
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,25 @@
+
+# Test against this version of Node.js
+environment:
+  matrix:
+    - nodejs_version: "6"
+    - nodejs_version: "5"
+    - nodejs_version: "4"
+
+# Install scripts. (runs after repo cloning)
+install:
+  # Get the latest stable version of Node.js or io.js
+  - ps: Install-Product node $env:nodejs_version
+  # install modules
+  - npm install
+
+# Post-install test scripts.
+test_script:
+  # Output useful info for debugging.
+  - node --version
+  - npm --version
+  # run tests
+  - npm test
+
+# Don't actually build.
+build: off
diff --git a/package.json b/package.json
index 7cb9758..a736bf9 100644
--- a/package.json
+++ b/package.json
@@ -1,10 +1,11 @@
 {
   "name": "glob-parent",
-  "version": "3.0.0",
+  "version": "3.0.1",
   "description": "Strips glob magic from a string to provide the parent path",
   "main": "index.js",
   "scripts": {
-    "test": "istanbul cover _mocha && cat ./coverage/lcov.info | coveralls"
+    "test": "istanbul test node_modules/mocha/bin/_mocha",
+    "ci-test": "istanbul cover _mocha && cat ./coverage/lcov.info | coveralls"
   },
   "repository": {
     "type": "git",
diff --git a/test.js b/test.js
index f12a5c8..d7f70e3 100644
--- a/test.js
+++ b/test.js
@@ -10,7 +10,9 @@ describe('glob-parent', function() {
     assert.equal(gp('/*.js'), '/');
     assert.equal(gp('*.js'), '.');
     assert.equal(gp('**/*.js'), '.');
+    assert.equal(gp('path/[a-z]'), 'path');
     assert.equal(gp('path/{to,from}'), 'path');
+    assert.equal(gp('path/(to|from)'), 'path');
     assert.equal(gp('path/!(to|from)'), 'path');
     assert.equal(gp('path/?(to|from)'), 'path');
     assert.equal(gp('path/+(to|from)'), 'path');
@@ -56,6 +58,11 @@ describe('glob2base test patterns', function() {
     assert.equal(gp('js/t+(wo|est)/*.js') + '/', 'js/');
   });
 
+  it('should get a base name from a path with non-exglob parens', function() {
+    assert.equal(gp('js/t(wo|est)/*.js'), 'js');
+    assert.equal(gp('js/t/(wo|est)/*.js'), 'js/t');
+  });
+
   it('should get a base name from a complex brace glob', function() {
     assert.equal(gp('lib/{components,pages}/**/{test,another}/*.txt') + '/', 'lib/');
 

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



More information about the Pkg-javascript-commits mailing list