cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [06/16] git commit: Improve fix version method
Date Tue, 26 Nov 2013 02:02:18 GMT
Improve fix version method


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

Branch: refs/heads/master
Commit: 0364f0b6e0d77756e525758a4dccb15b72a69358
Parents: 36c3b3b
Author: SomaticIT <contact@somatic.fr>
Authored: Fri Nov 15 20:02:43 2013 +0100
Committer: SomaticIT <contact@somatic.fr>
Committed: Fri Nov 15 20:02:43 2013 +0100

----------------------------------------------------------------------
 src/metadata/windows8_parser.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0364f0b6/src/metadata/windows8_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/windows8_parser.js b/src/metadata/windows8_parser.js
index ef6f771..dce9fc7 100644
--- a/src/metadata/windows8_parser.js
+++ b/src/metadata/windows8_parser.js
@@ -79,7 +79,7 @@ module.exports.prototype = {
         //Get manifest file
         var manifest = xml.parseElementtreeSync(this.manifest_path);
 
-        var version = this.fixConfigVersion(config);
+        var version = this.fixConfigVersion(config.version());
         var name = config.name();
         var pkgName = config.packageName();
         var author = config.author();
@@ -283,8 +283,7 @@ module.exports.prototype = {
     },
 
     // Cordova default version format is not compatible with Windows 8
-    fixConfigVersion: function (config) {
-        var version = config.version();
+    fixConfigVersion: function (version) {
         if (version.match(/^\d+\.\d+\.\d+$/)) {
             return version.concat(".0");
         }


Mime
View raw message