cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [15/22] git commit: npm version 2.8.9. [CB-3461] Exposing parser modules to the platform command
Date Fri, 07 Jun 2013 01:31:22 GMT
npm version 2.8.9. [CB-3461] Exposing parser modules to the platform command


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/6bdf8363
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/6bdf8363
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/6bdf8363

Branch: refs/heads/2.8.x
Commit: 6bdf8363b4269b9a7a5e3cb7e0d401a47879a44a
Parents: 2c4112e
Author: Fil Maj <maj.fil@gmail.com>
Authored: Wed Jun 5 15:12:02 2013 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu Jun 6 18:29:29 2013 -0700

----------------------------------------------------------------------
 package.json                      |    2 +-
 spec/cordova-cli/platform.spec.js |   11 +++++++++++
 src/platform.js                   |    5 +++++
 3 files changed, 17 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/6bdf8363/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 315374f..db47513 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova",
-  "version": "2.8.8",
+  "version": "2.8.9",
   "preferGlobal": "true",
   "description": "Cordova command line interface tool",
   "main": "cordova",

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/6bdf8363/spec/cordova-cli/platform.spec.js
----------------------------------------------------------------------
diff --git a/spec/cordova-cli/platform.spec.js b/spec/cordova-cli/platform.spec.js
index 2aa0177..61a6e7e 100644
--- a/spec/cordova-cli/platform.spec.js
+++ b/spec/cordova-cli/platform.spec.js
@@ -258,3 +258,14 @@ describe('platform.supports(name, callback)', function() {
         });
     });
 });
+
+describe('platform parsers', function() {
+    it('should be exposed on the platform module', function() {
+        for (var platform in platforms) {
+            expect(cordova.platform[platform]).toBeDefined();
+            for (var prop in platforms[platform]) {
+                expect(cordova.platform[platform][prop]).toBeDefined();
+            }
+        }
+    });
+});

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/6bdf8363/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index e60aa1f..c36b582 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -183,3 +183,8 @@ module.exports.supports = function(name, callback) {
         callback(e);
     });
 };
+
+// Expose the platform parsers on top of this command
+for (var p in platforms) {
+    module.exports[p] = platforms[p];
+}


Mime
View raw message