You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2014/04/13 03:08:19 UTC
[37/53] [abbrv] [partial] CB-6440 create - use shelljs rather than
custom copy function
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/repl.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/repl.js b/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/repl.js
deleted file mode 100644
index 6c79291..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/repl.js
+++ /dev/null
@@ -1,159 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var CoffeeScript, addHistory, addMultilineHandler, fs, merge, nodeREPL, path, prettyErrorMessage, replDefaults, vm, _ref;
-
- fs = require('fs');
-
- path = require('path');
-
- vm = require('vm');
-
- nodeREPL = require('repl');
-
- CoffeeScript = require('./coffee-script');
-
- _ref = require('./helpers'), merge = _ref.merge, prettyErrorMessage = _ref.prettyErrorMessage;
-
- replDefaults = {
- prompt: 'coffee> ',
- historyFile: process.env.HOME ? path.join(process.env.HOME, '.coffee_history') : void 0,
- historyMaxInputSize: 10240,
- "eval": function(input, context, filename, cb) {
- var Assign, Block, Literal, Value, ast, err, js, _ref1;
- input = input.replace(/\uFF00/g, '\n');
- input = input.replace(/^\(([\s\S]*)\n\)$/m, '$1');
- _ref1 = require('./nodes'), Block = _ref1.Block, Assign = _ref1.Assign, Value = _ref1.Value, Literal = _ref1.Literal;
- try {
- ast = CoffeeScript.nodes(input);
- ast = new Block([new Assign(new Value(new Literal('_')), ast, '=')]);
- js = ast.compile({
- bare: true,
- locals: Object.keys(context)
- });
- return cb(null, vm.runInContext(js, context, filename));
- } catch (_error) {
- err = _error;
- return cb(prettyErrorMessage(err, filename, input, true));
- }
- }
- };
-
- addMultilineHandler = function(repl) {
- var inputStream, multiline, nodeLineListener, outputStream, rli;
- rli = repl.rli, inputStream = repl.inputStream, outputStream = repl.outputStream;
- multiline = {
- enabled: false,
- initialPrompt: repl.prompt.replace(/^[^> ]*/, function(x) {
- return x.replace(/./g, '-');
- }),
- prompt: repl.prompt.replace(/^[^> ]*>?/, function(x) {
- return x.replace(/./g, '.');
- }),
- buffer: ''
- };
- nodeLineListener = rli.listeners('line')[0];
- rli.removeListener('line', nodeLineListener);
- rli.on('line', function(cmd) {
- if (multiline.enabled) {
- multiline.buffer += "" + cmd + "\n";
- rli.setPrompt(multiline.prompt);
- rli.prompt(true);
- } else {
- nodeLineListener(cmd);
- }
- });
- return inputStream.on('keypress', function(char, key) {
- if (!(key && key.ctrl && !key.meta && !key.shift && key.name === 'v')) {
- return;
- }
- if (multiline.enabled) {
- if (!multiline.buffer.match(/\n/)) {
- multiline.enabled = !multiline.enabled;
- rli.setPrompt(repl.prompt);
- rli.prompt(true);
- return;
- }
- if ((rli.line != null) && !rli.line.match(/^\s*$/)) {
- return;
- }
- multiline.enabled = !multiline.enabled;
- rli.line = '';
- rli.cursor = 0;
- rli.output.cursorTo(0);
- rli.output.clearLine(1);
- multiline.buffer = multiline.buffer.replace(/\n/g, '\uFF00');
- rli.emit('line', multiline.buffer);
- multiline.buffer = '';
- } else {
- multiline.enabled = !multiline.enabled;
- rli.setPrompt(multiline.initialPrompt);
- rli.prompt(true);
- }
- });
- };
-
- addHistory = function(repl, filename, maxSize) {
- var buffer, fd, lastLine, readFd, size, stat;
- lastLine = null;
- try {
- stat = fs.statSync(filename);
- size = Math.min(maxSize, stat.size);
- readFd = fs.openSync(filename, 'r');
- buffer = new Buffer(size);
- fs.readSync(readFd, buffer, 0, size, stat.size - size);
- repl.rli.history = buffer.toString().split('\n').reverse();
- if (stat.size > maxSize) {
- repl.rli.history.pop();
- }
- if (repl.rli.history[0] === '') {
- repl.rli.history.shift();
- }
- repl.rli.historyIndex = -1;
- lastLine = repl.rli.history[0];
- } catch (_error) {}
- fd = fs.openSync(filename, 'a');
- repl.rli.addListener('line', function(code) {
- if (code && code.length && code !== '.history' && lastLine !== code) {
- fs.write(fd, "" + code + "\n");
- return lastLine = code;
- }
- });
- repl.rli.on('exit', function() {
- return fs.close(fd);
- });
- return repl.commands['.history'] = {
- help: 'Show command history',
- action: function() {
- repl.outputStream.write("" + (repl.rli.history.slice(0).reverse().join('\n')) + "\n");
- return repl.displayPrompt();
- }
- };
- };
-
- module.exports = {
- start: function(opts) {
- var build, major, minor, repl, _ref1;
- if (opts == null) {
- opts = {};
- }
- _ref1 = process.versions.node.split('.').map(function(n) {
- return parseInt(n);
- }), major = _ref1[0], minor = _ref1[1], build = _ref1[2];
- if (major === 0 && minor < 8) {
- console.warn("Node 0.8.0+ required for CoffeeScript REPL");
- process.exit(1);
- }
- opts = merge(replDefaults, opts);
- repl = nodeREPL.start(opts);
- repl.on('exit', function() {
- return repl.outputStream.write('\n');
- });
- addMultilineHandler(repl);
- if (opts.historyFile) {
- addHistory(repl, opts.historyFile, opts.historyMaxInputSize);
- }
- return repl;
- }
- };
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/rewriter.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/rewriter.js b/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/rewriter.js
deleted file mode 100644
index 11f36a3..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/rewriter.js
+++ /dev/null
@@ -1,485 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var BALANCED_PAIRS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, generate, left, rite, _i, _len, _ref,
- __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
- __slice = [].slice;
-
- generate = function(tag, value) {
- var tok;
- tok = [tag, value];
- tok.generated = true;
- return tok;
- };
-
- exports.Rewriter = (function() {
- function Rewriter() {}
-
- Rewriter.prototype.rewrite = function(tokens) {
- this.tokens = tokens;
- this.removeLeadingNewlines();
- this.removeMidExpressionNewlines();
- this.closeOpenCalls();
- this.closeOpenIndexes();
- this.addImplicitIndentation();
- this.tagPostfixConditionals();
- this.addImplicitBracesAndParens();
- this.addLocationDataToGeneratedTokens();
- return this.tokens;
- };
-
- Rewriter.prototype.scanTokens = function(block) {
- var i, token, tokens;
- tokens = this.tokens;
- i = 0;
- while (token = tokens[i]) {
- i += block.call(this, token, i, tokens);
- }
- return true;
- };
-
- Rewriter.prototype.detectEnd = function(i, condition, action) {
- var levels, token, tokens, _ref, _ref1;
- tokens = this.tokens;
- levels = 0;
- while (token = tokens[i]) {
- if (levels === 0 && condition.call(this, token, i)) {
- return action.call(this, token, i);
- }
- if (!token || levels < 0) {
- return action.call(this, token, i - 1);
- }
- if (_ref = token[0], __indexOf.call(EXPRESSION_START, _ref) >= 0) {
- levels += 1;
- } else if (_ref1 = token[0], __indexOf.call(EXPRESSION_END, _ref1) >= 0) {
- levels -= 1;
- }
- i += 1;
- }
- return i - 1;
- };
-
- Rewriter.prototype.removeLeadingNewlines = function() {
- var i, tag, _i, _len, _ref;
- _ref = this.tokens;
- for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
- tag = _ref[i][0];
- if (tag !== 'TERMINATOR') {
- break;
- }
- }
- if (i) {
- return this.tokens.splice(0, i);
- }
- };
-
- Rewriter.prototype.removeMidExpressionNewlines = function() {
- return this.scanTokens(function(token, i, tokens) {
- var _ref;
- if (!(token[0] === 'TERMINATOR' && (_ref = this.tag(i + 1), __indexOf.call(EXPRESSION_CLOSE, _ref) >= 0))) {
- return 1;
- }
- tokens.splice(i, 1);
- return 0;
- });
- };
-
- Rewriter.prototype.closeOpenCalls = function() {
- var action, condition;
- condition = function(token, i) {
- var _ref;
- return ((_ref = token[0]) === ')' || _ref === 'CALL_END') || token[0] === 'OUTDENT' && this.tag(i - 1) === ')';
- };
- action = function(token, i) {
- return this.tokens[token[0] === 'OUTDENT' ? i - 1 : i][0] = 'CALL_END';
- };
- return this.scanTokens(function(token, i) {
- if (token[0] === 'CALL_START') {
- this.detectEnd(i + 1, condition, action);
- }
- return 1;
- });
- };
-
- Rewriter.prototype.closeOpenIndexes = function() {
- var action, condition;
- condition = function(token, i) {
- var _ref;
- return (_ref = token[0]) === ']' || _ref === 'INDEX_END';
- };
- action = function(token, i) {
- return token[0] = 'INDEX_END';
- };
- return this.scanTokens(function(token, i) {
- if (token[0] === 'INDEX_START') {
- this.detectEnd(i + 1, condition, action);
- }
- return 1;
- });
- };
-
- Rewriter.prototype.matchTags = function() {
- var fuzz, i, j, pattern, _i, _ref, _ref1;
- i = arguments[0], pattern = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
- fuzz = 0;
- for (j = _i = 0, _ref = pattern.length; 0 <= _ref ? _i < _ref : _i > _ref; j = 0 <= _ref ? ++_i : --_i) {
- while (this.tag(i + j + fuzz) === 'HERECOMMENT') {
- fuzz += 2;
- }
- if (pattern[j] == null) {
- continue;
- }
- if (typeof pattern[j] === 'string') {
- pattern[j] = [pattern[j]];
- }
- if (_ref1 = this.tag(i + j + fuzz), __indexOf.call(pattern[j], _ref1) < 0) {
- return false;
- }
- }
- return true;
- };
-
- Rewriter.prototype.looksObjectish = function(j) {
- return this.matchTags(j, '@', null, ':') || this.matchTags(j, null, ':');
- };
-
- Rewriter.prototype.findTagsBackwards = function(i, tags) {
- var backStack, _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
- backStack = [];
- while (i >= 0 && (backStack.length || (_ref2 = this.tag(i), __indexOf.call(tags, _ref2) < 0) && ((_ref3 = this.tag(i), __indexOf.call(EXPRESSION_START, _ref3) < 0) || this.tokens[i].generated) && (_ref4 = this.tag(i), __indexOf.call(LINEBREAKS, _ref4) < 0))) {
- if (_ref = this.tag(i), __indexOf.call(EXPRESSION_END, _ref) >= 0) {
- backStack.push(this.tag(i));
- }
- if ((_ref1 = this.tag(i), __indexOf.call(EXPRESSION_START, _ref1) >= 0) && backStack.length) {
- backStack.pop();
- }
- i -= 1;
- }
- return _ref5 = this.tag(i), __indexOf.call(tags, _ref5) >= 0;
- };
-
- Rewriter.prototype.addImplicitBracesAndParens = function() {
- var stack;
- stack = [];
- return this.scanTokens(function(token, i, tokens) {
- var endImplicitCall, endImplicitObject, forward, inImplicit, inImplicitCall, inImplicitControl, inImplicitObject, nextTag, offset, prevTag, s, sameLine, stackIdx, stackTag, stackTop, startIdx, startImplicitCall, startImplicitObject, startsLine, tag, _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
- tag = token[0];
- prevTag = (i > 0 ? tokens[i - 1] : [])[0];
- nextTag = (i < tokens.length - 1 ? tokens[i + 1] : [])[0];
- stackTop = function() {
- return stack[stack.length - 1];
- };
- startIdx = i;
- forward = function(n) {
- return i - startIdx + n;
- };
- inImplicit = function() {
- var _ref, _ref1;
- return (_ref = stackTop()) != null ? (_ref1 = _ref[2]) != null ? _ref1.ours : void 0 : void 0;
- };
- inImplicitCall = function() {
- var _ref;
- return inImplicit() && ((_ref = stackTop()) != null ? _ref[0] : void 0) === '(';
- };
- inImplicitObject = function() {
- var _ref;
- return inImplicit() && ((_ref = stackTop()) != null ? _ref[0] : void 0) === '{';
- };
- inImplicitControl = function() {
- var _ref;
- return inImplicit && ((_ref = stackTop()) != null ? _ref[0] : void 0) === 'CONTROL';
- };
- startImplicitCall = function(j) {
- var idx;
- idx = j != null ? j : i;
- stack.push([
- '(', idx, {
- ours: true
- }
- ]);
- tokens.splice(idx, 0, generate('CALL_START', '('));
- if (j == null) {
- return i += 1;
- }
- };
- endImplicitCall = function() {
- stack.pop();
- tokens.splice(i, 0, generate('CALL_END', ')'));
- return i += 1;
- };
- startImplicitObject = function(j, startsLine) {
- var idx;
- if (startsLine == null) {
- startsLine = true;
- }
- idx = j != null ? j : i;
- stack.push([
- '{', idx, {
- sameLine: true,
- startsLine: startsLine,
- ours: true
- }
- ]);
- tokens.splice(idx, 0, generate('{', generate(new String('{'))));
- if (j == null) {
- return i += 1;
- }
- };
- endImplicitObject = function(j) {
- j = j != null ? j : i;
- stack.pop();
- tokens.splice(j, 0, generate('}', '}'));
- return i += 1;
- };
- if (inImplicitCall() && (tag === 'IF' || tag === 'TRY' || tag === 'FINALLY' || tag === 'CATCH' || tag === 'CLASS' || tag === 'SWITCH')) {
- stack.push([
- 'CONTROL', i, {
- ours: true
- }
- ]);
- return forward(1);
- }
- if (tag === 'INDENT' && inImplicit()) {
- if (prevTag !== '=>' && prevTag !== '->' && prevTag !== '[' && prevTag !== '(' && prevTag !== ',' && prevTag !== '{' && prevTag !== 'TRY' && prevTag !== 'ELSE' && prevTag !== '=') {
- while (inImplicitCall()) {
- endImplicitCall();
- }
- }
- if (inImplicitControl()) {
- stack.pop();
- }
- stack.push([tag, i]);
- return forward(1);
- }
- if (__indexOf.call(EXPRESSION_START, tag) >= 0) {
- stack.push([tag, i]);
- return forward(1);
- }
- if (__indexOf.call(EXPRESSION_END, tag) >= 0) {
- while (inImplicit()) {
- if (inImplicitCall()) {
- endImplicitCall();
- } else if (inImplicitObject()) {
- endImplicitObject();
- } else {
- stack.pop();
- }
- }
- stack.pop();
- }
- if ((__indexOf.call(IMPLICIT_FUNC, tag) >= 0 && token.spaced && !token.stringEnd || tag === '?' && i > 0 && !tokens[i - 1].spaced) && (__indexOf.call(IMPLICIT_CALL, nextTag) >= 0 || __indexOf.call(IMPLICIT_UNSPACED_CALL, nextTag) >= 0 && !((_ref = tokens[i + 1]) != null ? _ref.spaced : void 0) && !((_ref1 = tokens[i + 1]) != null ? _ref1.newLine : void 0))) {
- if (tag === '?') {
- tag = token[0] = 'FUNC_EXIST';
- }
- startImplicitCall(i + 1);
- return forward(2);
- }
- if (__indexOf.call(IMPLICIT_FUNC, tag) >= 0 && this.matchTags(i + 1, 'INDENT', null, ':') && !this.findTagsBackwards(i, ['CLASS', 'EXTENDS', 'IF', 'CATCH', 'SWITCH', 'LEADING_WHEN', 'FOR', 'WHILE', 'UNTIL'])) {
- startImplicitCall(i + 1);
- stack.push(['INDENT', i + 2]);
- return forward(3);
- }
- if (tag === ':') {
- if (this.tag(i - 2) === '@') {
- s = i - 2;
- } else {
- s = i - 1;
- }
- while (this.tag(s - 2) === 'HERECOMMENT') {
- s -= 2;
- }
- startsLine = s === 0 || (_ref2 = this.tag(s - 1), __indexOf.call(LINEBREAKS, _ref2) >= 0) || tokens[s - 1].newLine;
- if (stackTop()) {
- _ref3 = stackTop(), stackTag = _ref3[0], stackIdx = _ref3[1];
- if ((stackTag === '{' || stackTag === 'INDENT' && this.tag(stackIdx - 1) === '{') && (startsLine || this.tag(s - 1) === ',' || this.tag(s - 1) === '{')) {
- return forward(1);
- }
- }
- startImplicitObject(s, !!startsLine);
- return forward(2);
- }
- if (prevTag === 'OUTDENT' && inImplicitCall() && (tag === '.' || tag === '?.' || tag === '::' || tag === '?::')) {
- endImplicitCall();
- return forward(1);
- }
- if (inImplicitObject() && __indexOf.call(LINEBREAKS, tag) >= 0) {
- stackTop()[2].sameLine = false;
- }
- if (__indexOf.call(IMPLICIT_END, tag) >= 0) {
- while (inImplicit()) {
- _ref4 = stackTop(), stackTag = _ref4[0], stackIdx = _ref4[1], (_ref5 = _ref4[2], sameLine = _ref5.sameLine, startsLine = _ref5.startsLine);
- if (inImplicitCall() && prevTag !== ',') {
- endImplicitCall();
- } else if (inImplicitObject() && sameLine && !startsLine) {
- endImplicitObject();
- } else if (inImplicitObject() && tag === 'TERMINATOR' && prevTag !== ',' && !(startsLine && this.looksObjectish(i + 1))) {
- endImplicitObject();
- } else {
- break;
- }
- }
- }
- if (tag === ',' && !this.looksObjectish(i + 1) && inImplicitObject() && (nextTag !== 'TERMINATOR' || !this.looksObjectish(i + 2))) {
- offset = nextTag === 'OUTDENT' ? 1 : 0;
- while (inImplicitObject()) {
- endImplicitObject(i + offset);
- }
- }
- return forward(1);
- });
- };
-
- Rewriter.prototype.addLocationDataToGeneratedTokens = function() {
- return this.scanTokens(function(token, i, tokens) {
- var column, line, nextLocation, prevLocation, _ref, _ref1;
- if (token[2]) {
- return 1;
- }
- if (!(token.generated || token.explicit)) {
- return 1;
- }
- if (token[0] === '{' && (nextLocation = (_ref = tokens[i + 1]) != null ? _ref[2] : void 0)) {
- line = nextLocation.first_line, column = nextLocation.first_column;
- } else if (prevLocation = (_ref1 = tokens[i - 1]) != null ? _ref1[2] : void 0) {
- line = prevLocation.last_line, column = prevLocation.last_column;
- } else {
- line = column = 0;
- }
- token[2] = {
- first_line: line,
- first_column: column,
- last_line: line,
- last_column: column
- };
- return 1;
- });
- };
-
- Rewriter.prototype.addImplicitIndentation = function() {
- var action, condition, indent, outdent, starter;
- starter = indent = outdent = null;
- condition = function(token, i) {
- var _ref, _ref1;
- return token[1] !== ';' && (_ref = token[0], __indexOf.call(SINGLE_CLOSERS, _ref) >= 0) && !(token[0] === 'ELSE' && starter !== 'THEN') && !(((_ref1 = token[0]) === 'CATCH' || _ref1 === 'FINALLY') && (starter === '->' || starter === '=>'));
- };
- action = function(token, i) {
- return this.tokens.splice((this.tag(i - 1) === ',' ? i - 1 : i), 0, outdent);
- };
- return this.scanTokens(function(token, i, tokens) {
- var j, tag, _i, _ref, _ref1;
- tag = token[0];
- if (tag === 'TERMINATOR' && this.tag(i + 1) === 'THEN') {
- tokens.splice(i, 1);
- return 0;
- }
- if (tag === 'ELSE' && this.tag(i - 1) !== 'OUTDENT') {
- tokens.splice.apply(tokens, [i, 0].concat(__slice.call(this.indentation())));
- return 2;
- }
- if (tag === 'CATCH') {
- for (j = _i = 1; _i <= 2; j = ++_i) {
- if (!((_ref = this.tag(i + j)) === 'OUTDENT' || _ref === 'TERMINATOR' || _ref === 'FINALLY')) {
- continue;
- }
- tokens.splice.apply(tokens, [i + j, 0].concat(__slice.call(this.indentation())));
- return 2 + j;
- }
- }
- if (__indexOf.call(SINGLE_LINERS, tag) >= 0 && this.tag(i + 1) !== 'INDENT' && !(tag === 'ELSE' && this.tag(i + 1) === 'IF')) {
- starter = tag;
- _ref1 = this.indentation(true), indent = _ref1[0], outdent = _ref1[1];
- if (starter === 'THEN') {
- indent.fromThen = true;
- }
- tokens.splice(i + 1, 0, indent);
- this.detectEnd(i + 2, condition, action);
- if (tag === 'THEN') {
- tokens.splice(i, 1);
- }
- return 1;
- }
- return 1;
- });
- };
-
- Rewriter.prototype.tagPostfixConditionals = function() {
- var action, condition, original;
- original = null;
- condition = function(token, i) {
- var prevTag, tag;
- tag = token[0];
- prevTag = this.tokens[i - 1][0];
- return tag === 'TERMINATOR' || (tag === 'INDENT' && __indexOf.call(SINGLE_LINERS, prevTag) < 0);
- };
- action = function(token, i) {
- if (token[0] !== 'INDENT' || (token.generated && !token.fromThen)) {
- return original[0] = 'POST_' + original[0];
- }
- };
- return this.scanTokens(function(token, i) {
- if (token[0] !== 'IF') {
- return 1;
- }
- original = token;
- this.detectEnd(i + 1, condition, action);
- return 1;
- });
- };
-
- Rewriter.prototype.indentation = function(implicit) {
- var indent, outdent;
- if (implicit == null) {
- implicit = false;
- }
- indent = ['INDENT', 2];
- outdent = ['OUTDENT', 2];
- if (implicit) {
- indent.generated = outdent.generated = true;
- }
- if (!implicit) {
- indent.explicit = outdent.explicit = true;
- }
- return [indent, outdent];
- };
-
- Rewriter.prototype.generate = generate;
-
- Rewriter.prototype.tag = function(i) {
- var _ref;
- return (_ref = this.tokens[i]) != null ? _ref[0] : void 0;
- };
-
- return Rewriter;
-
- })();
-
- BALANCED_PAIRS = [['(', ')'], ['[', ']'], ['{', '}'], ['INDENT', 'OUTDENT'], ['CALL_START', 'CALL_END'], ['PARAM_START', 'PARAM_END'], ['INDEX_START', 'INDEX_END']];
-
- exports.INVERSES = INVERSES = {};
-
- EXPRESSION_START = [];
-
- EXPRESSION_END = [];
-
- for (_i = 0, _len = BALANCED_PAIRS.length; _i < _len; _i++) {
- _ref = BALANCED_PAIRS[_i], left = _ref[0], rite = _ref[1];
- EXPRESSION_START.push(INVERSES[rite] = left);
- EXPRESSION_END.push(INVERSES[left] = rite);
- }
-
- EXPRESSION_CLOSE = ['CATCH', 'WHEN', 'ELSE', 'FINALLY'].concat(EXPRESSION_END);
-
- IMPLICIT_FUNC = ['IDENTIFIER', 'SUPER', ')', 'CALL_END', ']', 'INDEX_END', '@', 'THIS'];
-
- IMPLICIT_CALL = ['IDENTIFIER', 'NUMBER', 'STRING', 'JS', 'REGEX', 'NEW', 'PARAM_START', 'CLASS', 'IF', 'TRY', 'SWITCH', 'THIS', 'BOOL', 'NULL', 'UNDEFINED', 'UNARY', 'SUPER', 'THROW', '@', '->', '=>', '[', '(', '{', '--', '++'];
-
- IMPLICIT_UNSPACED_CALL = ['+', '-'];
-
- IMPLICIT_END = ['POST_IF', 'FOR', 'WHILE', 'UNTIL', 'WHEN', 'BY', 'LOOP', 'TERMINATOR'];
-
- SINGLE_LINERS = ['ELSE', '->', '=>', 'TRY', 'FINALLY', 'THEN'];
-
- SINGLE_CLOSERS = ['TERMINATOR', 'CATCH', 'FINALLY', 'ELSE', 'OUTDENT', 'LEADING_WHEN'];
-
- LINEBREAKS = ['TERMINATOR', 'INDENT', 'OUTDENT'];
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/scope.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/scope.js b/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/scope.js
deleted file mode 100644
index a09ba97..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/scope.js
+++ /dev/null
@@ -1,146 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var Scope, extend, last, _ref;
-
- _ref = require('./helpers'), extend = _ref.extend, last = _ref.last;
-
- exports.Scope = Scope = (function() {
- Scope.root = null;
-
- function Scope(parent, expressions, method) {
- this.parent = parent;
- this.expressions = expressions;
- this.method = method;
- this.variables = [
- {
- name: 'arguments',
- type: 'arguments'
- }
- ];
- this.positions = {};
- if (!this.parent) {
- Scope.root = this;
- }
- }
-
- Scope.prototype.add = function(name, type, immediate) {
- if (this.shared && !immediate) {
- return this.parent.add(name, type, immediate);
- }
- if (Object.prototype.hasOwnProperty.call(this.positions, name)) {
- return this.variables[this.positions[name]].type = type;
- } else {
- return this.positions[name] = this.variables.push({
- name: name,
- type: type
- }) - 1;
- }
- };
-
- Scope.prototype.namedMethod = function() {
- var _ref1;
- if (((_ref1 = this.method) != null ? _ref1.name : void 0) || !this.parent) {
- return this.method;
- }
- return this.parent.namedMethod();
- };
-
- Scope.prototype.find = function(name) {
- if (this.check(name)) {
- return true;
- }
- this.add(name, 'var');
- return false;
- };
-
- Scope.prototype.parameter = function(name) {
- if (this.shared && this.parent.check(name, true)) {
- return;
- }
- return this.add(name, 'param');
- };
-
- Scope.prototype.check = function(name) {
- var _ref1;
- return !!(this.type(name) || ((_ref1 = this.parent) != null ? _ref1.check(name) : void 0));
- };
-
- Scope.prototype.temporary = function(name, index) {
- if (name.length > 1) {
- return '_' + name + (index > 1 ? index - 1 : '');
- } else {
- return '_' + (index + parseInt(name, 36)).toString(36).replace(/\d/g, 'a');
- }
- };
-
- Scope.prototype.type = function(name) {
- var v, _i, _len, _ref1;
- _ref1 = this.variables;
- for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
- v = _ref1[_i];
- if (v.name === name) {
- return v.type;
- }
- }
- return null;
- };
-
- Scope.prototype.freeVariable = function(name, reserve) {
- var index, temp;
- if (reserve == null) {
- reserve = true;
- }
- index = 0;
- while (this.check((temp = this.temporary(name, index)))) {
- index++;
- }
- if (reserve) {
- this.add(temp, 'var', true);
- }
- return temp;
- };
-
- Scope.prototype.assign = function(name, value) {
- this.add(name, {
- value: value,
- assigned: true
- }, true);
- return this.hasAssignments = true;
- };
-
- Scope.prototype.hasDeclarations = function() {
- return !!this.declaredVariables().length;
- };
-
- Scope.prototype.declaredVariables = function() {
- var realVars, tempVars, v, _i, _len, _ref1;
- realVars = [];
- tempVars = [];
- _ref1 = this.variables;
- for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
- v = _ref1[_i];
- if (v.type === 'var') {
- (v.name.charAt(0) === '_' ? tempVars : realVars).push(v.name);
- }
- }
- return realVars.sort().concat(tempVars.sort());
- };
-
- Scope.prototype.assignedVariables = function() {
- var v, _i, _len, _ref1, _results;
- _ref1 = this.variables;
- _results = [];
- for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
- v = _ref1[_i];
- if (v.type.assigned) {
- _results.push("" + v.name + " = " + v.type.value);
- }
- }
- return _results;
- };
-
- return Scope;
-
- })();
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/sourcemap.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/sourcemap.js b/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/sourcemap.js
deleted file mode 100644
index 4bb6f25..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/lib/coffee-script/sourcemap.js
+++ /dev/null
@@ -1,161 +0,0 @@
-// Generated by CoffeeScript 1.6.3
-(function() {
- var LineMap, SourceMap;
-
- LineMap = (function() {
- function LineMap(line) {
- this.line = line;
- this.columns = [];
- }
-
- LineMap.prototype.add = function(column, _arg, options) {
- var sourceColumn, sourceLine;
- sourceLine = _arg[0], sourceColumn = _arg[1];
- if (options == null) {
- options = {};
- }
- if (this.columns[column] && options.noReplace) {
- return;
- }
- return this.columns[column] = {
- line: this.line,
- column: column,
- sourceLine: sourceLine,
- sourceColumn: sourceColumn
- };
- };
-
- LineMap.prototype.sourceLocation = function(column) {
- var mapping;
- while (!((mapping = this.columns[column]) || (column <= 0))) {
- column--;
- }
- return mapping && [mapping.sourceLine, mapping.sourceColumn];
- };
-
- return LineMap;
-
- })();
-
- SourceMap = (function() {
- var BASE64_CHARS, VLQ_CONTINUATION_BIT, VLQ_SHIFT, VLQ_VALUE_MASK;
-
- function SourceMap() {
- this.lines = [];
- }
-
- SourceMap.prototype.add = function(sourceLocation, generatedLocation, options) {
- var column, line, lineMap, _base;
- if (options == null) {
- options = {};
- }
- line = generatedLocation[0], column = generatedLocation[1];
- lineMap = ((_base = this.lines)[line] || (_base[line] = new LineMap(line)));
- return lineMap.add(column, sourceLocation, options);
- };
-
- SourceMap.prototype.sourceLocation = function(_arg) {
- var column, line, lineMap;
- line = _arg[0], column = _arg[1];
- while (!((lineMap = this.lines[line]) || (line <= 0))) {
- line--;
- }
- return lineMap && lineMap.sourceLocation(column);
- };
-
- SourceMap.prototype.generate = function(options, code) {
- var buffer, lastColumn, lastSourceColumn, lastSourceLine, lineMap, lineNumber, mapping, needComma, v3, writingline, _i, _j, _len, _len1, _ref, _ref1;
- if (options == null) {
- options = {};
- }
- if (code == null) {
- code = null;
- }
- writingline = 0;
- lastColumn = 0;
- lastSourceLine = 0;
- lastSourceColumn = 0;
- needComma = false;
- buffer = "";
- _ref = this.lines;
- for (lineNumber = _i = 0, _len = _ref.length; _i < _len; lineNumber = ++_i) {
- lineMap = _ref[lineNumber];
- if (lineMap) {
- _ref1 = lineMap.columns;
- for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
- mapping = _ref1[_j];
- if (!(mapping)) {
- continue;
- }
- while (writingline < mapping.line) {
- lastColumn = 0;
- needComma = false;
- buffer += ";";
- writingline++;
- }
- if (needComma) {
- buffer += ",";
- needComma = false;
- }
- buffer += this.encodeVlq(mapping.column - lastColumn);
- lastColumn = mapping.column;
- buffer += this.encodeVlq(0);
- buffer += this.encodeVlq(mapping.sourceLine - lastSourceLine);
- lastSourceLine = mapping.sourceLine;
- buffer += this.encodeVlq(mapping.sourceColumn - lastSourceColumn);
- lastSourceColumn = mapping.sourceColumn;
- needComma = true;
- }
- }
- }
- v3 = {
- version: 3,
- file: options.generatedFile || '',
- sourceRoot: options.sourceRoot || '',
- sources: options.sourceFiles || [''],
- names: [],
- mappings: buffer
- };
- if (options.inline) {
- v3.sourcesContent = [code];
- }
- return JSON.stringify(v3, null, 2);
- };
-
- VLQ_SHIFT = 5;
-
- VLQ_CONTINUATION_BIT = 1 << VLQ_SHIFT;
-
- VLQ_VALUE_MASK = VLQ_CONTINUATION_BIT - 1;
-
- SourceMap.prototype.encodeVlq = function(value) {
- var answer, nextChunk, signBit, valueToEncode;
- answer = '';
- signBit = value < 0 ? 1 : 0;
- valueToEncode = (Math.abs(value) << 1) + signBit;
- while (valueToEncode || !answer) {
- nextChunk = valueToEncode & VLQ_VALUE_MASK;
- valueToEncode = valueToEncode >> VLQ_SHIFT;
- if (valueToEncode) {
- nextChunk |= VLQ_CONTINUATION_BIT;
- }
- answer += this.encodeBase64(nextChunk);
- }
- return answer;
- };
-
- BASE64_CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
-
- SourceMap.prototype.encodeBase64 = function(value) {
- return BASE64_CHARS[value] || (function() {
- throw new Error("Cannot Base64 encode value: " + value);
- })();
- };
-
- return SourceMap;
-
- })();
-
- module.exports = SourceMap;
-
-}).call(this);
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/package.json
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/package.json b/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/package.json
deleted file mode 100644
index c1fe8d0..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/coffee-script/package.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "coffee-script",
- "description": "Unfancy JavaScript",
- "keywords": [
- "javascript",
- "language",
- "coffeescript",
- "compiler"
- ],
- "author": {
- "name": "Jeremy Ashkenas"
- },
- "version": "1.6.3",
- "licenses": [
- {
- "type": "MIT",
- "url": "https://raw.github.com/jashkenas/coffee-script/master/LICENSE"
- }
- ],
- "engines": {
- "node": ">=0.8.0"
- },
- "directories": {
- "lib": "./lib/coffee-script"
- },
- "main": "./lib/coffee-script/coffee-script",
- "bin": {
- "coffee": "./bin/coffee",
- "cake": "./bin/cake"
- },
- "scripts": {
- "test": "node ./bin/cake test"
- },
- "homepage": "http://coffeescript.org",
- "bugs": {
- "url": "https://github.com/jashkenas/coffee-script/issues"
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/jashkenas/coffee-script.git"
- },
- "devDependencies": {
- "uglify-js": "~2.2",
- "jison": ">=0.2.0"
- },
- "readme": "\n {\n } } {\n { { } }\n } }{ {\n { }{ } } _____ __ __\n ( }{ }{ { ) / ____| / _|/ _|\n .- { { } { }} -. | | ___ | |_| |_ ___ ___\n ( ( } { } { } } ) | | / _ \\| _| _/ _ \\/ _ \\\n |`-..________ ..-'| | |___| (_) | | | || __/ __/\n | | \\_____\\___/|_| |_| \\___|\\___|\n | ;--.\n | (__ \\ _____ _ _\n | | ) ) / ____| (_) | |\n | |/ / | (___ ___ _ __ _ _ __ | |_\n | ( / \\___ \\ / __| '__| | '_ \\| __|\n | |/ ____) | (__| | | | |_) | |_\n | | |_____/ \\___|_| |_| .__/ \\__|\n `-.._________..-' | |\n
|_|\n\n\n CoffeeScript is a little language that compiles into JavaScript.\n\n Install Node.js, and then the CoffeeScript compiler:\n sudo bin/cake install\n\n Or, if you have the Node Package Manager installed:\n npm install -g coffee-script\n (Leave off the -g if you don't wish to install globally.)\n\n Execute a script:\n coffee /path/to/script.coffee\n\n Compile a script:\n coffee -c /path/to/script.coffee\n\n For documentation, usage, and examples, see:\n http://coffeescript.org/\n\n To suggest a feature, report a bug, or general discussion:\n http://github.com/jashkenas/coffee-script/issues/\n\n If you'd like to chat, drop by #coffeescript on Freenode IRC,\n or on webchat.freenode.net.\n\n The source repository:\n git://github.com/jashkenas/coffee-script.git\n\n All contributors are listed here:\n http://github.com/jashkenas/coffee-script/contributors\n",
- "readmeFilename": "README",
- "_id": "coffee-script@1.6.3",
- "_from": "coffee-script@>=1.0.1"
-}
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/.editorconfig
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/.editorconfig b/blackberry10/node_modules/jasmine-node/node_modules/gaze/.editorconfig
deleted file mode 100644
index 0f09989..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/.editorconfig
+++ /dev/null
@@ -1,10 +0,0 @@
-# editorconfig.org
-root = true
-
-[*]
-indent_style = space
-indent_size = 2
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/.jshintrc
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/.jshintrc b/blackberry10/node_modules/jasmine-node/node_modules/gaze/.jshintrc
deleted file mode 100644
index 6b4c1a9..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/.jshintrc
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "curly": true,
- "eqeqeq": true,
- "immed": true,
- "latedef": true,
- "newcap": true,
- "noarg": true,
- "sub": true,
- "undef": true,
- "boss": true,
- "eqnull": true,
- "node": true,
- "es5": true
-}
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/.npmignore
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/.npmignore b/blackberry10/node_modules/jasmine-node/node_modules/gaze/.npmignore
deleted file mode 100644
index 2ccbe46..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-/node_modules/
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/.travis.yml
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/.travis.yml b/blackberry10/node_modules/jasmine-node/node_modules/gaze/.travis.yml
deleted file mode 100644
index 343380c..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/.travis.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-language: node_js
-node_js:
- - 0.8
- - 0.9
-before_script:
- - npm install -g grunt-cli
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/AUTHORS
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/AUTHORS b/blackberry10/node_modules/jasmine-node/node_modules/gaze/AUTHORS
deleted file mode 100644
index 69d9663..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/AUTHORS
+++ /dev/null
@@ -1,5 +0,0 @@
-Kyle Robinson Young (http://dontkry.com)
-Sam Day (http://sam.is-super-awesome.com)
-Roarke Gaskill (http://starkinvestments.com)
-Lance Pollard (http://lancepollard.com/)
-Daniel Fagnan (http://hydrocodedesign.com/)
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/Gruntfile.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/Gruntfile.js b/blackberry10/node_modules/jasmine-node/node_modules/gaze/Gruntfile.js
deleted file mode 100644
index 0206147..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/Gruntfile.js
+++ /dev/null
@@ -1,32 +0,0 @@
-module.exports = function(grunt) {
- 'use strict';
- grunt.initConfig({
- benchmark: {
- all: {
- src: ['benchmarks/*.js'],
- options: { times: 10 }
- }
- },
- nodeunit: {
- files: ['test/**/*_test.js'],
- },
- jshint: {
- options: {
- jshintrc: '.jshintrc'
- },
- gruntfile: {
- src: 'Gruntfile.js'
- },
- lib: {
- src: ['lib/**/*.js']
- },
- test: {
- src: ['test/**/*_test.js']
- },
- }
- });
- grunt.loadNpmTasks('grunt-benchmark');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-nodeunit');
- grunt.registerTask('default', ['jshint', 'nodeunit']);
-};
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/LICENSE-MIT
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/LICENSE-MIT b/blackberry10/node_modules/jasmine-node/node_modules/gaze/LICENSE-MIT
deleted file mode 100644
index 8c1a833..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/LICENSE-MIT
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2013 Kyle Robinson Young
-
-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/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/README.md
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/README.md b/blackberry10/node_modules/jasmine-node/node_modules/gaze/README.md
deleted file mode 100644
index ed2acbe..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/README.md
+++ /dev/null
@@ -1,172 +0,0 @@
-# gaze [![Build Status](https://secure.travis-ci.org/shama/gaze.png?branch=master)](http://travis-ci.org/shama/gaze)
-
-A globbing fs.watch wrapper built from the best parts of other fine watch libs.
-
-Compatible with NodeJS v0.8/0.6, Windows, OSX and Linux.
-
-## Usage
-Install the module with: `npm install gaze` or place into your `package.json`
-and run `npm install`.
-
-```javascript
-var gaze = require('gaze');
-
-// Watch all .js files/dirs in process.cwd()
-gaze('**/*.js', function(err, watcher) {
- // Files have all started watching
- // watcher === this
-
- // Get all watched files
- console.log(this.watched());
-
- // On file changed
- this.on('changed', function(filepath) {
- console.log(filepath + ' was changed');
- });
-
- // On file added
- this.on('added', function(filepath) {
- console.log(filepath + ' was added');
- });
-
- // On file deleted
- this.on('deleted', function(filepath) {
- console.log(filepath + ' was deleted');
- });
-
- // On changed/added/deleted
- this.on('all', function(event, filepath) {
- console.log(filepath + ' was ' + event);
- });
-
- // Get watched files with relative paths
- console.log(this.relative());
-});
-
-// Also accepts an array of patterns
-gaze(['stylesheets/*.css', 'images/**/*.png'], function() {
- // Add more patterns later to be watched
- this.add(['js/*.js']);
-});
-```
-
-### Alternate Interface
-
-```javascript
-var Gaze = require('gaze').Gaze;
-
-var gaze = new Gaze('**/*');
-
-// Files have all started watching
-gaze.on('ready', function(watcher) { });
-
-// A file has been added/changed/deleted has occurred
-gaze.on('all', function(event, filepath) { });
-```
-
-### Errors
-
-```javascript
-gaze('**/*', function() {
- this.on('error', function(err) {
- // Handle error here
- });
-});
-```
-
-### Minimatch / Glob
-
-See [isaacs's minimatch](https://github.com/isaacs/minimatch) for more
-information on glob patterns.
-
-## Documentation
-
-### gaze(patterns, [options], callback)
-
-* `patterns` {String|Array} File patterns to be matched
-* `options` {Object}
-* `callback` {Function}
- * `err` {Error | null}
- * `watcher` {Object} Instance of the Gaze watcher
-
-### Class: gaze.Gaze
-
-Create a Gaze object by instanting the `gaze.Gaze` class.
-
-```javascript
-var Gaze = require('gaze').Gaze;
-var gaze = new Gaze(pattern, options, callback);
-```
-
-#### Properties
-
-* `options` The options object passed in.
- * `interval` {integer} Interval to pass to fs.watchFile
- * `debounceDelay` {integer} Delay for events called in succession for the same
- file/event
-
-#### Events
-
-* `ready(watcher)` When files have been globbed and watching has begun.
-* `all(event, filepath)` When an `added`, `changed` or `deleted` event occurs.
-* `added(filepath)` When a file has been added to a watch directory.
-* `changed(filepath)` When a file has been changed.
-* `deleted(filepath)` When a file has been deleted.
-* `renamed(newPath, oldPath)` When a file has been renamed.
-* `end()` When the watcher is closed and watches have been removed.
-* `error(err)` When an error occurs.
-
-#### Methods
-
-* `emit(event, [...])` Wrapper for the EventEmitter.emit.
- `added`|`changed`|`deleted` events will also trigger the `all` event.
-* `close()` Unwatch all files and reset the watch instance.
-* `add(patterns, callback)` Adds file(s) patterns to be watched.
-* `remove(filepath)` removes a file or directory from being watched. Does not
- recurse directories.
-* `watched()` Returns the currently watched files.
-* `relative([dir, unixify])` Returns the currently watched files with relative paths.
- * `dir` {string} Only return relative files for this directory.
- * `unixify` {boolean} Return paths with `/` instead of `\\` if on Windows.
-
-## FAQs
-
-### Why Another `fs.watch` Wrapper?
-I liked parts of other `fs.watch` wrappers but none had all the features I
-needed. This lib combines the features I needed from other fine watch libs:
-Speedy data behavior from
-[paulmillr's chokidar](https://github.com/paulmillr/chokidar), API interface
-from [mikeal's watch](https://github.com/mikeal/watch) and file globbing using
-[isaacs's glob](https://github.com/isaacs/node-glob) which is also used by
-[cowboy's Grunt](https://github.com/gruntjs/grunt).
-
-### How do I fix the error `EMFILE: Too many opened files.`?
-This is because of your system's max opened file limit. For OSX the default is
-very low (256). Increase your limit temporarily with `ulimit -n 10480`, the
-number being the new max limit.
-
-## Contributing
-In lieu of a formal styleguide, take care to maintain the existing coding style.
-Add unit tests for any new or changed functionality. Lint and test your code
-using [grunt](http://gruntjs.com/).
-
-## Release History
-* 0.3.4 - Code clean up. Fix path must be strings errors (@groner). Fix incorrect added events (@groner).
-* 0.3.3 - Fix for multiple patterns with negate.
-* 0.3.2 - Emit `end` before removeAllListeners.
-* 0.3.1 - Fix added events within subfolder patterns.
-* 0.3.0 - Handle safewrite events, `forceWatchMethod` option removed, bug fixes and watch optimizations (@rgaskill).
-* 0.2.2 - Fix issue where subsequent add calls dont get watched (@samcday). removeAllListeners on close.
-* 0.2.1 - Fix issue with invalid `added` events in current working dir.
-* 0.2.0 - Support and mark folders with `path.sep`. Add `forceWatchMethod` option. Support `renamed` events.
-* 0.1.6 - Recognize the `cwd` option properly
-* 0.1.5 - Catch too many open file errors
-* 0.1.4 - Really fix the race condition with 2 watches
-* 0.1.3 - Fix race condition with 2 watches
-* 0.1.2 - Read triggering changed event fix
-* 0.1.1 - Minor fixes
-* 0.1.0 - Initial release
-
-## License
-Copyright (c) 2013 Kyle Robinson Young
-Licensed under the MIT license.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/benchmarks/gaze100s.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/benchmarks/gaze100s.js b/blackberry10/node_modules/jasmine-node/node_modules/gaze/benchmarks/gaze100s.js
deleted file mode 100644
index 1ada219..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/benchmarks/gaze100s.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-
-var gaze = require('../lib/gaze');
-var grunt = require('grunt');
-var path = require('path');
-
-// Folder to watch
-var watchDir = path.resolve(__dirname, 'watch');
-
-// Helper for creating mock files
-function createFiles(num, dir) {
- for (var i = 0; i < num; i++) {
- grunt.file.write(path.join(dir, 'test-' + i + '.js'), 'var test = ' + i + ';');
- }
-}
-
-module.exports = {
- 'setUp': function(done) {
- // ensure that your `ulimit -n` is higher than amount of files
- if (grunt.file.exists(watchDir)) {
- grunt.file.delete(watchDir, {force:true});
- }
- createFiles(100, path.join(watchDir, 'one'));
- createFiles(100, path.join(watchDir, 'two'));
- createFiles(100, path.join(watchDir, 'three'));
- createFiles(100, path.join(watchDir, 'three', 'four'));
- createFiles(100, path.join(watchDir, 'three', 'four', 'five', 'six'));
- process.chdir(watchDir);
- done();
- },
- 'tearDown': function(done) {
- if (grunt.file.exists(watchDir)) {
- grunt.file.delete(watchDir, {force:true});
- }
- done();
- },
- changed: function(done) {
- gaze('**/*', {maxListeners:0}, function(err, watcher) {
- this.on('changed', done);
- setTimeout(function() {
- var rand = String(new Date().getTime()).replace(/[^\w]+/g, '');
- grunt.file.write(path.join(watchDir, 'one', 'test-99.js'), 'var test = "' + rand + '"');
- }, 100);
- });
- }
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js b/blackberry10/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js
deleted file mode 100644
index 85da897..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js
+++ /dev/null
@@ -1,466 +0,0 @@
-/*
- * gaze
- * https://github.com/shama/gaze
- *
- * Copyright (c) 2013 Kyle Robinson Young
- * Licensed under the MIT license.
- */
-
-'use strict';
-
-// libs
-var util = require('util');
-var EE = require('events').EventEmitter;
-var fs = require('fs');
-var path = require('path');
-var fileset = require('fileset');
-var minimatch = require('minimatch');
-
-// globals
-var delay = 10;
-
-// `Gaze` EventEmitter object to return in the callback
-function Gaze(patterns, opts, done) {
- var _this = this;
- EE.call(_this);
-
- // If second arg is the callback
- if (typeof opts === 'function') {
- done = opts;
- opts = {};
- }
-
- // Default options
- opts = opts || {};
- opts.mark = true;
- opts.interval = opts.interval || 100;
- opts.debounceDelay = opts.debounceDelay || 500;
- opts.cwd = opts.cwd || process.cwd();
- this.options = opts;
-
- // Default done callback
- done = done || function() {};
-
- // Remember our watched dir:files
- this._watched = Object.create(null);
-
- // Store watchers
- this._watchers = Object.create(null);
-
- // Store patterns
- this._patterns = [];
-
- // Cached events for debouncing
- this._cached = Object.create(null);
-
- // Set maxListeners
- if (this.options.maxListeners) {
- this.setMaxListeners(this.options.maxListeners);
- Gaze.super_.prototype.setMaxListeners(this.options.maxListeners);
- delete this.options.maxListeners;
- }
-
- // Initialize the watch on files
- if (patterns) {
- this.add(patterns, done);
- }
-
- return this;
-}
-util.inherits(Gaze, EE);
-
-// Main entry point. Start watching and call done when setup
-module.exports = function gaze(patterns, opts, done) {
- return new Gaze(patterns, opts, done);
-};
-module.exports.Gaze = Gaze;
-
-// Node v0.6 compat
-fs.existsSync = fs.existsSync || path.existsSync;
-path.sep = path.sep || path.normalize('/');
-
-/**
- * Lo-Dash 1.0.1 <http://lodash.com/>
- * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
- * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
- * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
- * Available under MIT license <http://lodash.com/license>
- */
-function unique() { var array = Array.prototype.concat.apply(Array.prototype, arguments); var result = []; for (var i = 0; i < array.length; i++) { if (result.indexOf(array[i]) === -1) { result.push(array[i]); } } return result; }
-
-/**
- * Copyright (c) 2010 Caolan McMahon
- * Available under MIT license <https://raw.github.com/caolan/async/master/LICENSE>
- */
-function forEachSeries(arr, iterator, callback) {
- if (!arr.length) { return callback(); }
- var completed = 0;
- var iterate = function() {
- iterator(arr[completed], function (err) {
- if (err) {
- callback(err);
- callback = function() {};
- } else {
- completed += 1;
- if (completed === arr.length) {
- callback(null);
- } else {
- iterate();
- }
- }
- });
- };
- iterate();
-}
-
-// other helpers
-
-// Returns boolean whether filepath is dir terminated
-function _isDir(dir) {
- if (typeof dir !== 'string') { return false; }
- return (dir.slice(-(path.sep.length)) === path.sep);
-}
-
-// Create a `key:[]` if doesnt exist on `obj` then push or concat the `val`
-function _objectPush(obj, key, val) {
- if (obj[key] == null) { obj[key] = []; }
- if (Array.isArray(val)) { obj[key] = obj[key].concat(val); }
- else if (val) { obj[key].push(val); }
- return obj[key] = unique(obj[key]);
-}
-
-// Ensures the dir is marked with path.sep
-function _markDir(dir) {
- if (typeof dir === 'string' &&
- dir.slice(-(path.sep.length)) !== path.sep &&
- dir !== '.') {
- dir += path.sep;
- }
- return dir;
-}
-
-// Changes path.sep to unix ones for testing
-function _unixifyPathSep(filepath) {
- return (process.platform === 'win32') ? String(filepath).replace(/\\/g, '/') : filepath;
-}
-
-// Override the emit function to emit `all` events
-// and debounce on duplicate events per file
-Gaze.prototype.emit = function() {
- var _this = this;
- var args = arguments;
-
- var e = args[0];
- var filepath = args[1];
- var timeoutId;
-
- // If not added/deleted/changed/renamed then just emit the event
- if (e.slice(-2) !== 'ed') {
- Gaze.super_.prototype.emit.apply(_this, args);
- return this;
- }
-
- // Detect rename event, if added and previous deleted is in the cache
- if (e === 'added') {
- Object.keys(this._cached).forEach(function(oldFile) {
- if (_this._cached[oldFile].indexOf('deleted') !== -1) {
- args[0] = e = 'renamed';
- [].push.call(args, oldFile);
- delete _this._cached[oldFile];
- return false;
- }
- });
- }
-
- // If cached doesnt exist, create a delay before running the next
- // then emit the event
- var cache = this._cached[filepath] || [];
- if (cache.indexOf(e) === -1) {
- _objectPush(_this._cached, filepath, e);
- clearTimeout(timeoutId);
- timeoutId = setTimeout(function() {
- delete _this._cached[filepath];
- }, this.options.debounceDelay);
- // Emit the event and `all` event
- Gaze.super_.prototype.emit.apply(_this, args);
- Gaze.super_.prototype.emit.apply(_this, ['all', e].concat([].slice.call(args, 1)));
- }
-
- return this;
-};
-
-// Close watchers
-Gaze.prototype.close = function(_reset) {
- var _this = this;
- _reset = _reset === false ? false : true;
- Object.keys(_this._watchers).forEach(function(file) {
- _this._watchers[file].close();
- });
- _this._watchers = Object.create(null);
- Object.keys(this._watched).forEach(function(dir) {
- fs.unwatchFile(dir);
- _this._watched[dir].forEach(function(uFile) {
- fs.unwatchFile(uFile);
- });
- });
- if (_reset) {
- _this._watched = Object.create(null);
- setTimeout(function() {
- _this.emit('end');
- _this.removeAllListeners();
- }, delay + 100);
- }
- return _this;
-};
-
-// Add file patterns to be watched
-Gaze.prototype.add = function(files, done) {
- var _this = this;
- if (typeof files === 'string') {
- files = [files];
- }
- this._patterns = unique.apply(null, [this._patterns, files]);
-
- var include = [], exclude = [];
- this._patterns.forEach(function(p) {
- if (p.slice(0, 1) === '!') {
- exclude.push(p.slice(1));
- } else {
- include.push(p);
- }
- });
-
- fileset(include, exclude, _this.options, function(err, files) {
- if (err) {
- _this.emit('error', err);
- return done(err);
- }
- _this._addToWatched(files);
- _this.close(false);
- _this._initWatched(done);
- });
-};
-
-// Remove file/dir from `watched`
-Gaze.prototype.remove = function(file) {
- var _this = this;
- if (this._watched[file]) {
- // is dir, remove all files
- fs.unwatchFile(file);
- this._watched[file].forEach(fs.unwatchFile);
- delete this._watched[file];
- } else {
- // is a file, find and remove
- Object.keys(this._watched).forEach(function(dir) {
- var index = _this._watched[dir].indexOf(file);
- if (index !== -1) {
- fs.unwatchFile(file);
- _this._watched[dir].splice(index, 1);
- return false;
- }
- });
- }
- if (this._watchers[file]) {
- this._watchers[file].close();
- }
- return this;
-};
-
-// Return watched files
-Gaze.prototype.watched = function() {
- return this._watched;
-};
-
-// Returns `watched` files with relative paths to process.cwd()
-Gaze.prototype.relative = function(dir, unixify) {
- var _this = this;
- var relative = Object.create(null);
- var relDir, relFile, unixRelDir;
- var cwd = this.options.cwd || process.cwd();
- if (dir === '') { dir = '.'; }
- dir = _markDir(dir);
- unixify = unixify || false;
- Object.keys(this._watched).forEach(function(dir) {
- relDir = path.relative(cwd, dir) + path.sep;
- if (relDir === path.sep) { relDir = '.'; }
- unixRelDir = unixify ? _unixifyPathSep(relDir) : relDir;
- relative[unixRelDir] = _this._watched[dir].map(function(file) {
- relFile = path.relative(path.join(cwd, relDir), file);
- if (_isDir(file)) {
- relFile = _markDir(relFile);
- }
- if (unixify) {
- relFile = _unixifyPathSep(relFile);
- }
- return relFile;
- });
- });
- if (dir && unixify) {
- dir = _unixifyPathSep(dir);
- }
- return dir ? relative[dir] || [] : relative;
-};
-
-// Adds files and dirs to watched
-Gaze.prototype._addToWatched = function(files) {
- var _this = this;
- files.forEach(function(file) {
- var filepath = path.resolve(_this.options.cwd, file);
- if (file.slice(-1) === '/') { filepath += path.sep; }
- _objectPush(_this._watched, path.dirname(filepath) + path.sep, filepath);
- });
- return this;
-};
-
-// Returns true if the file matches this._patterns
-Gaze.prototype._isMatch = function(file) {
- var include = [], exclude = [];
- this._patterns.forEach(function(p) {
- if (p.slice(0, 1) === '!') {
- exclude.push(p.slice(1));
- } else {
- include.push(p);
- }
- });
- var matched = false, i = 0;
- for (i = 0; i < include.length; i++) {
- if (minimatch(file, include[i])) {
- matched = true;
- break;
- }
- }
- for (i = 0; i < exclude.length; i++) {
- if (minimatch(file, exclude[i])) {
- matched = false;
- break;
- }
- }
- return matched;
-};
-
-Gaze.prototype._watchDir = function(dir, done) {
- var _this = this;
- try {
- _this._watchers[dir] = fs.watch(dir, function(event) {
- // race condition. Let's give the fs a little time to settle down. so we
- // don't fire events on non existent files.
- setTimeout(function() {
- if (fs.existsSync(dir)) {
- done(null, dir);
- }
- }, delay + 100);
- });
- } catch (err) {
- return this._handleError(err);
- }
- return this;
-};
-
-Gaze.prototype._pollFile = function(file, done) {
- var _this = this;
- var opts = { persistent: true, interval: _this.options.interval };
- try {
- fs.watchFile(file, opts, function(curr, prev) {
- done(null, file);
- });
- } catch (err) {
- return this._handleError(err);
- }
- return this;
-};
-
-// Initialize the actual watch on `watched` files
-Gaze.prototype._initWatched = function(done) {
- var _this = this;
- var cwd = this.options.cwd || process.cwd();
- var curWatched = Object.keys(_this._watched);
- forEachSeries(curWatched, function(dir, next) {
- var files = _this._watched[dir];
- // Triggered when a watched dir has an event
- _this._watchDir(dir, function(event, dirpath) {
- var relDir = cwd === dir ? '.' : path.relative(cwd, dir);
-
- fs.readdir(dirpath, function(err, current) {
- if (err) { return _this.emit('error', err); }
- if (!current) { return; }
-
- try {
- // append path.sep to directories so they match previous.
- current = current.map(function(curPath) {
- if (fs.existsSync(path.join(dir, curPath)) && fs.statSync(path.join(dir, curPath)).isDirectory()) {
- return curPath + path.sep;
- } else {
- return curPath;
- }
- });
- } catch (err) {
- // race condition-- sometimes the file no longer exists
- }
-
- // Get watched files for this dir
- var previous = _this.relative(relDir);
-
- // If file was deleted
- previous.filter(function(file) {
- return current.indexOf(file) < 0;
- }).forEach(function(file) {
- if (!_isDir(file)) {
- var filepath = path.join(dir, file);
- _this.remove(filepath);
- _this.emit('deleted', filepath);
- }
- });
-
- // If file was added
- current.filter(function(file) {
- return previous.indexOf(file) < 0;
- }).forEach(function(file) {
- // Is it a matching pattern?
- var relFile = path.join(relDir, file);
- // TODO: this can be optimized more
- // we shouldnt need isMatch() and could just use add()
- if (_this._isMatch(relFile)) {
- // Add to watch then emit event
- _this.add(relFile, function() {
- _this.emit('added', path.join(dir, file));
- });
- }
- });
-
- });
- });
-
- // Watch for change/rename events on files
- files.forEach(function(file) {
- if (_isDir(file)) { return; }
- _this._pollFile(file, function(err, filepath) {
- // Only emit changed if the file still exists
- // Prevents changed/deleted duplicate events
- // TODO: This ignores changed events on folders, maybe support this?
- // When a file is added, a folder changed event emits first
- if (fs.existsSync(filepath)) {
- _this.emit('changed', filepath);
- }
- });
- });
-
- next();
- }, function() {
-
- // Return this instance of Gaze
- // delay before ready solves a lot of issues
- setTimeout(function() {
- _this.emit('ready', _this);
- done.call(_this, null, _this);
- }, delay + 100);
-
- });
-};
-
-// If an error, handle it here
-Gaze.prototype._handleError = function(err) {
- if (err.code === 'EMFILE') {
- return this.emit('error', new Error('EMFILE: Too many opened files.'));
- }
- return this.emit('error', err);
-};
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/.npmignore
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/.npmignore b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/.npmignore
deleted file mode 100644
index 3c3629e..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/.travis.yml
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/.travis.yml b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/.travis.yml
deleted file mode 100644
index b740293..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/.travis.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-language: node_js
-
-node_js:
- - 0.4
- - 0.6
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/LICENSE-MIT
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/LICENSE-MIT b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/LICENSE-MIT
deleted file mode 100644
index e6f8599..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/LICENSE-MIT
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2012 Mickael Daniel
-
-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/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/README.md
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/README.md b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/README.md
deleted file mode 100644
index c6ec211..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/README.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# node-fileset
-
-Exposes a basic wrapper on top of
-[Glob](https://github.com/isaacs/node-glob) /
-[minimatch](https://github.com/isaacs/minimatch) combo both written by
-@isaacs. Glob now uses JavaScript instead of C++ bindings which makes it
-usable in Node.js 0.6.x and Windows platforms.
-
-[![Build Status](https://secure.travis-ci.org/mklabs/node-fileset.png)](http://travis-ci.org/mklabs/node-fileset)
-
-Adds multiples patterns matching and exlude ability. This is
-basically just a sugar API syntax where you can specify a list of includes
-and optional exclude patterns. It works by setting up the necessary
-miniglob "fileset" and filtering out the results using minimatch.
-
-## Install
-
- npm install fileset
-
-## Usage
-
-Can be used with callback or emitter style.
-
-* **include**: list of glob patterns `foo/**/*.js *.md src/lib/**/*`
-* **exclude**: *optional* list of glob patterns to filter include
- results `foo/**/*.js *.md`
-* **callback**: *optional* function that gets called with an error if
- something wrong happend, otherwise null with an array of results
-
-The callback is optional since the fileset method return an instance of
-EventEmitter which emit different events you might use:
-
-* *match*: Every time a match is found, miniglob emits this event with
- the pattern.
-* *include*: Emitted each time an include match is found.
-* *exclude*: Emitted each time an exclude match is found and filtered
- out from the fileset.
-* *end*: Emitted when the matching is finished with all the matches
- found, optionally filtered by the exclude patterns.
-
-#### Callback
-
-```js
-var fileset = require('fileset');
-
-fileset('**/*.js', '**.min.js', function(err, files) {
- if (err) return console.error(err);
-
- console.log('Files: ', files.length);
- console.log(files);
-});
-```
-
-#### Event emitter
-
-```js
-var fileset = require('fileset');
-
-fileset('**.coffee README.md *.json Cakefile **.js', 'node_modules/**')
- .on('match', console.log.bind(console, 'error'))
- .on('include', console.log.bind(console, 'includes'))
- .on('exclude', console.log.bind(console, 'excludes'))
- .on('end', console.log.bind(console, 'end'));
-```
-
-`fileset` returns an instance of EventEmitter, with an `includes` property
-which is the array of Fileset objects (inheriting from
-`miniglob.Miniglob`) that were used during the mathing process, should
-you want to use them individually.
-
-Check out the
-[tests](https://github.com/mklabs/node-fileset/tree/master/tests) for
-more examples.
-
-## Tests
-
-Run `npm test`
-
-## Why
-
-Mainly for a build tool with cake files, to provide me an easy way to get
-a list of files by either using glob or path patterns, optionally
-allowing exclude patterns to filter out the results.
-
-All the magic is happening in
-[Glob](https://github.com/isaacs/node-glob) and
-[minimatch](https://github.com/isaacs/minimatch). Check them out!
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/lib/fileset.js
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/lib/fileset.js b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/lib/fileset.js
deleted file mode 100644
index a74077c..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/lib/fileset.js
+++ /dev/null
@@ -1,64 +0,0 @@
-var util = require('util'),
- minimatch = require('minimatch'),
- Glob = require('glob').Glob,
- EventEmitter = require('events').EventEmitter;
-
-module.exports = fileset;
-
-function fileset(include, exclude, options, cb) {
- if (typeof exclude === 'function') cb = exclude, exclude = '';
- else if (typeof options === 'function') cb = options, options = {};
-
- var includes = (typeof include === 'string') ? include.split(' ') : include;
- var excludes = (typeof exclude === 'string') ? exclude.split(' ') : exclude;
-
- var em = new EventEmitter,
- remaining = includes.length,
- results = [];
-
- if(!includes.length) return cb(new Error('Must provide an include pattern'));
-
- em.includes = includes.map(function(pattern) {
- return new fileset.Fileset(pattern, options)
- .on('error', cb ? cb : em.emit.bind(em, 'error'))
- .on('match', em.emit.bind(em, 'match'))
- .on('match', em.emit.bind(em, 'include'))
- .on('end', next.bind({}, pattern))
- });
-
- function next(pattern, matches) {
- results = results.concat(matches);
-
- if(!(--remaining)) {
- results = results.filter(function(file) {
- return !excludes.filter(function(glob) {
- var match = minimatch(file, glob, { matchBase: true });
- if(match) em.emit('exclude', file);
- return match;
- }).length;
- });
-
- if(cb) cb(null, results);
- em.emit('end', results);
- }
- }
-
- return em;
-}
-
-fileset.Fileset = function Fileset(pattern, options, cb) {
-
- if (typeof options === 'function') cb = options, options = {};
- if (!options) options = {};
-
- Glob.call(this, pattern, options);
-
- if(typeof cb === 'function') {
- this.on('error', cb);
- this.on('end', function(matches) { cb(null, matches); });
- }
-};
-
-util.inherits(fileset.Fileset, Glob);
-
-
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/.npmignore
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/.npmignore b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/.npmignore
deleted file mode 100644
index 2af4b71..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.*.swp
-test/a/
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/.travis.yml
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/.travis.yml b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/.travis.yml
deleted file mode 100644
index baa0031..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/.travis.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-language: node_js
-node_js:
- - 0.8
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/LICENSE
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/LICENSE b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/LICENSE
deleted file mode 100644
index 0c44ae7..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright (c) Isaac Z. Schlueter ("Author")
-All rights reserved.
-
-The BSD License
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/3016473f/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/README.md
----------------------------------------------------------------------
diff --git a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/README.md b/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/README.md
deleted file mode 100644
index cc69164..0000000
--- a/blackberry10/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/README.md
+++ /dev/null
@@ -1,250 +0,0 @@
-# Glob
-
-Match files using the patterns the shell uses, like stars and stuff.
-
-This is a glob implementation in JavaScript. It uses the `minimatch`
-library to do its matching.
-
-## Attention: node-glob users!
-
-The API has changed dramatically between 2.x and 3.x. This library is
-now 100% JavaScript, and the integer flags have been replaced with an
-options object.
-
-Also, there's an event emitter class, proper tests, and all the other
-things you've come to expect from node modules.
-
-And best of all, no compilation!
-
-## Usage
-
-```javascript
-var glob = require("glob")
-
-// options is optional
-glob("**/*.js", options, function (er, files) {
- // files is an array of filenames.
- // If the `nonull` option is set, and nothing
- // was found, then files is ["**/*.js"]
- // er is an error object or null.
-})
-```
-
-## Features
-
-Please see the [minimatch
-documentation](https://github.com/isaacs/minimatch) for more details.
-
-Supports these glob features:
-
-* Brace Expansion
-* Extended glob matching
-* "Globstar" `**` matching
-
-See:
-
-* `man sh`
-* `man bash`
-* `man 3 fnmatch`
-* `man 5 gitignore`
-* [minimatch documentation](https://github.com/isaacs/minimatch)
-
-## glob(pattern, [options], cb)
-
-* `pattern` {String} Pattern to be matched
-* `options` {Object}
-* `cb` {Function}
- * `err` {Error | null}
- * `matches` {Array<String>} filenames found matching the pattern
-
-Perform an asynchronous glob search.
-
-## glob.sync(pattern, [options])
-
-* `pattern` {String} Pattern to be matched
-* `options` {Object}
-* return: {Array<String>} filenames found matching the pattern
-
-Perform a synchronous glob search.
-
-## Class: glob.Glob
-
-Create a Glob object by instanting the `glob.Glob` class.
-
-```javascript
-var Glob = require("glob").Glob
-var mg = new Glob(pattern, options, cb)
-```
-
-It's an EventEmitter, and starts walking the filesystem to find matches
-immediately.
-
-### new glob.Glob(pattern, [options], [cb])
-
-* `pattern` {String} pattern to search for
-* `options` {Object}
-* `cb` {Function} Called when an error occurs, or matches are found
- * `err` {Error | null}
- * `matches` {Array<String>} filenames found matching the pattern
-
-Note that if the `sync` flag is set in the options, then matches will
-be immediately available on the `g.found` member.
-
-### Properties
-
-* `minimatch` The minimatch object that the glob uses.
-* `options` The options object passed in.
-* `error` The error encountered. When an error is encountered, the
- glob object is in an undefined state, and should be discarded.
-* `aborted` Boolean which is set to true when calling `abort()`. There
- is no way at this time to continue a glob search after aborting, but
- you can re-use the statCache to avoid having to duplicate syscalls.
-* `statCache` Collection of all the stat results the glob search
- performed.
-* `cache` Convenience object. Each field has the following possible
- values:
- * `false` - Path does not exist
- * `true` - Path exists
- * `1` - Path exists, and is not a directory
- * `2` - Path exists, and is a directory
- * `[file, entries, ...]` - Path exists, is a directory, and the
- array value is the results of `fs.readdir`
-
-### Events
-
-* `end` When the matching is finished, this is emitted with all the
- matches found. If the `nonull` option is set, and no match was found,
- then the `matches` list contains the original pattern. The matches
- are sorted, unless the `nosort` flag is set.
-* `match` Every time a match is found, this is emitted with the matched.
-* `error` Emitted when an unexpected error is encountered, or whenever
- any fs error occurs if `options.strict` is set.
-* `abort` When `abort()` is called, this event is raised.
-
-### Methods
-
-* `abort` Stop the search.
-
-### Options
-
-All the options that can be passed to Minimatch can also be passed to
-Glob to change pattern matching behavior. Also, some have been added,
-or have glob-specific ramifications.
-
-All options are false by default, unless otherwise noted.
-
-All options are added to the glob object, as well.
-
-* `cwd` The current working directory in which to search. Defaults
- to `process.cwd()`.
-* `root` The place where patterns starting with `/` will be mounted
- onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix
- systems, and `C:\` or some such on Windows.)
-* `dot` Include `.dot` files in normal matches and `globstar` matches.
- Note that an explicit dot in a portion of the pattern will always
- match dot files.
-* `nomount` By default, a pattern starting with a forward-slash will be
- "mounted" onto the root setting, so that a valid filesystem path is
- returned. Set this flag to disable that behavior.
-* `mark` Add a `/` character to directory matches. Note that this
- requires additional stat calls.
-* `nosort` Don't sort the results.
-* `stat` Set to true to stat *all* results. This reduces performance
- somewhat, and is completely unnecessary, unless `readdir` is presumed
- to be an untrustworthy indicator of file existence. It will cause
- ELOOP to be triggered one level sooner in the case of cyclical
- symbolic links.
-* `silent` When an unusual error is encountered
- when attempting to read a directory, a warning will be printed to
- stderr. Set the `silent` option to true to suppress these warnings.
-* `strict` When an unusual error is encountered
- when attempting to read a directory, the process will just continue on
- in search of other matches. Set the `strict` option to raise an error
- in these cases.
-* `cache` See `cache` property above. Pass in a previously generated
- cache object to save some fs calls.
-* `statCache` A cache of results of filesystem information, to prevent
- unnecessary stat calls. While it should not normally be necessary to
- set this, you may pass the statCache from one glob() call to the
- options object of another, if you know that the filesystem will not
- change between calls. (See "Race Conditions" below.)
-* `sync` Perform a synchronous glob search.
-* `nounique` In some cases, brace-expanded patterns can result in the
- same file showing up multiple times in the result set. By default,
- this implementation prevents duplicates in the result set.
- Set this flag to disable that behavior.
-* `nonull` Set to never return an empty set, instead returning a set
- containing the pattern itself. This is the default in glob(3).
-* `nocase` Perform a case-insensitive match. Note that case-insensitive
- filesystems will sometimes result in glob returning results that are
- case-insensitively matched anyway, since readdir and stat will not
- raise an error.
-* `debug` Set to enable debug logging in minimatch and glob.
-* `globDebug` Set to enable debug logging in glob, but not minimatch.
-
-## Comparisons to other fnmatch/glob implementations
-
-While strict compliance with the existing standards is a worthwhile
-goal, some discrepancies exist between node-glob and other
-implementations, and are intentional.
-
-If the pattern starts with a `!` character, then it is negated. Set the
-`nonegate` flag to suppress this behavior, and treat leading `!`
-characters normally. This is perhaps relevant if you wish to start the
-pattern with a negative extglob pattern like `!(a|B)`. Multiple `!`
-characters at the start of a pattern will negate the pattern multiple
-times.
-
-If a pattern starts with `#`, then it is treated as a comment, and
-will not match anything. Use `\#` to match a literal `#` at the
-start of a line, or set the `nocomment` flag to suppress this behavior.
-
-The double-star character `**` is supported by default, unless the
-`noglobstar` flag is set. This is supported in the manner of bsdglob
-and bash 4.1, where `**` only has special significance if it is the only
-thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but
-`a/**b` will not.
-
-If an escaped pattern has no matches, and the `nonull` flag is set,
-then glob returns the pattern as-provided, rather than
-interpreting the character escapes. For example,
-`glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
-`"*a?"`. This is akin to setting the `nullglob` option in bash, except
-that it does not resolve escaped pattern characters.
-
-If brace expansion is not disabled, then it is performed before any
-other interpretation of the glob pattern. Thus, a pattern like
-`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
-**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
-checked for validity. Since those two are valid, matching proceeds.
-
-## Windows
-
-**Please only use forward-slashes in glob expressions.**
-
-Though windows uses either `/` or `\` as its path separator, only `/`
-characters are used by this glob implementation. You must use
-forward-slashes **only** in glob expressions. Back-slashes will always
-be interpreted as escape characters, not path separators.
-
-Results from absolute patterns such as `/foo/*` are mounted onto the
-root setting using `path.join`. On windows, this will by default result
-in `/foo/*` matching `C:\foo\bar.txt`.
-
-## Race Conditions
-
-Glob searching, by its very nature, is susceptible to race conditions,
-since it relies on directory walking and such.
-
-As a result, it is possible that a file that exists when glob looks for
-it may have been deleted or modified by the time it returns the result.
-
-As part of its internal implementation, this program caches all stat
-and readdir calls that it makes, in order to cut down on system
-overhead. However, this also makes it even more susceptible to races,
-especially if the cache or statCache objects are reused between glob
-calls.
-
-Users are thus advised not to use a glob result as a guarantee of
-filesystem state in the face of rapid changes. For the vast majority
-of operations, this is never a problem.