You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ka...@apache.org on 2014/05/16 03:31:36 UTC
git commit: CB-6668: Use for "plugin ls" when is
missing.
Repository: cordova-lib
Updated Branches:
refs/heads/master 8e13d11fd -> b9347eea3
CB-6668: Use <description> for "plugin ls" when <name> is missing.
Plugin listing looks like the output below. The last column is now
plugin.name || plugin.description
$ cordova plugin ls
com.test.plugman 0.1.1 "plug_test"
org.apache.cordova.file 1.1.0 "File"
org.apache.cordova.statusbar 0.1.3 "StatusBar"
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/b9347eea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/b9347eea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/b9347eea
Branch: refs/heads/master
Commit: b9347eea3e85602b961f1f5bd1769f242692967e
Parents: 8e13d11
Author: Mark Koudritsky <ka...@gmail.com>
Authored: Thu May 15 21:26:54 2014 -0400
Committer: Mark Koudritsky <ka...@gmail.com>
Committed: Thu May 15 21:26:54 2014 -0400
----------------------------------------------------------------------
cordova-lib/src/PluginInfo.js | 3 +++
cordova-lib/src/cordova/plugin.js | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/b9347eea/cordova-lib/src/PluginInfo.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/PluginInfo.js b/cordova-lib/src/PluginInfo.js
index c60430f..f8e6109 100644
--- a/cordova-lib/src/PluginInfo.js
+++ b/cordova-lib/src/PluginInfo.js
@@ -54,6 +54,9 @@ function PluginInfo(dirname) {
var nameTag = et.find('name');
self.name = nameTag ? nameTag.text : null;
+ var descTag = et.find('description');
+ self.description = descTag ? descTag.text : null;
+
self.deps = {};
et.findall('dependency').forEach(function (d) {
self.deps[d.attrib.id] = _.clone(d.attrib);
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/b9347eea/cordova-lib/src/cordova/plugin.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/plugin.js b/cordova-lib/src/cordova/plugin.js
index bd88386..ec60954 100644
--- a/cordova-lib/src/cordova/plugin.js
+++ b/cordova-lib/src/cordova/plugin.js
@@ -223,7 +223,7 @@ function list(projectRoot, hooks) {
p = plugins[i];
pluginsDict[p.id] = p;
pluginsList.push(p.id);
- txt = p.id + ' ' + p.version + ' "' + p.name + '"';
+ txt = p.id + ' ' + p.version + ' "' + (p.name || p.description) + '"';
lines.push(txt);
}
// Add warnings for deps with wrong versions.