You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by js...@apache.org on 2014/07/07 23:43:22 UTC
[16/51] [partial] CB-7087 Retire blackberry10/ directory
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/inflector/methods-test.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/inflector/methods-test.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/inflector/methods-test.js
deleted file mode 100644
index d3f0c84..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/inflector/methods-test.js
+++ /dev/null
@@ -1,342 +0,0 @@
-(function() {
- var assert, cases, vows, util;
-
- vows = require('vows');
-
- assert = require('assert');
-
- util = require('../../lib/util');
-
- cases = require('./cases');
-
- vows.describe('Module Inflector methods').addBatch({
- 'Test inflector method': {
- topic: require('../../lib/methods'),
- 'camelize': {
- 'word': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.CamelToUnderscore;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.camelize(words[i]), i));
- }
- return _results;
- },
- 'word with first letter lower': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.UnderscoreToLowerCamel;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.camelize(i, false), words[i]));
- }
- return _results;
- },
- 'path': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.CamelWithModuleToUnderscoreWithSlash;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.camelize(words[i]), i));
- }
- return _results;
- },
- 'path with first letter lower': function(topic) {
- return assert.equal(topic.camelize('bullet_record/errors', false), 'bulletRecord.Errors');
- }
- },
- 'underscore': {
- 'word': function(topic) {
- var i, words, _i, _j, _len, _len2, _ref, _ref2, _results;
- words = cases.CamelToUnderscore;
- _ref = Object.keys(words);
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- assert.equal(topic.underscore(i), words[i]);
- }
- words = cases.CamelToUnderscoreWithoutReverse;
- _ref2 = Object.keys(words);
- _results = [];
- for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
- i = _ref2[_j];
- _results.push(assert.equal(topic.underscore(i), words[i]));
- }
- return _results;
- },
- 'path': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.CamelWithModuleToUnderscoreWithSlash;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.underscore(i), words[i]));
- }
- return _results;
- },
- 'from dasherize': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.UnderscoresToDashes;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.underscore(topic.dasherize(i)), i));
- }
- return _results;
- }
- },
- 'dasherize': {
- 'underscored_word': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.UnderscoresToDashes;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.dasherize(i), words[i]));
- }
- return _results;
- }
- },
- 'demodulize': {
- 'module name': function(topic) {
- return assert.equal(topic.demodulize('BulletRecord.CoreExtensions.Inflections'), 'Inflections');
- },
- 'isolated module name': function(topic) {
- return assert.equal(topic.demodulize('Inflections'), 'Inflections');
- }
- },
- 'foreign_key': {
- 'normal': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.ClassNameToForeignKeyWithoutUnderscore;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.foreign_key(i, false), words[i]));
- }
- return _results;
- },
- 'with_underscore': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.ClassNameToForeignKeyWithUnderscore;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.foreign_key(i), words[i]));
- }
- return _results;
- }
- },
- 'ordinalize': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.OrdinalNumbers;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.ordinalize(i), words[i]));
- }
- return _results;
- }
- }
- }).addBatch({
- 'Test inflector inflection methods': {
- topic: function() {
- var Inflector;
- Inflector = require('../../lib/methods');
- Inflector.inflections["default"]();
- return Inflector;
- },
- 'pluralize': {
- 'empty': function(topic) {
- return assert.equal(topic.pluralize(''), '');
- },
- 'uncountable': function(topic) {
- return assert.equal(topic.pluralize('money'), 'money');
- },
- 'normal': function(topic) {
- topic.inflections.irregular('octopus', 'octopi');
- return assert.equal(topic.pluralize('octopus'), 'octopi');
- },
- 'cases': function(topic) {
- var i, words, _i, _j, _len, _len2, _ref, _ref2, _results;
- words = cases.SingularToPlural;
- _ref = Object.keys(words);
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- assert.equal(topic.pluralize(i), words[i]);
- }
- _ref2 = Object.keys(words);
- _results = [];
- for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
- i = _ref2[_j];
- _results.push(assert.equal(topic.pluralize(util.string.capitalize(i)), util.string.capitalize(words[i])));
- }
- return _results;
- },
- 'cases plural': function(topic) {
- var i, words, _i, _j, _len, _len2, _ref, _ref2, _results;
- words = cases.SingularToPlural;
- _ref = Object.keys(words);
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- assert.equal(topic.pluralize(words[i]), words[i]);
- }
- _ref2 = Object.keys(words);
- _results = [];
- for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
- i = _ref2[_j];
- _results.push(assert.equal(topic.pluralize(util.string.capitalize(words[i])), util.string.capitalize(words[i])));
- }
- return _results;
- }
- },
- 'singuralize': {
- 'empty': function(topic) {
- return assert.equal(topic.singularize(''), '');
- },
- 'uncountable': function(topic) {
- return assert.equal(topic.singularize('money'), 'money');
- },
- 'normal': function(topic) {
- topic.inflections.irregular('octopus', 'octopi');
- return assert.equal(topic.singularize('octopi'), 'octopus');
- },
- 'cases': function(topic) {
- var i, words, _i, _j, _len, _len2, _ref, _ref2, _results;
- words = cases.SingularToPlural;
- _ref = Object.keys(words);
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- assert.equal(topic.singularize(words[i]), i);
- }
- _ref2 = Object.keys(words);
- _results = [];
- for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
- i = _ref2[_j];
- _results.push(assert.equal(topic.singularize(util.string.capitalize(words[i])), util.string.capitalize(i)));
- }
- return _results;
- }
- },
- 'uncountablility': {
- 'normal': function(topic) {
- var i, words, _i, _j, _k, _len, _len2, _len3, _results;
- words = topic.inflections.uncountables;
- for (_i = 0, _len = words.length; _i < _len; _i++) {
- i = words[_i];
- assert.equal(topic.singularize(i), i);
- }
- for (_j = 0, _len2 = words.length; _j < _len2; _j++) {
- i = words[_j];
- assert.equal(topic.pluralize(i), i);
- }
- _results = [];
- for (_k = 0, _len3 = words.length; _k < _len3; _k++) {
- i = words[_k];
- _results.push(assert.equal(topic.singularize(i), topic.pluralize(i)));
- }
- return _results;
- },
- 'greedy': function(topic) {
- var countable_word, uncountable_word;
- uncountable_word = "ors";
- countable_word = "sponsor";
- topic.inflections.uncountable(uncountable_word);
- assert.equal(topic.singularize(uncountable_word), uncountable_word);
- assert.equal(topic.pluralize(uncountable_word), uncountable_word);
- assert.equal(topic.pluralize(uncountable_word), topic.singularize(uncountable_word));
- assert.equal(topic.singularize(countable_word), 'sponsor');
- assert.equal(topic.pluralize(countable_word), 'sponsors');
- return assert.equal(topic.singularize(topic.pluralize(countable_word)), 'sponsor');
- }
- },
- 'humanize': {
- 'normal': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.UnderscoreToHuman;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.humanize(i), words[i]));
- }
- return _results;
- },
- 'with rule': function(topic) {
- topic.inflections.human(/^(.*)_cnt$/i, '$1_count');
- topic.inflections.human(/^prefix_(.*)$/i, '$1');
- assert.equal(topic.humanize('jargon_cnt'), 'Jargon count');
- return assert.equal(topic.humanize('prefix_request'), 'Request');
- },
- 'with string': function(topic) {
- topic.inflections.human('col_rpted_bugs', 'Reported bugs');
- assert.equal(topic.humanize('col_rpted_bugs'), 'Reported bugs');
- return assert.equal(topic.humanize('COL_rpted_bugs'), 'Col rpted bugs');
- },
- 'with _id': function(topic) {
- return assert.equal(topic.humanize('author_id'), 'Author');
- }
- },
- 'titleize': {
- 'normal': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.MixtureToTitleCase;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.titleize(i), words[i]));
- }
- return _results;
- },
- 'with hyphens': function(topic) {
- return assert.equal(topic.titleize('x-men: the last stand'), 'X Men: The Last Stand');
- }
- },
- 'tableize': function(topic) {
- var i, words, _i, _len, _ref, _results;
- words = cases.ClassNameToTableName;
- _ref = Object.keys(words);
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- _results.push(assert.equal(topic.tableize(i), words[i]));
- }
- return _results;
- },
- 'classify': {
- 'underscore': function(topic) {
- var i, words, _i, _j, _len, _len2, _ref, _ref2, _results;
- words = cases.ClassNameToTableName;
- _ref = Object.keys(words);
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- i = _ref[_i];
- assert.equal(topic.classify(words[i]), i);
- }
- _ref2 = Object.keys(words);
- _results = [];
- for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
- i = _ref2[_j];
- _results.push(assert.equal(topic.classify('table_prefix.' + words[i]), i));
- }
- return _results;
- },
- 'normal': function(topic) {
- topic.inflections.irregular('octopus', 'octopi');
- return assert.equal(topic.classify('octopi'), 'Octopus');
- }
- }
- }
- })["export"](module);
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/array-test.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/array-test.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/array-test.js
deleted file mode 100644
index 95ba2bc..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/array-test.js
+++ /dev/null
@@ -1,39 +0,0 @@
-(function() {
- var assert, vows, util;
-
- vows = require('vows');
-
- assert = require('assert');
-
- util = require('../../lib/util');
-
- vows.describe('Module core extension Array').addBatch({
- 'Testing del': {
- topic: ['a', 'b', 'c'],
- 'element exists': {
- 'first element': function(topic) {
- return assert.deepEqual(util.array.del(topic, 'a'), ['b', 'c']);
- },
- 'middle element': function(topic) {
- return assert.deepEqual(util.array.del(topic, 'b'), ['a', 'c']);
- },
- 'last element': function(topic) {
- return assert.deepEqual(util.array.del(topic, 'c'), ['a', 'b']);
- }
- },
- 'element does not exist': function(topic) {
- return assert.deepEqual(util.array.del(topic, 'd'), ['a', 'b', 'c']);
- }
- },
- 'Testing utils': {
- topic: ['a', 'b', 'c'],
- 'first': function(topic) {
- return assert.equal(util.array.first(topic), 'a');
- },
- 'last': function(topic) {
- return assert.equal(util.array.last(topic), 'c');
- }
- }
- })["export"](module);
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/string-test.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/string-test.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/string-test.js
deleted file mode 100644
index e932233..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/string-test.js
+++ /dev/null
@@ -1,88 +0,0 @@
-(function() {
- var assert, vows, util;
-
- vows = require('vows');
-
- assert = require('assert');
-
- util = require('../../lib/util');
-
- vows.describe('Module core extension String').addBatch({
- 'Testing value': {
- topic: 'bullet',
- 'join the keys': function(topic) {
- return assert.equal(util.string.value(topic), 'bullet');
- }
- },
- 'Testing gsub': {
- topic: 'bullet',
- 'when no args': function(topic) {
- return assert.equal(util.string.gsub(topic), 'bullet');
- },
- 'when only 1 arg': function(topic) {
- return assert.equal(util.string.gsub(topic, /./), 'bullet');
- },
- 'when given proper args': function(topic) {
- return assert.equal(util.string.gsub(topic, /[aeiou]/, '*'), 'b*ll*t');
- },
- 'when replacement is a function': {
- 'with many groups': function(topic) {
- var str;
- str = util.string.gsub(topic, /([aeiou])(.)/, function($) {
- return "<" + $[1] + ">" + $[2];
- });
- return assert.equal(str, 'b<u>ll<e>t');
- },
- 'with no groups': function(topic) {
- var str;
- str = util.string.gsub(topic, /[aeiou]/, function($) {
- return "<" + $[1] + ">";
- });
- return assert.equal(str, 'b<u>ll<e>t');
- }
- },
- 'when replacement is special': {
- 'with many groups': function(topic) {
- return assert.equal(util.string.gsub(topic, /([aeiou])(.)/, '<$1>$2'), 'b<u>ll<e>t');
- },
- 'with no groups': function(topic) {
- return assert.equal(util.string.gsub(topic, /[aeiou]/, '<$1>'), 'b<u>ll<e>t');
- }
- }
- },
- 'Testing capitalize': {
- topic: 'employee salary',
- 'normal': function(topic) {
- return assert.equal(util.string.capitalize(topic), 'Employee Salary');
- }
- },
- 'Testing upcase': {
- topic: 'bullet',
- 'only first letter should be upcase': function(topic) {
- return assert.equal(util.string.upcase(topic), 'Bullet');
- },
- 'letter after underscore': function(topic) {
- return assert.equal(util.string.upcase('bullet_record'), 'Bullet_Record');
- },
- 'letter after slash': function(topic) {
- return assert.equal(util.string.upcase('bullet_record/errors'), 'Bullet_Record/Errors');
- },
- 'no letter after space': function(topic) {
- return assert.equal(util.string.upcase('employee salary'), 'Employee salary');
- }
- },
- 'Testing downcase': {
- topic: 'BULLET',
- 'only first letter should be downcase': function(topic) {
- return assert.equal(util.string.downcase(topic), 'bULLET');
- },
- 'letter after underscore': function(topic) {
- return assert.equal(util.string.downcase('BULLET_RECORD'), 'bULLET_rECORD');
- },
- 'letter after slash': function(topic) {
- return assert.equal(util.string.downcase('BULLET_RECORD/ERRORS'), 'bULLET_rECORD/eRRORS');
- }
- }
- })["export"](module);
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.npmignore
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.npmignore b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.npmignore
deleted file mode 100644
index 9303c34..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-node_modules/
-npm-debug.log
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.travis.yml
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.travis.yml b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.travis.yml
deleted file mode 100644
index 84fd7ca..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.travis.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-language: node_js
-node_js:
- - 0.6
- - 0.8
- - 0.9
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/LICENSE
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/LICENSE b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/LICENSE
deleted file mode 100644
index 432d1ae..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-Copyright 2010 James Halliday (mail@substack.net)
-
-This project is free software released under the MIT/X11 license:
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/examples/pow.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/examples/pow.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/examples/pow.js
deleted file mode 100644
index e692421..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/examples/pow.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var mkdirp = require('mkdirp');
-
-mkdirp('/tmp/foo/bar/baz', function (err) {
- if (err) console.error(err)
- else console.log('pow!')
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/index.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/index.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/index.js
deleted file mode 100644
index fda6de8..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/index.js
+++ /dev/null
@@ -1,82 +0,0 @@
-var path = require('path');
-var fs = require('fs');
-
-module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
-
-function mkdirP (p, mode, f, made) {
- if (typeof mode === 'function' || mode === undefined) {
- f = mode;
- mode = 0777 & (~process.umask());
- }
- if (!made) made = null;
-
- var cb = f || function () {};
- if (typeof mode === 'string') mode = parseInt(mode, 8);
- p = path.resolve(p);
-
- fs.mkdir(p, mode, function (er) {
- if (!er) {
- made = made || p;
- return cb(null, made);
- }
- switch (er.code) {
- case 'ENOENT':
- mkdirP(path.dirname(p), mode, function (er, made) {
- if (er) cb(er, made);
- else mkdirP(p, mode, cb, made);
- });
- break;
-
- // In the case of any other error, just see if there's a dir
- // there already. If so, then hooray! If not, then something
- // is borked.
- default:
- fs.stat(p, function (er2, stat) {
- // if the stat fails, then that's super weird.
- // let the original error be the failure reason.
- if (er2 || !stat.isDirectory()) cb(er, made)
- else cb(null, made);
- });
- break;
- }
- });
-}
-
-mkdirP.sync = function sync (p, mode, made) {
- if (mode === undefined) {
- mode = 0777 & (~process.umask());
- }
- if (!made) made = null;
-
- if (typeof mode === 'string') mode = parseInt(mode, 8);
- p = path.resolve(p);
-
- try {
- fs.mkdirSync(p, mode);
- made = made || p;
- }
- catch (err0) {
- switch (err0.code) {
- case 'ENOENT' :
- made = sync(path.dirname(p), mode, made);
- sync(p, mode, made);
- break;
-
- // In the case of any other error, just see if there's a dir
- // there already. If so, then hooray! If not, then something
- // is borked.
- default:
- var stat;
- try {
- stat = fs.statSync(p);
- }
- catch (err1) {
- throw err0;
- }
- if (!stat.isDirectory()) throw err0;
- break;
- }
- }
-
- return made;
-};
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/package.json b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/package.json
deleted file mode 100644
index bae451a..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/package.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "name": "mkdirp",
- "description": "Recursively mkdir, like `mkdir -p`",
- "version": "0.3.5",
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "main": "./index",
- "keywords": [
- "mkdir",
- "directory"
- ],
- "repository": {
- "type": "git",
- "url": "http://github.com/substack/node-mkdirp.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "devDependencies": {
- "tap": "~0.4.0"
- },
- "license": "MIT",
- "readme": "# mkdirp\n\nLike `mkdir -p`, but in node.js!\n\n[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp)\n\n# example\n\n## pow.js\n\n```js\nvar mkdirp = require('mkdirp');\n \nmkdirp('/tmp/foo/bar/baz', function (err) {\n if (err) console.error(err)\n else console.log('pow!')\n});\n```\n\nOutput\n\n```\npow!\n```\n\nAnd now /tmp/foo/bar/baz exists, huzzah!\n\n# methods\n\n```js\nvar mkdirp = require('mkdirp');\n```\n\n## mkdirp(dir, mode, cb)\n\nCreate a new directory and any necessary subdirectories at `dir` with octal\npermission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\n`cb(err, made)` fires with the error or the first directory `made`\nthat had to be created, if any.\n\n## mkdirp.sync(dir, mode)\n\nSynchronously create a new directory and any necessary subdirectories at `dir`\nwith octal permission string `mode`.\n\nIf `mode` isn't specified, it def
aults to `0777 & (~process.umask())`.\n\nReturns the first directory that had to be created, if any.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install mkdirp\n```\n\n# license\n\nMIT\n",
- "readmeFilename": "readme.markdown",
- "bugs": {
- "url": "https://github.com/substack/node-mkdirp/issues"
- },
- "_id": "mkdirp@0.3.5",
- "_from": "mkdirp@0.x.x"
-}
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/readme.markdown
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/readme.markdown b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/readme.markdown
deleted file mode 100644
index 83b0216..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/readme.markdown
+++ /dev/null
@@ -1,63 +0,0 @@
-# mkdirp
-
-Like `mkdir -p`, but in node.js!
-
-[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp)
-
-# example
-
-## pow.js
-
-```js
-var mkdirp = require('mkdirp');
-
-mkdirp('/tmp/foo/bar/baz', function (err) {
- if (err) console.error(err)
- else console.log('pow!')
-});
-```
-
-Output
-
-```
-pow!
-```
-
-And now /tmp/foo/bar/baz exists, huzzah!
-
-# methods
-
-```js
-var mkdirp = require('mkdirp');
-```
-
-## mkdirp(dir, mode, cb)
-
-Create a new directory and any necessary subdirectories at `dir` with octal
-permission string `mode`.
-
-If `mode` isn't specified, it defaults to `0777 & (~process.umask())`.
-
-`cb(err, made)` fires with the error or the first directory `made`
-that had to be created, if any.
-
-## mkdirp.sync(dir, mode)
-
-Synchronously create a new directory and any necessary subdirectories at `dir`
-with octal permission string `mode`.
-
-If `mode` isn't specified, it defaults to `0777 & (~process.umask())`.
-
-Returns the first directory that had to be created, if any.
-
-# install
-
-With [npm](http://npmjs.org) do:
-
-```
-npm install mkdirp
-```
-
-# license
-
-MIT
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/chmod.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/chmod.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/chmod.js
deleted file mode 100644
index 520dcb8..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/chmod.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-var ps = [ '', 'tmp' ];
-
-for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
-}
-
-var file = ps.join('/');
-
-test('chmod-pre', function (t) {
- var mode = 0744
- mkdirp(file, mode, function (er) {
- t.ifError(er, 'should not error');
- fs.stat(file, function (er, stat) {
- t.ifError(er, 'should exist');
- t.ok(stat && stat.isDirectory(), 'should be directory');
- t.equal(stat && stat.mode & 0777, mode, 'should be 0744');
- t.end();
- });
- });
-});
-
-test('chmod', function (t) {
- var mode = 0755
- mkdirp(file, mode, function (er) {
- t.ifError(er, 'should not error');
- fs.stat(file, function (er, stat) {
- t.ifError(er, 'should exist');
- t.ok(stat && stat.isDirectory(), 'should be directory');
- t.end();
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/clobber.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/clobber.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/clobber.js
deleted file mode 100644
index 0eb7099..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/clobber.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-var ps = [ '', 'tmp' ];
-
-for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
-}
-
-var file = ps.join('/');
-
-// a file in the way
-var itw = ps.slice(0, 3).join('/');
-
-
-test('clobber-pre', function (t) {
- console.error("about to write to "+itw)
- fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.');
-
- fs.stat(itw, function (er, stat) {
- t.ifError(er)
- t.ok(stat && stat.isFile(), 'should be file')
- t.end()
- })
-})
-
-test('clobber', function (t) {
- t.plan(2);
- mkdirp(file, 0755, function (err) {
- t.ok(err);
- t.equal(err.code, 'ENOTDIR');
- t.end();
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/mkdirp.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/mkdirp.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/mkdirp.js
deleted file mode 100644
index b07cd70..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/mkdirp.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('woo', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm.js
deleted file mode 100644
index 23a7abb..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('async perm', function (t) {
- t.plan(2);
- var file = '/tmp/' + (Math.random() * (1<<30)).toString(16);
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
-
-test('async root perm', function (t) {
- mkdirp('/tmp', 0755, function (err) {
- if (err) t.fail(err);
- t.end();
- });
- t.end();
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm_sync.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm_sync.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm_sync.js
deleted file mode 100644
index f685f60..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm_sync.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('sync perm', function (t) {
- t.plan(2);
- var file = '/tmp/' + (Math.random() * (1<<30)).toString(16) + '.json';
-
- mkdirp.sync(file, 0755);
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- });
-});
-
-test('sync root perm', function (t) {
- t.plan(1);
-
- var file = '/tmp';
- mkdirp.sync(file, 0755);
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/race.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/race.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/race.js
deleted file mode 100644
index 96a0447..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/race.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('race', function (t) {
- t.plan(4);
- var ps = [ '', 'tmp' ];
-
- for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
- }
- var file = ps.join('/');
-
- var res = 2;
- mk(file, function () {
- if (--res === 0) t.end();
- });
-
- mk(file, function () {
- if (--res === 0) t.end();
- });
-
- function mk (file, cb) {
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- if (cb) cb();
- }
- })
- })
- });
- }
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/rel.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/rel.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/rel.js
deleted file mode 100644
index 7985824..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/rel.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('rel', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var cwd = process.cwd();
- process.chdir('/tmp');
-
- var file = [x,y,z].join('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- process.chdir(cwd);
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return.js
deleted file mode 100644
index bce68e5..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('return value', function (t) {
- t.plan(4);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- // should return the first dir created.
- // By this point, it would be profoundly surprising if /tmp didn't
- // already exist, since every other test makes things in there.
- mkdirp(file, function (err, made) {
- t.ifError(err);
- t.equal(made, '/tmp/' + x);
- mkdirp(file, function (err, made) {
- t.ifError(err);
- t.equal(made, null);
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return_sync.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return_sync.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return_sync.js
deleted file mode 100644
index 7c222d3..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return_sync.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('return value', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- // should return the first dir created.
- // By this point, it would be profoundly surprising if /tmp didn't
- // already exist, since every other test makes things in there.
- // Note that this will throw on failure, which will fail the test.
- var made = mkdirp.sync(file);
- t.equal(made, '/tmp/' + x);
-
- // making the same file again should have no effect.
- made = mkdirp.sync(file);
- t.equal(made, null);
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/root.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/root.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/root.js
deleted file mode 100644
index 97ad7a2..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/root.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('root', function (t) {
- // '/' on unix, 'c:/' on windows.
- var file = path.resolve('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) throw err
- fs.stat(file, function (er, stat) {
- if (er) throw er
- t.ok(stat.isDirectory(), 'target is a directory');
- t.end();
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/sync.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/sync.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/sync.js
deleted file mode 100644
index 7530cad..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/sync.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('sync', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- try {
- mkdirp.sync(file, 0755);
- } catch (err) {
- t.fail(err);
- return t.end();
- }
-
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask.js
deleted file mode 100644
index 64ccafe..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('implicit mode from umask', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- mkdirp(file, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0777 & (~process.umask()));
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask_sync.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask_sync.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask_sync.js
deleted file mode 100644
index 35bd5cb..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask_sync.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('umask sync modes', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- try {
- mkdirp.sync(file);
- } catch (err) {
- t.fail(err);
- return t.end();
- }
-
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, (0777 & (~process.umask())));
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/.npmignore
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/.npmignore b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/.npmignore
deleted file mode 100644
index 9ecd205..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-.*.sw[op]
-.DS_Store
-test/fixtures/out
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/.travis.yml
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/.travis.yml b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/.travis.yml
deleted file mode 100644
index f686c49..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/.travis.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-language: node_js
-
-node_js:
- - 0.4
- - 0.6
- - 0.7
- - 0.8
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/LICENSE.md
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/LICENSE.md b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/LICENSE.md
deleted file mode 100644
index e2b9b41..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# MIT License
-
-###Copyright (C) 2011 by Charlie McConnell
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/README.md
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/README.md b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/README.md
deleted file mode 100644
index 79ad086..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# ncp - Asynchronous recursive file & directory copying
-
-[![Build Status](https://secure.travis-ci.org/AvianFlu/ncp.png)](http://travis-ci.org/AvianFlu/ncp)
-
-Think `cp -r`, but pure node, and asynchronous. `ncp` can be used both as a CLI tool and programmatically.
-
-## Command Line usage
-
-Usage is simple: `ncp [source] [dest] [--limit=concurrency limit]
-[--filter=filter] --stopOnErr`
-
-The 'filter' is a Regular Expression - matched files will be copied.
-
-The 'concurrency limit' is an integer that represents how many pending file system requests `ncp` has at a time.
-
-'stopOnErr' is a boolean flag that will tell `ncp` to stop immediately if any
-errors arise, rather than attempting to continue while logging errors.
-
-If there are no errors, `ncp` will output `done.` when complete. If there are errors, the error messages will be logged to `stdout` and to `./ncp-debug.log`, and the copy operation will attempt to continue.
-
-## Programmatic usage
-
-Programmatic usage of `ncp` is just as simple. The only argument to the completion callback is a possible error.
-
-```javascript
-var ncp = require('ncp').ncp;
-
-ncp.limit = 16;
-
-ncp(source, destination, function (err) {
- if (err) {
- return console.error(err);
- }
- console.log('done!');
-});
-```
-
-You can also call ncp like `ncp(source, destination, options, callback)`.
-`options` should be a dictionary. Currently, such options are available:
-
- * `options.filter` - a `RegExp` instance, against which each file name is
- tested to determine whether to copy it or not, or a function taking single
- parameter: copied file name, returning `true` or `false`, determining
- whether to copy file or not.
-
- * `options.transform` - a function: `function (read, write) { read.pipe(write) }`
- used to apply streaming transforms while copying.
-
- * `options.clobber` - boolean=true. if set to false, `ncp` will not overwrite
- destination files that already exist.
-
-Please open an issue if any bugs arise. As always, I accept (working) pull requests, and refunds are available at `/dev/null`.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/bin/ncp
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/bin/ncp b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/bin/ncp
deleted file mode 100755
index 388eaba..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/bin/ncp
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env node
-
-
-
-
-var ncp = require('../lib/ncp'),
- args = process.argv.slice(2),
- source, dest;
-
-if (args.length < 2) {
- console.error('Usage: ncp [source] [destination] [--filter=filter] [--limit=concurrency limit]');
- process.exit(1);
-}
-
-// parse arguments the hard way
-function startsWith(str, prefix) {
- return str.substr(0, prefix.length) == prefix;
-}
-
-var options = {};
-args.forEach(function (arg) {
- if (startsWith(arg, "--limit=")) {
- options.limit = parseInt(arg.split('=', 2)[1], 10);
- }
- if (startsWith(arg, "--filter=")) {
- options.filter = new RegExp(arg.split('=', 2)[1]);
- }
- if (startsWith(arg, "--stoponerr")) {
- options.stopOnErr = true;
- }
-});
-
-ncp.ncp(args[0], args[1], options, function (err) {
- if (Array.isArray(err)) {
- console.error('There were errors during the copy.');
- err.forEach(function (err) {
- console.error(err.stack || err.message);
- });
- process.exit(1);
- }
- else if (err) {
- console.error('An error has occurred.');
- console.error(err.stack || err.message);
- process.exit(1);
- }
-});
-
-
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/lib/ncp.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/lib/ncp.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/lib/ncp.js
deleted file mode 100644
index d871e00..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/lib/ncp.js
+++ /dev/null
@@ -1,222 +0,0 @@
-var fs = require('fs'),
- path = require('path');
-
-module.exports = ncp
-ncp.ncp = ncp
-
-function ncp (source, dest, options, callback) {
- if (!callback) {
- callback = options;
- options = {};
- }
-
- var basePath = process.cwd(),
- currentPath = path.resolve(basePath, source),
- targetPath = path.resolve(basePath, dest),
- filter = options.filter,
- transform = options.transform,
- clobber = options.clobber !== false,
- errs = null,
- started = 0,
- finished = 0,
- running = 0,
- limit = options.limit || ncp.limit || 16;
-
- limit = (limit < 1) ? 1 : (limit > 512) ? 512 : limit;
-
- startCopy(currentPath);
-
- function startCopy(source) {
- started++;
- if (filter) {
- if (filter instanceof RegExp) {
- if (!filter.test(source)) {
- return cb(true);
- }
- }
- else if (typeof filter === 'function') {
- if (!filter(source)) {
- return cb(true);
- }
- }
- }
- return getStats(source);
- }
-
- function defer(fn) {
- if (typeof(setImmediate) === 'function')
- return setImmediate(fn);
- return process.nextTick(fn);
- }
-
- function getStats(source) {
- if (running >= limit) {
- return defer(function () {
- getStats(source);
- });
- }
- running++;
- fs.lstat(source, function (err, stats) {
- var item = {};
- if (err) {
- return onError(err);
- }
-
- // We need to get the mode from the stats object and preserve it.
- item.name = source;
- item.mode = stats.mode;
-
- if (stats.isDirectory()) {
- return onDir(item);
- }
- else if (stats.isFile()) {
- return onFile(item);
- }
- else if (stats.isSymbolicLink()) {
- // Symlinks don't really need to know about the mode.
- return onLink(source);
- }
- });
- }
-
- function onFile(file) {
- var target = file.name.replace(currentPath, targetPath);
- isWritable(target, function (writable) {
- if (writable) {
- return copyFile(file, target);
- }
- if(clobber)
- rmFile(target, function () {
- copyFile(file, target);
- });
- });
- }
-
- function copyFile(file, target) {
- var readStream = fs.createReadStream(file.name),
- writeStream = fs.createWriteStream(target, { mode: file.mode });
- if(transform) {
- transform(readStream, writeStream,file);
- } else {
- readStream.pipe(writeStream);
- }
- readStream.once('end', cb);
- }
-
- function rmFile(file, done) {
- fs.unlink(file, function (err) {
- if (err) {
- return onError(err);
- }
- return done();
- });
- }
-
- function onDir(dir) {
- var target = dir.name.replace(currentPath, targetPath);
- isWritable(target, function (writable) {
- if (writable) {
- return mkDir(dir, target);
- }
- copyDir(dir.name);
- });
- }
-
- function mkDir(dir, target) {
- fs.mkdir(target, dir.mode, function (err) {
- if (err) {
- return onError(err);
- }
- copyDir(dir.name);
- });
- }
-
- function copyDir(dir) {
- fs.readdir(dir, function (err, items) {
- if (err) {
- return onError(err);
- }
- items.forEach(function (item) {
- startCopy(dir + '/' + item);
- });
- return cb();
- });
- }
-
- function onLink(link) {
- var target = link.replace(currentPath, targetPath);
- fs.readlink(link, function (err, resolvedPath) {
- if (err) {
- return onError(err);
- }
- checkLink(resolvedPath, target);
- });
- }
-
- function checkLink(resolvedPath, target) {
- isWritable(target, function (writable) {
- if (writable) {
- return makeLink(resolvedPath, target);
- }
- fs.readlink(target, function (err, targetDest) {
- if (err) {
- return onError(err);
- }
- if (targetDest === resolvedPath) {
- return cb();
- }
- return rmFile(target, function () {
- makeLink(resolvedPath, target);
- });
- });
- });
- }
-
- function makeLink(linkPath, target) {
- fs.symlink(linkPath, target, function (err) {
- if (err) {
- return onError(err);
- }
- return cb();
- });
- }
-
- function isWritable(path, done) {
- fs.lstat(path, function (err, stats) {
- if (err) {
- if (err.code === 'ENOENT') return done(true);
- return done(false);
- }
- return done(false);
- });
- }
-
- function onError(err) {
- if (options.stopOnError) {
- return callback(err);
- }
- else if (!errs && options.errs) {
- errs = fs.createWriteStream(options.errs);
- }
- else if (!errs) {
- errs = [];
- }
- if (typeof errs.write === 'undefined') {
- errs.push(err);
- }
- else {
- errs.write(err.stack + '\n\n');
- }
- return cb();
- }
-
- function cb(skipped) {
- if (!skipped) running--;
- finished++;
- if ((started === finished) && (running === 0)) {
- return errs ? callback(errs) : callback(null);
- }
- }
-};
-
-
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/package.json b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/package.json
deleted file mode 100644
index 42f0568..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/package.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "name": "ncp",
- "version": "0.4.2",
- "author": {
- "name": "AvianFlu",
- "email": "charlie@charlieistheman.com"
- },
- "description": "Asynchronous recursive file copy utility.",
- "bin": {
- "ncp": "./bin/ncp"
- },
- "devDependencies": {
- "vows": "0.6.x",
- "rimraf": "1.0.x",
- "read-dir-files": "0.0.x"
- },
- "main": "./lib/ncp.js",
- "repository": {
- "type": "git",
- "url": "https://github.com/AvianFlu/ncp.git"
- },
- "keywords": [
- "cli",
- "copy"
- ],
- "license": "MIT",
- "engine": {
- "node": ">=0.4"
- },
- "scripts": {
- "test": "vows --isolate --spec"
- },
- "readme": "# ncp - Asynchronous recursive file & directory copying\n\n[![Build Status](https://secure.travis-ci.org/AvianFlu/ncp.png)](http://travis-ci.org/AvianFlu/ncp)\n\nThink `cp -r`, but pure node, and asynchronous. `ncp` can be used both as a CLI tool and programmatically.\n\n## Command Line usage\n\nUsage is simple: `ncp [source] [dest] [--limit=concurrency limit]\n[--filter=filter] --stopOnErr`\n\nThe 'filter' is a Regular Expression - matched files will be copied.\n\nThe 'concurrency limit' is an integer that represents how many pending file system requests `ncp` has at a time.\n\n'stopOnErr' is a boolean flag that will tell `ncp` to stop immediately if any\nerrors arise, rather than attempting to continue while logging errors.\n\nIf there are no errors, `ncp` will output `done.` when complete. If there are errors, the error messages will be logged to `stdout` and to `./ncp-debug.log`, and the copy operation will attempt to continue.\n\n## Programmatic usage\n\nProgramm
atic usage of `ncp` is just as simple. The only argument to the completion callback is a possible error. \n\n```javascript\nvar ncp = require('ncp').ncp;\n\nncp.limit = 16;\n\nncp(source, destination, function (err) {\n if (err) {\n return console.error(err);\n }\n console.log('done!');\n});\n```\n\nYou can also call ncp like `ncp(source, destination, options, callback)`. \n`options` should be a dictionary. Currently, such options are available:\n\n * `options.filter` - a `RegExp` instance, against which each file name is\n tested to determine whether to copy it or not, or a function taking single\n parameter: copied file name, returning `true` or `false`, determining\n whether to copy file or not.\n\n * `options.transform` - a function: `function (read, write) { read.pipe(write) }`\n used to apply streaming transforms while copying.\n\n * `options.clobber` - boolean=true. if set to false, `ncp` will not overwrite \n destination files that already exist.\n\nPlease open a
n issue if any bugs arise. As always, I accept (working) pull requests, and refunds are available at `/dev/null`.\n",
- "readmeFilename": "README.md",
- "bugs": {
- "url": "https://github.com/AvianFlu/ncp/issues"
- },
- "_id": "ncp@0.4.2",
- "_from": "ncp@0.4.x"
-}
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/a
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/a b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/a
deleted file mode 100644
index 802992c..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/a
+++ /dev/null
@@ -1 +0,0 @@
-Hello world
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/b
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/b b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/b
deleted file mode 100644
index 9f6bb18..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/b
+++ /dev/null
@@ -1 +0,0 @@
-Hello ncp
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/c
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/c b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/c
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/d
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/d b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/d
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/e
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/e b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/e
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/f
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/f b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/f
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a
deleted file mode 100644
index cf291b5..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a
+++ /dev/null
@@ -1 +0,0 @@
-Hello nodejitsu
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/b
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/b b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/b
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/ncp-test.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/ncp-test.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/ncp-test.js
deleted file mode 100644
index 3c613f7..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/ncp/test/ncp-test.js
+++ /dev/null
@@ -1,86 +0,0 @@
-var assert = require('assert'),
- path = require('path'),
- rimraf = require('rimraf'),
- vows = require('vows'),
- readDirFiles = require('read-dir-files'),
- ncp = require('../').ncp;
-
-var fixtures = path.join(__dirname, 'fixtures'),
- src = path.join(fixtures, 'src'),
- out = path.join(fixtures, 'out');
-
-vows.describe('ncp').addBatch({
- 'When copying a directory of files': {
- topic: function () {
- var cb = this.callback;
- rimraf(out, function () {
- ncp(src, out, cb);
- });
- },
- 'files should be copied': {
- topic: function () {
- var cb = this.callback;
-
- readDirFiles(src, 'utf8', function (srcErr, srcFiles) {
- readDirFiles(out, 'utf8', function (outErr, outFiles) {
- cb(outErr, srcFiles, outFiles);
- });
- });
- },
- 'and the destination should match the source': function (err, srcFiles, outFiles) {
- assert.isNull(err);
- assert.deepEqual(srcFiles, outFiles);
- }
- }
- }
-}).addBatch({
- 'When copying files using filter': {
- topic: function() {
- var cb = this.callback;
- var filter = function(name) {
- return name.substr(name.length - 1) != 'a'
- }
- rimraf(out, function () {
- ncp(src, out, {filter: filter}, cb);
- });
- },
- 'it should copy files': {
- topic: function () {
- var cb = this.callback;
-
- readDirFiles(src, 'utf8', function (srcErr, srcFiles) {
- function filter(files) {
- for (var fileName in files) {
- var curFile = files[fileName];
- if (curFile instanceof Object)
- return filter(curFile);
- if (fileName.substr(fileName.length - 1) == 'a')
- delete files[fileName];
- }
- }
- filter(srcFiles);
- readDirFiles(out, 'utf8', function (outErr, outFiles) {
- cb(outErr, srcFiles, outFiles);
- });
- });
- },
- 'and destination files should match source files that pass filter': function (err, srcFiles, outFiles) {
- assert.isNull(err);
- assert.deepEqual(srcFiles, outFiles);
- }
- }
- }
-}).addBatch({
- 'When copying files using transform': {
- 'it should pass file descriptors along to transform functions': function() {
- ncp(src, out, {
- transform: function(read,write,file) {
- assert.notEqual(file.name, undefined);
- assert.strictEqual(typeof file.mode,'number');
- read.pipe(write);
- }
- }, function(){});
- }
- }
-}).export(module);
-
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/AUTHORS
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/AUTHORS b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/AUTHORS
deleted file mode 100644
index 247b754..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/AUTHORS
+++ /dev/null
@@ -1,6 +0,0 @@
-# Authors sorted by whether or not they're me.
-Isaac Z. Schlueter <i...@izs.me> (http://blog.izs.me)
-Wayne Larsen <wa...@larsen.st> (http://github.com/wvl)
-ritch <sk...@gmail.com>
-Marcel Laverdet
-Yosef Dinerstein <yo...@microsoft.com>
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/LICENSE
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/LICENSE b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/LICENSE
deleted file mode 100644
index 05a4010..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
-All rights reserved.
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/README.md
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/README.md b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/README.md
deleted file mode 100644
index cd123b6..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-`rm -rf` for node.
-
-Install with `npm install rimraf`, or just drop rimraf.js somewhere.
-
-## API
-
-`rimraf(f, callback)`
-
-The callback will be called with an error if there is one. Certain
-errors are handled for you:
-
-* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of
- `opts.maxBusyTries` times before giving up.
-* `ENOENT` - If the file doesn't exist, rimraf will return
- successfully, since your desired outcome is already the case.
-
-## rimraf.sync
-
-It can remove stuff synchronously, too. But that's not so good. Use
-the async API. It's better.
-
-## CLI
-
-If installed with `npm install rimraf -g` it can be used as a global
-command `rimraf <path>` which is useful for cross platform support.
-
-## mkdirp
-
-If you need to create a directory recursively, check out
-[mkdirp](https://github.com/substack/node-mkdirp).
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/bin.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/bin.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/bin.js
deleted file mode 100755
index 29bfa8a..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/bin.js
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env node
-
-var rimraf = require('./')
-
-var help = false
-var dashdash = false
-var args = process.argv.slice(2).filter(function(arg) {
- if (dashdash)
- return !!arg
- else if (arg === '--')
- dashdash = true
- else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
- help = true
- else
- return !!arg
-});
-
-if (help || args.length === 0) {
- // If they didn't ask for help, then this is not a "success"
- var log = help ? console.log : console.error
- log('Usage: rimraf <path>')
- log('')
- log(' Deletes all files and folders at "path" recursively.')
- log('')
- log('Options:')
- log('')
- log(' -h, --help Display this usage info')
- process.exit(help ? 0 : 1)
-} else {
- args.forEach(function(arg) {
- rimraf.sync(arg)
- })
-}
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/package.json b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/package.json
deleted file mode 100644
index e357fc8..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/package.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "name": "rimraf",
- "version": "2.2.6",
- "main": "rimraf.js",
- "description": "A deep deletion module for node (like `rm -rf`)",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "license": {
- "type": "MIT",
- "url": "https://github.com/isaacs/rimraf/raw/master/LICENSE"
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/rimraf.git"
- },
- "scripts": {
- "test": "cd test && bash run.sh"
- },
- "bin": {
- "rimraf": "./bin.js"
- },
- "contributors": [
- {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me"
- },
- {
- "name": "Wayne Larsen",
- "email": "wayne@larsen.st",
- "url": "http://github.com/wvl"
- },
- {
- "name": "ritch",
- "email": "skawful@gmail.com"
- },
- {
- "name": "Marcel Laverdet"
- },
- {
- "name": "Yosef Dinerstein",
- "email": "yosefd@microsoft.com"
- }
- ],
- "readme": "`rm -rf` for node.\n\nInstall with `npm install rimraf`, or just drop rimraf.js somewhere.\n\n## API\n\n`rimraf(f, callback)`\n\nThe callback will be called with an error if there is one. Certain\nerrors are handled for you:\n\n* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of\n `opts.maxBusyTries` times before giving up.\n* `ENOENT` - If the file doesn't exist, rimraf will return\n successfully, since your desired outcome is already the case.\n\n## rimraf.sync\n\nIt can remove stuff synchronously, too. But that's not so good. Use\nthe async API. It's better.\n\n## CLI\n\nIf installed with `npm install rimraf -g` it can be used as a global\ncommand `rimraf <path>` which is useful for cross platform support.\n\n## mkdirp\n\nIf you need to create a directory recursively, check out\n[mkdirp](https://github.com/substack/node-mkdirp).\n",
- "readmeFilename": "README.md",
- "bugs": {
- "url": "https://github.com/isaacs/rimraf/issues"
- },
- "_id": "rimraf@2.2.6",
- "_from": "rimraf@2.x.x"
-}
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/rimraf.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/rimraf.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/rimraf.js
deleted file mode 100644
index ce62051..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/rimraf.js
+++ /dev/null
@@ -1,178 +0,0 @@
-module.exports = rimraf
-rimraf.sync = rimrafSync
-
-var path = require("path")
-var fs = require("fs")
-
-// for EMFILE handling
-var timeout = 0
-exports.EMFILE_MAX = 1000
-exports.BUSYTRIES_MAX = 3
-
-var isWindows = (process.platform === "win32")
-
-function rimraf (p, cb) {
- if (!cb) throw new Error("No callback passed to rimraf()")
-
- var busyTries = 0
- rimraf_(p, function CB (er) {
- if (er) {
- if (isWindows && (er.code === "EBUSY" || er.code === "ENOTEMPTY") &&
- busyTries < exports.BUSYTRIES_MAX) {
- busyTries ++
- var time = busyTries * 100
- // try again, with the same exact callback as this one.
- return setTimeout(function () {
- rimraf_(p, CB)
- }, time)
- }
-
- // this one won't happen if graceful-fs is used.
- if (er.code === "EMFILE" && timeout < exports.EMFILE_MAX) {
- return setTimeout(function () {
- rimraf_(p, CB)
- }, timeout ++)
- }
-
- // already gone
- if (er.code === "ENOENT") er = null
- }
-
- timeout = 0
- cb(er)
- })
-}
-
-// Two possible strategies.
-// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR
-// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR
-//
-// Both result in an extra syscall when you guess wrong. However, there
-// are likely far more normal files in the world than directories. This
-// is based on the assumption that a the average number of files per
-// directory is >= 1.
-//
-// If anyone ever complains about this, then I guess the strategy could
-// be made configurable somehow. But until then, YAGNI.
-function rimraf_ (p, cb) {
- fs.unlink(p, function (er) {
- if (er) {
- if (er.code === "ENOENT")
- return cb(null)
- if (er.code === "EPERM")
- return (isWindows) ? fixWinEPERM(p, er, cb) : rmdir(p, er, cb)
- if (er.code === "EISDIR")
- return rmdir(p, er, cb)
- }
- return cb(er)
- })
-}
-
-function fixWinEPERM (p, er, cb) {
- fs.chmod(p, 666, function (er2) {
- if (er2)
- cb(er2.code === "ENOENT" ? null : er)
- else
- fs.stat(p, function(er3, stats) {
- if (er3)
- cb(er3.code === "ENOENT" ? null : er)
- else if (stats.isDirectory())
- rmdir(p, er, cb)
- else
- fs.unlink(p, cb)
- })
- })
-}
-
-function fixWinEPERMSync (p, er, cb) {
- try {
- fs.chmodSync(p, 666)
- } catch (er2) {
- if (er2.code !== "ENOENT")
- throw er
- }
-
- try {
- var stats = fs.statSync(p)
- } catch (er3) {
- if (er3 !== "ENOENT")
- throw er
- }
-
- if (stats.isDirectory())
- rmdirSync(p, er)
- else
- fs.unlinkSync(p)
-}
-
-function rmdir (p, originalEr, cb) {
- // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
- // if we guessed wrong, and it's not a directory, then
- // raise the original error.
- fs.rmdir(p, function (er) {
- if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM"))
- rmkids(p, cb)
- else if (er && er.code === "ENOTDIR")
- cb(originalEr)
- else
- cb(er)
- })
-}
-
-function rmkids(p, cb) {
- fs.readdir(p, function (er, files) {
- if (er)
- return cb(er)
- var n = files.length
- if (n === 0)
- return fs.rmdir(p, cb)
- var errState
- files.forEach(function (f) {
- rimraf(path.join(p, f), function (er) {
- if (errState)
- return
- if (er)
- return cb(errState = er)
- if (--n === 0)
- fs.rmdir(p, cb)
- })
- })
- })
-}
-
-// this looks simpler, and is strictly *faster*, but will
-// tie up the JavaScript thread and fail on excessively
-// deep directory trees.
-function rimrafSync (p) {
- try {
- fs.unlinkSync(p)
- } catch (er) {
- if (er.code === "ENOENT")
- return
- if (er.code === "EPERM")
- return isWindows ? fixWinEPERMSync(p, er) : rmdirSync(p, er)
- if (er.code !== "EISDIR")
- throw er
- rmdirSync(p, er)
- }
-}
-
-function rmdirSync (p, originalEr) {
- try {
- fs.rmdirSync(p)
- } catch (er) {
- if (er.code === "ENOENT")
- return
- if (er.code === "ENOTDIR")
- throw originalEr
- if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")
- rmkidsSync(p)
- }
-}
-
-function rmkidsSync (p) {
- fs.readdirSync(p).forEach(function (f) {
- rimrafSync(path.join(p, f))
- })
- fs.rmdirSync(p)
-}
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/run.sh
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/run.sh b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/run.sh
deleted file mode 100644
index 598f016..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/run.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-set -e
-for i in test-*.js; do
- echo -n $i ...
- bash setup.sh
- node $i
- ! [ -d target ]
- echo "pass"
-done
-rm -rf target
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/setup.sh
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/setup.sh b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/setup.sh
deleted file mode 100644
index 2602e63..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/setup.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/bash
-
-set -e
-
-files=10
-folders=2
-depth=4
-target="$PWD/target"
-
-rm -rf target
-
-fill () {
- local depth=$1
- local files=$2
- local folders=$3
- local target=$4
-
- if ! [ -d $target ]; then
- mkdir -p $target
- fi
-
- local f
-
- f=$files
- while [ $f -gt 0 ]; do
- touch "$target/f-$depth-$f"
- let f--
- done
-
- let depth--
-
- if [ $depth -le 0 ]; then
- return 0
- fi
-
- f=$folders
- while [ $f -gt 0 ]; do
- mkdir "$target/folder-$depth-$f"
- fill $depth $files $folders "$target/d-$depth-$f"
- let f--
- done
-}
-
-fill $depth $files $folders $target
-
-# sanity assert
-[ -d $target ]
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/a6733a83/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/test-async.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/test-async.js b/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/test-async.js
deleted file mode 100644
index 9c2e0b7..0000000
--- a/blackberry10/node_modules/prompt/node_modules/utile/node_modules/rimraf/test/test-async.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var rimraf = require("../rimraf")
- , path = require("path")
-rimraf(path.join(__dirname, "target"), function (er) {
- if (er) throw er
-})