cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject git commit: npm version 2.8.9. [CB-3461] Exposing parser modules to the platform command
Date Wed, 05 Jun 2013 22:12:09 GMT
Updated Branches:
  refs/heads/master2 de5a9fcd2 -> d4aa55833


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/d4aa5583
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/d4aa5583
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/d4aa5583

Branch: refs/heads/master2
Commit: d4aa55833c3e3957c3800057029c77eaaa54bf42
Parents: de5a9fc
Author: Fil Maj <maj.fil@gmail.com>
Authored: Wed Jun 5 15:12:02 2013 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Wed Jun 5 15:12:02 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/d4aa5583/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/d4aa5583/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/d4aa5583/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