You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2015/09/01 01:17:27 UTC

cordova-registry git commit: made registry read-only

Repository: cordova-registry
Updated Branches:
  refs/heads/master e5af2f58b -> d286c22ab


made registry read-only


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

Branch: refs/heads/master
Commit: d286c22abc3f8f0bb9120c69e1bb3f0cda78b0fc
Parents: e5af2f5
Author: Steve Gill <st...@gmail.com>
Authored: Mon Aug 31 16:17:35 2015 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Mon Aug 31 16:17:35 2015 -0700

----------------------------------------------------------------------
 updates.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry/blob/d286c22a/updates.js
----------------------------------------------------------------------
diff --git a/updates.js b/updates.js
index ab79481..3c76f3b 100644
--- a/updates.js
+++ b/updates.js
@@ -1,8 +1,11 @@
 var updates = exports
 
 updates.package = function (doc, req) {
+return error('The plugin reigstry has switcehd to read-only!, please publish your plugins to npm. Learn more at http://plugins.cordova.io/npm/authors.html.');
+/*
   require("monkeypatch").patch(Object, Date, Array, String)
 
+
 var tempbody = JSON.parse(req.body);
 //only allow npm client 1.3.4 to publish
 if(tempbody['_npmVersion']) {
@@ -20,9 +23,11 @@ if(tempbody['_npmVersion']) {
 }
   var semver = require("semver")
   var valid = require("valid")
+  */
   function error (reason) {
     return [{_id: "error: forbidden", forbidden:reason}, JSON.stringify({forbidden:reason})]
   }
+/*
 
   function ok (doc, message) {
     delete doc.mtime
@@ -143,5 +148,5 @@ if(tempbody['_npmVersion']) {
     if (!doc['dist-tags']) doc['dist-tags'] = {}
     if (latest) doc["dist-tags"].latest = latest
     return ok(doc, "created new entry")
-  }
+  }*/
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org