cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [13/15] git commit: Update formatting to 2 spaces.
Date Thu, 14 Nov 2013 00:23:04 GMT
Update formatting to 2 spaces.


Project: http://git-wip-us.apache.org/repos/asf/cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-labs/commit/22b5a502
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/22b5a502
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/22b5a502

Branch: refs/heads/doclet
Commit: 22b5a50262cc2cf20076be35edcd49ac90422225
Parents: ccb91fa
Author: Michael Brooks <michael@michaelbrooks.ca>
Authored: Tue Nov 12 14:58:22 2013 -0800
Committer: Michael Brooks <michael@michaelbrooks.ca>
Committed: Tue Nov 12 14:58:22 2013 -0800

----------------------------------------------------------------------
 lib/cli/index.js       |  6 ++--
 lib/doclet/index.js    | 14 ++++----
 package.json           | 80 ++++++++++++++++++++++-----------------------
 spec/bin/index.spec.js | 18 +++++-----
 spec/cli/index.spec.js | 26 +++++++--------
 5 files changed, 72 insertions(+), 72 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/22b5a502/lib/cli/index.js
----------------------------------------------------------------------
diff --git a/lib/cli/index.js b/lib/cli/index.js
index 2dbb294..532bcf3 100644
--- a/lib/cli/index.js
+++ b/lib/cli/index.js
@@ -14,7 +14,7 @@ var optimist = require('optimist'),
  */
 
 module.exports.exec = function(argv) {
-    // parse the arguments and compile with optional path
-    argv = optimist.parse(argv);
-    doclet.compile(argv._[2]);
+  // parse the arguments and compile with optional path
+  argv = optimist.parse(argv);
+  doclet.compile(argv._[2]);
 };

http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/22b5a502/lib/doclet/index.js
----------------------------------------------------------------------
diff --git a/lib/doclet/index.js b/lib/doclet/index.js
index 6f7a917..06125a5 100644
--- a/lib/doclet/index.js
+++ b/lib/doclet/index.js
@@ -13,12 +13,12 @@ var dir = require('node-dir');
  */
 
 module.exports.compile = function(path) {
-    // default to current working directory
-    path = path || process.cwd();
+  // default to current working directory
+  path = path || process.cwd();
 
-    // each file
-    dir.paths(path, function(e, paths) {
-        // parse markdown
-        // render html
-    });
+  // each file
+  dir.paths(path, function(e, paths) {
+    // parse markdown
+    // render html
+  });
 };

http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/22b5a502/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index b98c9f1..838799d 100644
--- a/package.json
+++ b/package.json
@@ -1,42 +1,42 @@
 {
-    "name": "doclet",
-    "description": "Your modular documentation system.",
-    "version": "0.0.1",
-    "homepage": "https://github.com/apache/cordova-labs/tree/doclet",
-    "repository": {
-        "type": "git",
-        "url": "https://git-wip-us.apache.org/repos/asf/cordova-labs.git"
-    },
-    "keywords": [
-        "docs",
-        "documentation"
-    ],
-    "preferGlobal": "true",
-    "main": "./lib/doclet/index.js",
-    "bin": {
-        "doclet": "./bin/index.js"
-    },
-    "scripts": {
-        "test": "jasmine-node --color spec"
-    },
-    "engines": {
-        "node": ">=0.10.0"
-    },
-    "dependencies": {
-        "node-dir": "0.1.5",
-        "optimist": "0.6.0",
-        "shelljs": "0.2.6"
-    },
-    "devDependencies": {
-        "jasmine-node": "1.8.0"
-    },
-    "optionalDependencies": {
-    },
-    "author": {
-        "name": "Michael Brooks",
-        "email": "michael@michaelbrooks.ca",
-        "url": "http://michaelbrooks.ca/"
-    },
-    "contributors": [
-    ]
+  "name": "doclet",
+  "description": "Your modular documentation system.",
+  "version": "0.0.1",
+  "homepage": "https://github.com/apache/cordova-labs/tree/doclet",
+  "repository": {
+    "type": "git",
+    "url": "https://git-wip-us.apache.org/repos/asf/cordova-labs.git"
+  },
+  "keywords": [
+    "docs",
+    "documentation"
+  ],
+  "preferGlobal": "true",
+  "main": "./lib/doclet/index.js",
+  "bin": {
+    "doclet": "./bin/index.js"
+  },
+  "scripts": {
+    "test": "jasmine-node --color spec"
+  },
+  "engines": {
+    "node": ">=0.10.0"
+  },
+  "dependencies": {
+    "node-dir": "0.1.5",
+    "optimist": "0.6.0",
+    "shelljs": "0.2.6"
+  },
+  "devDependencies": {
+    "jasmine-node": "1.8.0"
+  },
+  "optionalDependencies": {
+  },
+  "author": {
+    "name": "Michael Brooks",
+    "email": "michael@michaelbrooks.ca",
+    "url": "http://michaelbrooks.ca/"
+  },
+  "contributors": [
+  ]
 }

http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/22b5a502/spec/bin/index.spec.js
----------------------------------------------------------------------
diff --git a/spec/bin/index.spec.js b/spec/bin/index.spec.js
index 8e12ec5..411be3b 100644
--- a/spec/bin/index.spec.js
+++ b/spec/bin/index.spec.js
@@ -12,14 +12,14 @@ var shell = require('shelljs'),
  */
 
 describe('$ doclet [options] <path>', function() {
-    beforeEach(function() {
-        bin = 'node ' + path.resolve(path.join(__dirname, '..', '..', 'bin', 'index.js'));
-        options = { silent: true };
-        spyOn(process.stdout, 'write');
-    });
+  beforeEach(function() {
+    bin = 'node ' + path.resolve(path.join(__dirname, '..', '..', 'bin', 'index.js'));
+    options = { silent: true };
+    spyOn(process.stdout, 'write');
+  });
 
-    it('should have exit code 0', function() {
-        var process = shell.exec(bin, options);
-        expect(process.code).toEqual(0);
-    });
+  it('should have exit code 0', function() {
+    var process = shell.exec(bin, options);
+    expect(process.code).toEqual(0);
+  });
 });

http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/22b5a502/spec/cli/index.spec.js
----------------------------------------------------------------------
diff --git a/spec/cli/index.spec.js b/spec/cli/index.spec.js
index a664128..09390d0 100644
--- a/spec/cli/index.spec.js
+++ b/spec/cli/index.spec.js
@@ -11,19 +11,19 @@ var cli = require('../../lib/cli'),
  */
 
 describe('cli.exec(argv)', function() {
-    beforeEach(function() {
-        argv = ['node', '/usr/local/bin/doclet'];
-        spyOn(doclet, 'compile');
-    });
+  beforeEach(function() {
+    argv = ['node', '/usr/local/bin/doclet'];
+    spyOn(doclet, 'compile');
+  });
 
-    it('should call doclet.compile', function() {
-        cli.exec(argv);
-        expect(doclet.compile).toHaveBeenCalledWith(undefined);
-    });
+  it('should call doclet.compile', function() {
+    cli.exec(argv);
+    expect(doclet.compile).toHaveBeenCalledWith(undefined);
+  });
 
-    it('should support a path argument', function() {
-        argv.push('/some/path');
-        cli.exec(argv);
-        expect(doclet.compile).toHaveBeenCalledWith('/some/path');
-    });
+  it('should support a path argument', function() {
+    argv.push('/some/path');
+    cli.exec(argv);
+    expect(doclet.compile).toHaveBeenCalledWith('/some/path');
+  });
 });


Mime
View raw message