Browse files

Added .gitignore file.

  • Loading branch information...
1 parent bdce450 commit cc9a4ad8401f0c87d24517046424736daf442ad7 @sax1johno committed Apr 23, 2013
View
2 .c9revisions/LICENSE.c9save
@@ -1,2 +0,0 @@
-{"ts":1360024619188,"silentsave":true,"restoring":false,"patch":[[]],"length":0}
-{"contributors":[],"silentsave":false,"ts":1360024687041,"patch":[[{"diffs":[[1,"# Mozilla Public License, version 2.0\n1. Definitions\n1.1. “Contributor”\nmeans each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.\n\n1.2. “Contributor Version”\nmeans the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor’s Contribution.\n\n1.3. “Contribution”\nmeans Covered Software of a particular Contributor.\n\n1.4. “Covered Software”\nmeans Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.\n\n1.5. “Incompatible With Secondary Licenses”\nmeans\n\nthat the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or\n\nthat the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.\n\n1.6. “Executable Form”\nmeans any form of the work other than Source Code Form.\n\n1.7. “Larger Work”\nmeans a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.\n\n1.8. “License”\nmeans this document.\n\n1.9. “Licensable”\nmeans having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.\n\n1.10. “Modifications”\nmeans any of the following:\n\nany file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or\n\nany new file in Source Code Form that contains any Covered Software.\n\n1.11. “Patent Claims” of a Contributor\nmeans any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.\n\n1.12. “Secondary License”\nmeans either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.\n\n1.13. “Source Code Form”\nmeans the form of the work preferred for making modifications.\n\n1.14. “You” (or “Your”)\nmeans an individual or a legal entity exercising rights under this License. For legal entities, “You” includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.\n\n2. License Grants and Conditions\n2.1. Grants\nEach Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:\n\nunder intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and\n\nunder Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.\n\n2.2. Effective Date\nThe licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.\n\n2.3. Limitations on Grant Scope\nThe licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:\n\nfor any code that a Contributor has removed from Covered Software; or\n\nfor infringements caused by: (i) Your and any other third party’s modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or\n\nunder Patent Claims infringed by Covered Software in the absence of its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\nNo Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).\n\n2.5. Representation\nEach Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\nThis License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.\n\n2.7. Conditions\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.\n\n3. Responsibilities\n3.1. Distribution of Source Form\nAll distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients’ rights in the Source Code Form.\n\n3.2. Distribution of Executable Form\nIf You distribute Covered Software in Executable Form then:\n\nsuch Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and\n\nYou may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\nYou may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s).\n\n3.4. Notices\nYou may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\nYou may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\nIf it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.\n\n5. Termination\n5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.\n\n6. Disclaimer of Warranty\nCovered Software is provided under this License on an “as is” basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of any Covered Software is authorized under this License except under this disclaimer.\n\n7. Limitation of Liability\nUnder no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages. This limitation of liability shall not apply to liability for death or personal injury resulting from such party’s negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.\n\n8. Litigation\nAny litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party’s ability to bring cross-claims or counter-claims.\n\n9. Miscellaneous\nThis License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n10.1. New Versions\nMozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.\n\n10.2. Effect of New Versions\nYou may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.\n\n10.3. Modified Versions\nIf you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses\nIf You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\nThis Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - “Incompatible With Secondary Licenses” Notice\nThis Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.\n"]],"start1":0,"start2":0,"length1":0,"length2":14758}]],"length":14758,"saved":false}
View
2 .c9revisions/README.md.c9save
@@ -1,2 +0,0 @@
-{"ts":1360024688189,"silentsave":true,"restoring":false,"patch":[[{"diffs":[[1,"mongoose-schema-registry\n========================\n\nThis allows users to register schemas without creating a mongoose model. This allows extension of schemas later on prior to registering those models."]],"start1":0,"start2":0,"length1":0,"length2":201}]],"length":201}
-{"contributors":[],"silentsave":false,"ts":1361255713824,"patch":[[{"diffs":[[-1,"mongoose-schema"],[1,"ghiraldi-plugin"],[0,"-reg"]],"start1":0,"start2":0,"length1":19,"length2":19},{"diffs":[[0,"\n\nTh"],[-1,"is allows users to register schemas without creating a mongoose model. This allows extension of schemas later on prior to registering those model"],[1,"e plugin registry allows for the registration of plugins into a central store and provides access to plugin\nproperties for other controllers. This is particularly useful for things like the admin core plugin, which\nuses the registry to build the admin views for controller"],[0,"s."]],"start1":49,"start2":49,"length1":152,"length2":279}]],"length":328,"saved":false}
View
19 .c9revisions/lib/plugin.js.c9save
@@ -1,19 +0,0 @@
-{"ts":1361250596771,"silentsave":true,"restoring":false,"patch":[[]],"length":0}
-{"ts":1361251170871,"patch":[[{"diffs":[[1,"\nvar Plugin = {};\n\nPlugin.views = [];\n\n"]],"start1":0,"start2":0,"length1":0,"length2":39}]],"length":39,"saved":false}
-{"ts":1361251178342,"patch":[[{"diffs":[[-1,"\n"],[0,"var Plug"]],"start1":0,"start2":0,"length1":9,"length2":8},{"diffs":[[0,"ws = [];"],[-1,"\n\n"]],"start1":28,"start2":28,"length1":10,"length2":8}]],"length":36,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1361252921605,"patch":[[{"diffs":[[0,"lugin = "],[1,"function()"],[0,"{};\n\nPlu"]],"start1":5,"start2":5,"length1":16,"length2":26},{"diffs":[[0,"ws = [];"],[1,"\n\nmodule.exports = Plugin;"]],"start1":38,"start2":38,"length1":8,"length2":34}]],"length":72,"saved":false}
-{"ts":1361252980349,"patch":[[{"diffs":[[0,"\nPlugin."],[1,"prototype."],[0,"views = "]],"start1":27,"start2":27,"length1":16,"length2":26}]],"length":82,"saved":false}
-{"ts":1361253041540,"patch":[[{"diffs":[[0,"unction("],[1,"properties"],[0,"){};\n\nPl"]],"start1":14,"start2":14,"length1":16,"length2":26}]],"length":92,"saved":false}
-{"ts":1361253047593,"patch":[[{"diffs":[[0,"gin."],[-1,"prototype."],[0,"view"]],"start1":41,"start2":41,"length1":18,"length2":8}]],"length":82,"saved":false}
-{"ts":1361254268108,"patch":[[{"diffs":[[-1,"var Plugin = function(properties){};\n\nPlugin.views = [];"],[1,"function Plugin (obj, options) {\n if (!(this instanceof Plugin))\n return new Plugin(obj, options);\n}"],[0,"\n\nmo"]],"start1":0,"start2":0,"length1":60,"length2":108}]],"length":130,"saved":false}
-{"ts":1361254278924,"patch":[[{"diffs":[[0,"tions);\n"],[1," \n this.views = [];\n"],[0,"}\n\nmodul"]],"start1":95,"start2":95,"length1":16,"length2":42}]],"length":156,"saved":false}
-{"ts":1361254311865,"patch":[[{"diffs":[[0,"s = [];\n"],[1," \n if (obj) {\n this.add(obj);\n }\n\n"],[0,"}\n\nmodul"]],"start1":121,"start2":121,"length1":16,"length2":66}]],"length":206,"saved":false}
-{"ts":1361254731553,"patch":[[{"diffs":[[0,"his."],[-1,"add(obj"],[1,"views.push(obj.views"],[0,");\n "]],"start1":158,"start2":158,"length1":15,"length2":28}]],"length":219,"saved":false}
-{"ts":1361255139587,"patch":[[{"diffs":[[1,"var _ = require('underscore');\n\n"],[0,"function"]],"start1":0,"start2":0,"length1":8,"length2":40},{"diffs":[[0,"(obj) {\n"],[1," if (!_.isUndefined(obj.views) && !_.isNull(obj.views)) {\n if (_.isArray(obj.views)) {\n obj.views.forEach(function(view) {\n this.views.push(obj.views); \n });\n } \n }\n"],[0," "]],"start1":173,"start2":173,"length1":16,"length2":265}]],"length":500,"saved":false}
-{"ts":1361255141077,"patch":[[{"diffs":[[0," }\n"],[-1," this.views.push(obj.views);\n"],[0," "]],"start1":426,"start2":426,"length1":44,"length2":8}]],"length":464,"saved":false}
-{"ts":1361255168765,"patch":[[{"diffs":[[0," "],[-1,"if (!_.isUndefined(obj.views) && !_.isNull(obj.views)) {\n if (_.isArray(obj.views)) {\n obj.views.forEach(function(view) {\n this.views.push(obj.views); \n });\n } \n }"],[1,"this.views = obj.views;"],[0,"\n "]],"start1":185,"start2":185,"length1":248,"length2":31}]],"length":247,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1361578646277,"patch":[[{"diffs":[[0,"xports ="],[1," new"],[0," Plugin"],[1,"()"],[0,";"]],"start1":231,"start2":231,"length1":16,"length2":22}]],"length":253,"saved":false}
-{"ts":1361578660540,"patch":[[{"diffs":[[0,"ts ="],[-1," new"],[0," Plugin"],[-1,"()"],[0,";"]],"start1":235,"start2":235,"length1":18,"length2":12}]],"length":247,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1361737952552,"patch":[[{"diffs":[[0,";\n }\n"],[-1,"\n"],[0,"}\n\nmodul"]],"start1":211,"start2":211,"length1":17,"length2":16}]],"length":246,"saved":false}
-{"ts":1361740895999,"patch":[[{"diffs":[[0,"s = "],[-1,"[]"],[1,"{}"],[0,";\n "]],"start1":153,"start2":153,"length1":10,"length2":10}]],"length":246,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1366739973698,"patch":[[{"diffs":[[0,"re')"],[-1,";\n\nfunction Plugin (obj, options) {\n if (!(this instanceof Plugin))\n return new Plugin(obj, options);\n \n this.views = {};\n \n if (obj) {\n this.views = obj.views;\n }"],[1,",\n Template = require('./template');\n\n/** \n * A Plugin represents a separate piece of functionality in a Ghiraldi app. Ghiraldi\n * apps are generally composed of a number of functional plugins.\n * \n * Plugins handle, among other things, the rendering of views.\n **/\nfunction Plugin (obj, options) {\n if (!(this instanceof Plugin))\n return new Plugin(obj, options);\n \n this.views = {};\n this.baseDir = null;\n this.fileName = null;\n this.name = null;\n \n // Contains a cache of the rendered views. This eliminates the need for re-building the views\n // on every call.\n this.viewCache = {};\n \n if (obj) {\n this.views = obj.views;\n }\n \n this.getView = function(viewName) {\n if (!_.isUndefined(this.views[viewName]) && !_.isNull(this.views[viewName])) {\n if (!_.isUndefined(this.viewCache[viewName]) && !_.isNull(this.viewCache[viewName])) {\n return this.viewCache[viewName];\n } else {\n this.viewCache[viewName] = new Template(this.views[viewName].uri);\n }\n } else {\n throw \"No view found with name \" + viewName + \" in this plugin\";\n }\n };\n \n this.get = function() {\n if (!_.isNull(this.basedir) \n && !_.isNull(this.requireFile))\n return require(this.baseDir + '/' + this.fileName);\n return null;\n };\n \n /**\n * Get a module from within this plugin's base directory.\n * @param modulePath the path to the module. (including the beginning /)\n * @return the complete module path which can be passed to \"require\"\n **/\n this.getModule = function(path) {\n return this.baseDir + path;\n }\n "],[0,"\n}\n\n"]],"start1":25,"start2":25,"length1":197,"length2":1722}]],"length":1771,"saved":false}
View
53 .c9revisions/lib/plugin_registry.js.c9save
@@ -1,53 +0,0 @@
-{"ts":1360025264197,"silentsave":true,"restoring":false,"patch":[[]],"length":0}
-{"contributors":[],"silentsave":false,"ts":1360025271573,"patch":[[{"diffs":[[1,"var mongoose = require('mongoose');\n\n"]],"start1":0,"start2":0,"length1":0,"length2":37}]],"length":37,"saved":false}
-{"ts":1360025331395,"patch":[[{"diffs":[[0,"ose');\n\n"],[1,"var mongooseRegistry = {};\n\nmongooseRegistry.schemas = [];\n"]],"start1":29,"start2":29,"length1":8,"length2":67}]],"length":96,"saved":false}
-{"ts":1360025337228,"patch":[[{"diffs":[[0,"s = "],[-1,"[]"],[1,"{}"],[0,";\n"],[1,"\n"]],"start1":88,"start2":88,"length1":8,"length2":9}]],"length":97,"saved":false}
-{"ts":1360025922886,"patch":[[{"diffs":[[0,"egistry."],[1,"prototype."],[0,"schemas "]],"start1":74,"start2":74,"length1":16,"length2":26},{"diffs":[[0,".schemas = {};\n\n"],[1,"mongooseRegistry.prototype.add = function(schema) {\n if ()\n}"]],"start1":91,"start2":91,"length1":16,"length2":79}]],"length":170,"saved":false}
-{"ts":1360026029121,"patch":[[{"diffs":[[0,"egistry."],[-1,"prototype."],[0,"schemas "]],"start1":74,"start2":74,"length1":26,"length2":16}]],"length":160,"saved":false}
-{"ts":1360026374905,"patch":[[{"diffs":[[0,"');\n"],[-1,"\n"],[0,"var "],[-1,"mongooseRegistry = {};\n\nmongooseRegistry.schemas = {};"],[1,"_ = require('underscore');\n\nfunction MongooseRegistry() {\n this.schemas = {};\n \n /** \n * Add a new schema to the schema registry. If a tag is re-used, the previous schema\n * is overwritten.\n * @param schema the schema to add.\n * @param tag the tag for this schema (used to retrieve the schema)\n * @return the added schema.\n **/\n this.add = function(schema, tag) {\n this.schemas.tag = schema;\n }\n}\n"],[0,"\n\nmo"]],"start1":32,"start2":32,"length1":67,"length2":456}]],"length":549,"saved":false}
-{"ts":1360026433130,"patch":[[{"diffs":[[0,";\n }\n"],[1," \n this.remove = function(tag) {\n delete this.schemas.tag;\n }\n"],[0,"}\n\n\nmong"]],"start1":474,"start2":474,"length1":16,"length2":94}]],"length":627,"saved":false}
-{"ts":1360026456191,"patch":[[{"diffs":[[0,"try() {\n "],[-1,"this."],[1,"var "],[0,"schemas = {}"]],"start1":90,"start2":90,"length1":29,"length2":28},{"diffs":[[0," }\n"],[-1,"}\n\n\nmongooseRegistry.prototype.add = function(schema) {\n if ()\n}"],[1," \n this.\n}\n\n"]],"start1":555,"start2":555,"length1":71,"length2":22}]],"length":577,"saved":false}
-{"ts":1360026467140,"patch":[[{"diffs":[[0," "],[-1,"this."],[0,"schemas."]],"start1":440,"start2":440,"length1":21,"length2":16},{"diffs":[[0," delete "],[-1,"this."],[0,"schemas."]],"start1":522,"start2":522,"length1":21,"length2":16}]],"length":567,"saved":false}
-{"ts":1360026504590,"patch":[[{"diffs":[[0," this."],[1,"get = function(tag) {\n return schemas['tag']\n }"],[0,"\n}\n\n"]],"start1":555,"start2":555,"length1":12,"length2":69}]],"length":624,"saved":false}
-{"ts":1360026518765,"patch":[[{"diffs":[[0," schemas"],[-1,"."],[1,"["],[0,"tag"],[1,"]"],[0," = schem"]],"start1":447,"start2":447,"length1":20,"length2":21},{"diffs":[[0,"emas"],[-1,"."],[1,"["],[0,"tag"],[1,"]"],[0,";\n "]],"start1":534,"start2":534,"length1":12,"length2":13},{"diffs":[[0,"mas["],[-1,"'"],[0,"tag"],[-1,"'"],[0,"]\n "]],"start1":606,"start2":606,"length1":13,"length2":11}]],"length":624,"saved":false}
-{"ts":1360026534574,"patch":[[{"diffs":[[0,"s = {};\n"],[1," var singleton = this;\n"],[0," \n "]],"start1":112,"start2":112,"length1":16,"length2":42}]],"length":650,"saved":false}
-{"ts":1360026603895,"patch":[[{"diffs":[[0,"{};\n"],[1,"\n"],[0," "],[-1,"var singleton"],[1,"if (arguments.callee._singletonInstance) {\n return arguments.callee._singletonInstance;\n }\n arguments.callee._singletonInstance"],[0," = t"]],"start1":116,"start2":116,"length1":25,"length2":153}]],"length":778,"saved":false}
-{"ts":1360026618843,"patch":[[{"diffs":[[0," = {};\n\n"],[1," /* This class is a singleton */\n"],[0," if ("]],"start1":113,"start2":113,"length1":16,"length2":52}]],"length":814,"saved":false}
-{"ts":1360026646678,"patch":[[{"diffs":[[0," }\n}\n\n"],[1,"var mongooseRegistry = new MongooseRegistry();\n"]],"start1":806,"start2":806,"length1":8,"length2":55}]],"length":861,"saved":false}
-{"ts":1360026657818,"patch":[[{"diffs":[[0,"chema;\n }"],[1,";"],[0,"\n \n th"]],"start1":654,"start2":654,"length1":24,"length2":25},{"diffs":[[0,"[tag];\n }"],[1,";"],[0,"\n \n th"]],"start1":729,"start2":729,"length1":24,"length2":25},{"diffs":[[0,"mas[tag]"],[1,";"],[0,"\n }"],[1,";"],[0,"\n}\n\nvar "]],"start1":798,"start2":798,"length1":22,"length2":24}]],"length":865,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360026778862,"patch":[[{"diffs":[[0,"stry();\n"],[1,"\nmodule.exports = mongooseRegistry;"]],"start1":857,"start2":857,"length1":8,"length2":43}]],"length":900,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360047613671,"patch":[[{"diffs":[[0,"ema, tag"],[1,", fn"],[0,") {\n "]],"start1":618,"start2":618,"length1":16,"length2":20},{"diffs":[[0," "],[1,"fn("],[0,"schemas["]],"start1":634,"start2":634,"length1":16,"length2":19},{"diffs":[[0,"= schema"],[1,")"],[0,";\n };"]],"start1":658,"start2":658,"length1":16,"length2":17},{"diffs":[[0,"e = function(tag"],[1,", fn"],[0,") {\n dele"]],"start1":695,"start2":695,"length1":32,"length2":36},{"diffs":[[0," "],[1,"fn("],[0,"delete s"]],"start1":719,"start2":719,"length1":16,"length2":19},{"diffs":[[0,"ete schemas[tag]"],[1,")"],[0,";\n };\n \n "]],"start1":733,"start2":733,"length1":32,"length2":33},{"diffs":[[0,"tion(tag"],[1,", fn"],[0,") {\n "]],"start1":783,"start2":783,"length1":16,"length2":20},{"diffs":[[0," "],[-1,"return schemas[tag]"],[1,"fn(schemas[tag]);\n };\n \n /** For testing purposes. Will probably go away soon **/\n this.log = function(fn) {\n fn(schemas);\n };\n \n this.getKeys = function(tag, fn) {\n fn(_.keys(schemas))"],[0,";\n }"],[-1,";"],[0,"\n}\n\n"]],"start1":803,"start2":803,"length1":35,"length2":236}]],"length":1121,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360255506008,"patch":[[{"diffs":[[0,"se')"],[-1,";\nvar"],[1,",\n "],[0," _ ="]],"start1":30,"start2":30,"length1":13,"length2":13},{"diffs":[[0,"rscore')"],[1,",\n EventEmitter = require('events').EventEmitter"],[0,";\n\nfunct"]],"start1":57,"start2":57,"length1":16,"length2":67},{"diffs":[[0," this;\n \n"],[1," EventEmitter.call(this);\n \n"],[0," /** \n "]],"start1":354,"start2":354,"length1":24,"length2":58},{"diffs":[[0,"Keys = function("],[-1,"tag, "],[0,"fn) {\n fn"]],"start1":1059,"start2":1059,"length1":37,"length2":32}]],"length":1201,"saved":false}
-{"ts":1360255536510,"patch":[[{"diffs":[[0," }\n}\n\n"],[1,"MongooseRegistry.prototype.__proto__ = EventEmitter.prototype;\n\n"],[0,"var mong"]],"start1":1111,"start2":1111,"length1":16,"length2":80}]],"length":1265,"saved":false}
-{"ts":1360255562395,"patch":[[{"diffs":[[0,"e;\n\n"],[-1,"var mongooseRegistry = new MongooseRegistry();\n\n"],[0,"modu"]],"start1":1179,"start2":1179,"length1":56,"length2":8},{"diffs":[[0,"ports = "],[-1,"m"],[1,"new M"],[0,"ongooseR"]],"start1":1192,"start2":1192,"length1":17,"length2":21},{"diffs":[[0,"Registry"],[1,"()"],[0,";"]],"start1":1212,"start2":1212,"length1":9,"length2":11}]],"length":1223,"saved":false}
-{"ts":1360255622800,"patch":[[{"diffs":[[0,"ema, tag, fn) {\n"],[1," this.trigger('add'); \n"],[0," fn(schem"]],"start1":703,"start2":703,"length1":32,"length2":69},{"diffs":[[0,"tion(tag, fn) {\n"],[1," this.trigger('remove'); \n"],[0," fn(delet"]],"start1":825,"start2":825,"length1":32,"length2":72}]],"length":1300,"saved":false}
-{"ts":1360255640731,"patch":[[{"diffs":[[0,"tion(tag, fn) {\n"],[1," this.trigger('get', schemas[tag]); \n"],[0," fn(schem"]],"start1":945,"start2":945,"length1":32,"length2":83}]],"length":1351,"saved":false}
-{"ts":1360255652164,"patch":[[{"diffs":[[0,"'remove'"],[1,", schemas[tag]"],[0,"); "]],"start1":862,"start2":862,"length1":16,"length2":30}]],"length":1365,"saved":false}
-{"ts":1360255665451,"patch":[[{"diffs":[[0,"er('add'"],[1,", tag, schema"],[0,"); "]],"start1":737,"start2":737,"length1":16,"length2":29}]],"length":1378,"saved":false}
-{"ts":1360255671127,"patch":[[{"diffs":[[0,"schema);"],[-1," "],[0,"\n "]],"start1":752,"start2":752,"length1":24,"length2":16}]],"length":1370,"saved":false}
-{"ts":1360255687086,"patch":[[{"diffs":[[0,"tion(tag, fn) {\n"],[1," fn(delete schemas[tag]);\n"],[0," this.tri"]],"start1":830,"start2":830,"length1":32,"length2":65},{"diffs":[[0," "],[-1,"\n"],[0," "],[-1,"fn(delete schemas[tag]);"],[0,"\n "]],"start1":928,"start2":928,"length1":41,"length2":16}]],"length":1378,"saved":false}
-{"ts":1360255693125,"patch":[[{"diffs":[[0,"tion(tag, fn) {\n"],[1," fn(schemas[tag]);\n"],[0," this.tri"]],"start1":972,"start2":972,"length1":32,"length2":58},{"diffs":[[0," \n"],[-1," fn(schemas[tag]);\n"],[0," "]],"start1":1061,"start2":1061,"length1":34,"length2":8}]],"length":1378,"saved":false}
-{"ts":1360255694999,"patch":[[{"diffs":[[0,"]);\n"],[-1," this.trigger('get', schemas[tag]); \n"],[0," "]],"start1":1010,"start2":1010,"length1":59,"length2":8}]],"length":1327,"saved":false}
-{"ts":1360255703965,"patch":[[{"diffs":[[0,"ema, tag, fn) {\n"],[1," fn(schemas[tag] = schema);\n"],[0," this.tri"]],"start1":703,"start2":703,"length1":32,"length2":67},{"diffs":[[0,"ma);"],[-1,"\n"],[0," "],[-1,"fn(schemas[tag] = schema);"],[0,"\n "]],"start1":791,"start2":791,"length1":43,"length2":16}]],"length":1335,"saved":false}
-{"ts":1360256095568,"patch":[[{"diffs":[[0," this."],[-1,"trigger"],[1,"emit"],[0,"('remove"]],"start1":892,"start2":892,"length1":23,"length2":20}]],"length":1332,"saved":false}
-{"ts":1360256100654,"patch":[[{"diffs":[[0,"his."],[-1,"trigger"],[1,"emit"],[0,"('ad"]],"start1":763,"start2":763,"length1":15,"length2":12}]],"length":1329,"saved":false}
-{"ts":1360256156660,"patch":[[{"diffs":[[0,"ema, tag, fn) {\n"],[1," if (!_.isUndefined(fn) && !_.isNull(fn)) {\n "],[0," fn(schem"]],"start1":703,"start2":703,"length1":32,"length2":87},{"diffs":[[0,"schema);"],[1," \n }"],[0,"\n "]],"start1":800,"start2":800,"length1":16,"length2":38}]],"length":1406,"saved":false}
-{"ts":1360256169832,"patch":[[{"diffs":[[0,"schema);"],[-1," "],[1,"\n } else {\n schemas[tag] = schema;"],[0,"\n "]],"start1":800,"start2":800,"length1":28,"length2":68}]],"length":1446,"saved":false}
-{"ts":1360256209583,"patch":[[{"diffs":[[0,"Null(fn)"],[1," && _.isFunction(fn)"],[0,") {\n "]],"start1":758,"start2":758,"length1":16,"length2":36},{"diffs":[[0,"tion(tag, fn) {\n"],[1," if (!_.isUndefined(fn) && !_.isNull(fn)) {\n "],[0," fn(delet"]],"start1":972,"start2":972,"length1":32,"length2":87},{"diffs":[[0,"hemas[tag]);"],[1," \n }"],[0,"\n thi"]],"start1":1063,"start2":1063,"length1":24,"length2":46}]],"length":1543,"saved":false}
-{"ts":1360256241910,"patch":[[{"diffs":[[0,"_.isNull(fn)"],[1," && _.isFunction(fn)"],[0,") {\n "]],"start1":1023,"start2":1023,"length1":24,"length2":44},{"diffs":[[0," \n }"],[1," "],[0,"\n this.em"]],"start1":1101,"start2":1101,"length1":32,"length2":33}]],"length":1564,"saved":false}
-{"ts":1360256247197,"patch":[[{"diffs":[[0," } "],[1,"else {\n delete schemas[tag];\n }"],[0,"\n "]],"start1":1110,"start2":1110,"length1":16,"length2":65}]],"length":1613,"saved":false}
-{"ts":1360256302564,"patch":[[{"diffs":[[0,"tion(tag, fn) {\n"],[1," var deleted = schemas[tag];\n"],[0," if (!_.i"]],"start1":972,"start2":972,"length1":32,"length2":68}]],"length":1649,"saved":false}
-{"ts":1360256308494,"patch":[[{"diffs":[[0,"e', "],[-1,"schemas[tag]); "],[1,"deleted);"],[0,"\n "]],"start1":1228,"start2":1228,"length1":38,"length2":17}]],"length":1628,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360557974986,"patch":[[{"diffs":[[0,"};\n \n "],[-1,""],[0,""],[1,"/**\n * Remove a schema from the schema registry.\n * @param tag the tag for the schema to be removed\n * @return true if the delete was successful, false otherwise.\n **/\n "],[0,"this.remove "]],"start1":942,"start2":942,"length1":24,"length2":212},{"diffs":[[0," "],[-1,""],[0,""],[1,"return "],[0,"delete s"]],"start1":1353,"start2":1353,"length1":16,"length2":23},{"diffs":[[0," "],[-1,"fn(schemas[tag]);\n };\n \n /** For testing purposes. Will probably go away soon **/\n this.log = function(fn) {\n fn(schemas);\n };\n \n this.getKeys = function(fn) {\n fn(_.keys(schemas)"],[1,"if (!_.isUndefined(fn) && !_.isNull(fn)) {\n fn(schemas[tag]);\n }\n return schemas[tag];\n };\n \n /** For testing purposes. Will probably go away soon **/\n this.log = function(fn) {\n if (!_.isUndefined(fn) && !_.isNull(fn)) {\n fn(schemas);\n }\n return schemas;\n };\n \n this.getKeys = function(fn) {\n console.log(\"keys = \" + JSON.stringify(_.keys(schemas)));\n if (!_.isUndefined(fn) && !_.isNull(fn)) {\n fn(_.keys(schemas)); \n }\n return _.keys(schemas"],[0,");\n "]],"start1":1488,"start2":1488,"length1":223,"length2":581}]],"length":2181,"saved":false}
-{"ts":1360558508446,"patch":[[{"diffs":[[0,"ion("],[1,"tag, "],[0,"schema,"],[-1," tag,"],[0," fn)"]],"start1":696,"start2":696,"length1":20,"length2":20}]],"length":2181,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360619672703,"patch":[[{"diffs":[[0," "],[-1,"console.log(\"keys = \" + JSON.stringify(_.keys(schemas)));"],[1,"var keys = _.keys(schemas);\n if (!_.isArray(keys)) {\n keys = [keys];\n }"],[0,"\n "]],"start1":1868,"start2":1868,"length1":65,"length2":104},{"diffs":[[0," fn("],[-1,"_."],[0,"keys"],[-1,"(schemas)"],[0,"); "],[-1," "],[-1," "],[0,"\n "]],"start1":2031,"start2":2031,"length1":37,"length2":20},{"diffs":[[0," return "],[-1,"_."],[0,"keys"],[-1,"(schemas)"],[0,";\n }\n"]],"start1":2065,"start2":2065,"length1":31,"length2":20}]],"length":2192,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360716950650,"patch":[[{"diffs":[[0,"tEmitter"],[-1,";\n"],[1,",\n Schema = mongoose.Schema;\n "],[0,"\nfunctio"]],"start1":108,"start2":108,"length1":18,"length2":52},{"diffs":[[0,"tion(tag, fn) {\n"],[1," if (_.isUndefined(schemas[tag])) {\n schemas[tag] = new Schema({});\n }\n"],[0," if (!_.i"]],"start1":1502,"start2":1502,"length1":32,"length2":128}]],"length":2322,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1361250770685,"patch":[[{"diffs":[[0," "],[-1,"Schema = mongoose.Schema"],[1,"plugin = require('./plugin')"],[0,";\n "]],"start1":118,"start2":118,"length1":32,"length2":36},{"diffs":[[0,"unction "],[-1,"Mongoose"],[1,"Plugin"],[0,"Registry"]],"start1":158,"start2":158,"length1":24,"length2":22},{"diffs":[[0," var "],[-1,"schema"],[1,"plugin"],[0,"s = {};\n"]],"start1":185,"start2":185,"length1":22,"length2":22}]],"length":2324,"saved":false}
-{"ts":1361250791805,"patch":[[{"diffs":[[0,"on(tag, "],[-1,"schema"],[1,"plugin"],[0,", fn) {\n"]],"start1":733,"start2":733,"length1":22,"length2":22},{"diffs":[[0," fn("],[-1,"schema"],[1,"plugin"],[0,"s[tag] = sch"]],"start1":829,"start2":829,"length1":30,"length2":30},{"diffs":[[0,"[tag] = "],[-1,"schema"],[1,"plugin"],[0,");\n "]],"start1":848,"start2":848,"length1":22,"length2":22},{"diffs":[[0,"e {\n "],[-1,"schema"],[1,"plugin"],[0,"s[tag] = schema;"]],"start1":878,"start2":878,"length1":38,"length2":38},{"diffs":[[0,"[tag] = "],[-1,"schema"],[1,"plugin"],[0,";\n "]],"start1":901,"start2":901,"length1":22,"length2":22},{"diffs":[[0,"', tag, "],[-1,"schema"],[1,"plugin"],[0,"); "]],"start1":949,"start2":949,"length1":22,"length2":22}]],"length":2324,"saved":false}
-{"ts":1361250814636,"patch":[[{"diffs":[[0,"leted = "],[-1,"schema"],[1,"plugin"],[0,"s[tag];\n"]],"start1":1226,"start2":1226,"length1":22,"length2":22},{"diffs":[[0," fn(delete "],[-1,"schema"],[1,"plugin"],[0,"s[tag]); "]],"start1":1329,"start2":1329,"length1":30,"length2":30},{"diffs":[[0," delete "],[-1,"schema"],[1,"plugin"],[0,"s[tag];\n"]],"start1":1403,"start2":1403,"length1":22,"length2":22},{"diffs":[[0,"defined("],[-1,"schema"],[1,"plugin"],[0,"s[tag]))"]],"start1":1538,"start2":1538,"length1":22,"length2":22},{"diffs":[[0," "],[-1,"schema"],[1,"plugin"],[0,"s[tag] ="]],"start1":1567,"start2":1567,"length1":22,"length2":22},{"diffs":[[0,"new "],[-1,"Schema"],[1,"plugin"],[0,"({})"]],"start1":1590,"start2":1590,"length1":14,"length2":14},{"diffs":[[0," fn("],[-1,"schema"],[1,"plugin"],[0,"s[tag]);"]],"start1":1674,"start2":1674,"length1":22,"length2":22},{"diffs":[[0," return "],[-1,"schema"],[1,"plugin"],[0,"s[tag];\n"]],"start1":1714,"start2":1714,"length1":22,"length2":22}]],"length":2324,"saved":false}
-{"ts":1361250825699,"patch":[[{"diffs":[[0," fn("],[-1,"schema"],[1,"plugin"],[0,"s);\n "]],"start1":1898,"start2":1898,"length1":22,"length2":22},{"diffs":[[0," return "],[-1,"schema"],[1,"plugin"],[0,"s;\n }"]],"start1":1933,"start2":1933,"length1":22,"length2":22},{"diffs":[[0," _.keys("],[-1,"schema"],[1,"plugin"],[0,"s);\n "]],"start1":2014,"start2":2014,"length1":22,"length2":22}]],"length":2324,"saved":false}
-{"ts":1361250835920,"patch":[[{"diffs":[[0," }\n}\n\n"],[-1,"Mongoose"],[1,"Plugin"],[0,"Registry"]],"start1":2212,"start2":2212,"length1":24,"length2":22},{"diffs":[[0,"new "],[-1,"Mongoose"],[1,"Plugin"],[0,"Regi"]],"start1":2299,"start2":2299,"length1":16,"length2":14}]],"length":2320,"saved":false}
-{"ts":1361250843922,"patch":[[{"diffs":[[0,"var "],[-1,"mongoose = require('mongoose'),\n "],[0,"_ = "]],"start1":0,"start2":0,"length1":44,"length2":8}]],"length":2284,"saved":false}
-{"ts":1361251259384,"patch":[[{"diffs":[[0,"xports ="],[1," {\n registry:"],[0," new Plu"]],"start1":2254,"start2":2254,"length1":16,"length2":32},{"diffs":[[0,"gistry()"],[1,",\n plugin: plugin\n}"],[0,";"]],"start1":2291,"start2":2291,"length1":9,"length2":31}]],"length":2322,"saved":false}
-{"ts":1361251344074,"patch":[[{"diffs":[[0,"stry(),\n "],[-1,"p"],[1,"P"],[0,"lugin: plugi"]],"start1":2293,"start2":2293,"length1":25,"length2":25}]],"length":2322,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1366739961535,"patch":[[{"diffs":[[0,"plugin')"],[-1,""],[0,""],[1,",\n template = require('./template')"],[0,";\n \nf"]],"start1":106,"start2":106,"length1":16,"length2":54},{"diffs":[[0,"new "],[-1,"schema"],[1,"plugin"],[0," to the "],[-1,"schema"],[1,"plugin"],[0," reg"]],"start1":460,"start2":460,"length1":28,"length2":28},{"diffs":[[0,"revious "],[-1,"schema"],[1,"plugin"],[0,"\n * "]],"start1":522,"start2":522,"length1":22,"length2":22},{"diffs":[[0,"ram "],[-1,"schema the schema"],[1,"plugin the plugin"],[0," to "]],"start1":570,"start2":570,"length1":25,"length2":25},{"diffs":[[0,"or this "],[-1,"schema"],[1,"plugin"],[0," (used t"]],"start1":627,"start2":627,"length1":22,"length2":22},{"diffs":[[0,"the "],[-1,"schema)"],[1,"plugin)\n * @param fn a function that is called when the add is complete."],[0,"\n "]],"start1":660,"start2":660,"length1":15,"length2":84},{"diffs":[[0,"e added "],[-1,"schema"],[1,"plugin"],[0,".\n *"]],"start1":758,"start2":758,"length1":22,"length2":22},{"diffs":[[0," "],[-1,"if (!_.isUndefined(fn) && !_.isNull(fn) && _.isFunction(fn)) {\n fn("],[0,"plug"]],"start1":830,"start2":830,"length1":86,"length2":8},{"diffs":[[0,"= plugin"],[-1,")"],[0,";\n "]],"start1":847,"start2":847,"length1":17,"length2":16},{"diffs":[[0," "],[-1,"} else {\n plugins[tag] ="],[1,"this.emit('add', tag,"],[0," plugin"],[1,")"],[0,";\n "]],"start1":861,"start2":861,"length1":50,"length2":37},{"diffs":[[0," "],[-1,"}\n this.emit('add', tag, "],[1,"if (!_.isUndefined(fn) && !_.isNull(fn)) {\n fn("],[0,"plug"]],"start1":900,"start2":900,"length1":40,"length2":66},{"diffs":[[0,"gin); "],[1,"\n"],[0," "],[1," }"],[0,"\n };\n"]],"start1":965,"start2":965,"length1":21,"length2":26},{"diffs":[[0,"emove a "],[-1,"schema"],[1,"plugin"],[0," from th"]],"start1":1012,"start2":1012,"length1":22,"length2":22},{"diffs":[[0,"rom the "],[-1,"schema"],[1,"plugin"],[0," registr"]],"start1":1028,"start2":1028,"length1":22,"length2":22},{"diffs":[[0,"the "],[-1,"schema to be removed"],[1,"plugin to be removed\n * @param fn a function that is called when the remove is complete."],[0,"\n "]],"start1":1083,"start2":1083,"length1":28,"length2":100},{"diffs":[[0,"= plugins[tag];\n"],[1," this.emit('remove', deleted);\n"],[0," if (!_.i"]],"start1":1314,"start2":1314,"length1":32,"length2":70},{"diffs":[[0,"(fn)"],[-1," && _.isFunction(fn)"],[0,") {\n"]],"start1":1411,"start2":1411,"length1":28,"length2":8},{"diffs":[[0,"lete"],[-1," plugins[tag]); \n } else {\n "],[1,"d);\n }\n"],[0," "]],"start1":1436,"start2":1436,"length1":57,"length2":22},{"diffs":[[0," "],[1,"};\n"],[0," "],[-1,"}"],[0,"\n "],[-1," this.emit('remove', deleted);\n };\n \n this.get = function(tag, fn) {\n if (_.isUndefined(plugins[tag])) {\n "],[1,"/**\n * Get a plugin from the plugin registry.\n * @param tag the tag for the plugin.\n * @param fn a function that is called with the plugin requested.\n * @return the requested plugin, or undefined if a plugin with the specified\n"],[0," "],[1,"*"],[0," "],[-1,"plugins[tag] = new plugin({});\n }"],[1,"tag is not found.\n **/\n this.get = function(tag, fn) {"],[0,"\n "]],"start1":1490,"start2":1490,"length1":194,"length2":336},{"diffs":[[0,"tag]);\n }"],[-1,""],[0,""],[1," "],[0,"\n return "]],"start1":1897,"start2":1897,"length1":32,"length2":40},{"diffs":[[0,".log = function("],[-1,"fn"],[0,") {\n if ("]],"start1":2033,"start2":2033,"length1":34,"length2":32},{"diffs":[[0," "],[-1,"if (!_.isUndefined(fn) && !_.isNull(fn)) {"],[1,"return plugins;\n };\n "],[0,"\n "],[1,"/**\n"],[0," "],[-1," fn(plugins);\n }"],[1,"* Get all of the plugins available in the plugin registry."],[0,"\n "],[-1," "],[1,"* @"],[0,"return "],[1,"the "],[0,"plugin"],[-1,"s;\n };\n "],[1," tags.\n **/"],[0,"\n "]],"start1":2057,"start2":2057,"length1":121,"length2":148},{"diffs":[[0,"unction("],[-1,"fn"],[0,") {\n "]],"start1":2222,"start2":2222,"length1":18,"length2":16},{"diffs":[[0," }\n"],[-1," if (!_.isUndefined(fn) && !_.isNull(fn)) {\n fn(keys); \n }\n"],[0," "]],"start1":2335,"start2":2335,"length1":97,"length2":8},{"diffs":[[0,": plugin"],[-1,""],[0,""],[1,",\n Template: template"],[0,"\n};"]],"start1":2496,"start2":2496,"length1":11,"length2":35}]],"length":2531,"saved":false}
View
2 .c9revisions/lib/template.js.c9save
@@ -1,2 +0,0 @@
-{"ts":1366739996860,"silentsave":true,"restoring":false,"patch":[[]],"length":0}
-{"contributors":[],"silentsave":false,"ts":1366740000112,"patch":[[{"diffs":[[1,"var _ = require('underscore'),\n jade = require('jade'),\n fs = require('fs');\n\nfunction Template(uri) {\n if (!(this instanceof Template))\n return new Template(uri);\n\n this.cachedTemplateString = \"\";\n \n this.uri = uri;\n \n this.extend = {};\n \n this.includes = [];\n \n this.load(uri);\n \n}\n\n/**\n * Loads the file at the URI into the template string and performs the injections\n * of the extends and includes.\n * @param uri an optional uri that can be used to re-load the template with a new file.\n **/\nTemplate.prototype.load = function(uri, returnFn) {\n if (!_.isUndefined(uri) && !_.isNull(uri)) {\n this.uri = uri;\n }\n \n // Load up the URI into the cached template string.\n this.cachedTemplateString = fs.readFileSync(this.uri, 'utf8');\n \n var includes = [];\n var extend = {};\n \n // Inject the includes and extends into the cachedTemplateString.\n if (!_.isUndefined(this.includes) && !_.isNull(this.includes)) {\n includes = this.includes;\n };\n \n if (!_.isUndefined(this.extend) && !_.isNull(this.extend)) {\n extend = this.extend;\n }\n \n function processExtends() {\n if (!_.isNull(this.extend) && !_.isUndefined(this.extend)) {\n if (!_.isEmpty(this.extend)) {\n var re = new RegExp(\"extends \" + this.extend.name,\"g\");\n this.cachedTemplateString = this.cachedTemplateString.replace(re, \"extends \" + this.extend.uri); \n }\n }\n return processIncludes(0);\n }\n \n function processIncludes(index) {\n if (index < _.size(this.includes) - 1) {\n if(!_.isUndefined(this.includes) && !_.isUndefined(this.includes) && !_.isEmpty(this.includes)) {\n var re = new RegExp(\"include \" + this.includes[index].name,\"g\");\n this.cachedTemplateString = this.cachedTemplateString.replace(re, \"include \" + this.includes[index].uri); \n }\n // Now, call the next one.\n processIncludes(++index);\n } else {\n // Now, return the cachedTemplateString\n if (!_.isNull(returnFn) && !_.isUndefined(returnFn)) {\n returnFn(this.cachedTemplateString); \n }\n \n return this.cachedTemplateString; \n }\n }\n \n return processExtends();\n};\n\n/**\n * Use this method to dynamically inject layout items into a template.\n * @param obj an object with the layout extensions and inclusions.\n * @param fn a function to be called when injection is complete.\n **/\nTemplate.prototype.inject = function(object) {\n if (!_.isUndefined(object) && !_.isNull(object)) {\n if (!_.isUndefined(object.includes) && !_.isNull(object.includes)) {\n this.includes = object.includes;\n }\n if (!_.isUndefined(object.extend) && !_.isNull(object.extend)) {\n this.extend = object.extend;\n }\n }\n};\n\n/**\n * Renders the template with the given locals and calls the return function with\n * the HTML to be rendered. Can also optionally be given a \"response\" object from express\n * to render the response.\n * @param res a response object that can render html.\n * @param locals an object with local variables to pass into the template.\n * @param a function that is called when the render is complete. The function\n * takes an err and html parameter.\n **/\nTemplate.prototype.render = function(res, locals, fn) {\n // first, lets check to see if this is the 2 argument version or the 3 argument version.\n if (_.isFunction(locals)) {\n locals = res;\n fn = locals;\n res = null;\n }\n \n var compileConfig = {};\n compileConfig.filename = '/';\n if (!_.isUndefined(locals) && !_.isNull(locals)) {\n compileConfig.locals = locals; \n }\n \n if (this.cachedTemplateString === '') {\n this.load(this.uri);\n compileTemplate();\n } else {\n compileTemplate();\n }\n \n function compileTemplate() {\n var compiledTemplate = jade.compile(this.cachedTemplateString, compileConfig);\n console.log(\"Compiled template: \" + compiledTemplate);\n \n // Last part is to render and / or return the template.\n if (!_.isUndefined(res) && !_.isNull(res)) {\n res.send(compiledTemplate); \n }\n \n if (!_.isUndefiend(fn) && !_.isNull(fn) && _.isFunction(fn)) {\n fn(compiledTemplate);\n }\n }\n};\n\nmodule.exports = Template;"]],"start1":0,"start2":0,"length1":0,"length2":4522}]],"length":4522,"saved":false}
View
1 .c9revisions/npm-debug.log.c9save
@@ -1 +0,0 @@
-{"ts":1360027417875,"silentsave":true,"restoring":false,"patch":[[{"diffs":[[1,"0 info it worked if it ends with ok\n1 verbose cli [ '/var/lib/openshift/65d73e1456914c9ea7571719266851c7/app-root/data//bin/node-openshift-v8',\n1 verbose cli '/var/lib/stickshift/65d73e1456914c9ea7571719266851c7/app-root/data/lib/node_modules/npm/bin/npm-cli.js',\n1 verbose cli 'install' ]\n2 info using npm@1.1.62\n3 info using node@v0.8.9\n4 verbose node symlink /var/lib/openshift/65d73e1456914c9ea7571719266851c7/app-root/data//bin/node-openshift-v8\n5 verbose read json /var/lib/stickshift/65d73e1456914c9ea7571719266851c7/app-root/data/396570/package.json\n6 error install Couldn't read dependencies\n7 error Failed to parse json\n7 error Unexpected token :\n8 error File: /var/lib/stickshift/65d73e1456914c9ea7571719266851c7/app-root/data/396570/package.json\n9 error Failed to parse package.json data.\n9 error package.json must be actual JSON, not just JavaScript.\n9 error\n9 error This is not a bug in npm.\n9 error Tell the package author to fix their package.json file. JSON.parse\n10 error System Linux 2.6.32-279.19.1.el6.x86_64\n11 error command \"/var/lib/openshift/65d73e1456914c9ea7571719266851c7/app-root/data//bin/node-openshift-v8\" \"/var/lib/stickshift/65d73e1456914c9ea7571719266851c7/app-root/data/lib/node_modules/npm/bin/npm-cli.js\" \"install\"\n12 error cwd /var/lib/stickshift/65d73e1456914c9ea7571719266851c7/app-root/data/396570\n13 error node -v v0.8.9\n14 error npm -v 1.1.62\n15 error file /var/lib/stickshift/65d73e1456914c9ea7571719266851c7/app-root/data/396570/package.json\n16 error code EJSONPARSE\n17 verbose exit [ 1, true ]\n"]],"start1":0,"start2":0,"length1":0,"length2":1545}]],"length":1545}
View
38 .c9revisions/package.json.c9save
@@ -1,38 +0,0 @@
-{"ts":1360024874993,"silentsave":true,"restoring":false,"patch":[[]],"length":0}
-{"contributors":[],"silentsave":false,"ts":1360024893167,"patch":[[{"diffs":[[1,"{\n \"name\": \"CardBlanc\",\n \"description\": \"The web application portion of CardBlanc\",\n \"version\": \"0.0.2\",\n \"engines\": {\n \"node\": \"0.8.1\",\n \"npm\": \"1.1.49\"\n },\n \"author\": {\n \"name\": \"John O'Connor\",\n \"email\": \"john@catalyzingconcepts.com\"\n },\n \"contributors\": [\n {\n \"name\": \"John O'Connor\",\n \"email\": \"john@catalyzingconcepts.com\"\n }\n ],\n \"dependencies\": {\n \"mongoose\": \"*\",\n \"mongodb\": \"1.1.3\"\n }\n}"]],"start1":0,"start2":0,"length1":0,"length2":444}]],"length":444,"saved":false}
-{"ts":1360024898356,"patch":[[{"diffs":[[0," \"*\""],[-1,","],[0,"\n "],[-1," \"mongodb\": \"1.1.3\"\n"],[0," }\n"]],"start1":410,"start2":410,"length1":33,"length2":11}]],"length":422,"saved":false}
-{"ts":1360024966170,"patch":[[{"diffs":[[0,"\n }\n}"],[1,"\n\n{\n \"name\": \"mongoose-schema-registry\",\n \"description\": \"Creates a schema registry that can be used to store and retrieve Schema registries.\",\n \"tags\": [\n \"temporary\",\n \"temp\",\n \"tempfile\",\n \"tempdir\",\n \"tmpfile\",\n \"tmpdir\",\n \"security\"\n ],\n \"version\": \"0.4.0\",\n \"author\": {\n \"name\": \"Bruce Williams\",\n \"email\": \"bruce@codefluency.com\"\n },\n \"directories\": {\n \"lib\": \"lib\"\n },\n \"engines\": [\n \"node >=0.4.0\"\n ],\n \"main\": \"./lib/temp\",\n \"dependencies\": {},\n \"devDependencies\": {},\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git://github.com/bruce/node-temp.git\"\n },\n \"readme\": \"node-temp -- temporary files and directories for node.js\\n========================================================\\n\\nHandles generating a unique file/directory name under the appropriate\\nsystem temporary directory, changing the file to an appropriate mode,\\nand supports automatic removal.\\n\\n`temp` has a similar API to the `fs` module.\\n\\nSynopsis\\n--------\\n\\nYou can create temporary files with `open` and `openSync`, temporary\\ndirectories with `mkdir` and `mkdirSync`, or you can get a unique name\\nin the system temporary directory with `path`.\\n\\nWorking copies of the following examples can be found under the\\n`examples` directory.\\n\\n### Temporary Files\\n\\nTo create a temporary file use `open` or `openSync`, passing\\nthem an optional prefix, suffix, or both (see below for details on\\naffixes). The object passed to the callback (or returned) has\\n`path` and `fd` keys:\\n\\n { path: \\\"/path/to/file\\\",\\n , fd: theFileDescriptor\\n }\\n\\nIn this example we write to a temporary file and call out to `grep` and\\n`wc -l` to determine the number of time `foo` occurs in the text. The\\ntemporary file is chmod'd `0600` and cleaned up automatically when the\\nprocess at exit:\\n\\n var temp = require('temp'),\\n fs = require('fs'),\\n util = require('util'),\\n exec = require('child_process').exec;\\n\\n // Fake data\\n var myData = \\\"foo\\\\nbar\\\\nfoo\\\\nbaz\\\";\\n\\n // Process the data (note: error handling omitted)\\n temp.open('myprefix', function(err, info) {\\n fs.write(info.fd, myData);\\n fs.close(info.fd, function(err) {\\n exec(\\\"grep foo '\\\" + info.path + \\\"' | wc -l\\\", function(err, stdout) {\\n util.puts(stdout.trim());\\n });\\n });\\n });\\n\\n### Temporary Directories\\n\\nTo create a temporary directory, use `mkdir` or `mkdirSync`, passing\\nit an optional prefix, suffix, or both (see below for details on affixes).\\n\\nIn this example we create a temporary directory, write to a file\\nwithin it, call out to an external program to create a PDF, and read\\nthe result. While the external process creates a lot of additional\\nfiles, the temporary directory is removed automatically at exit:\\n\\n var temp = require('../lib/temp'),\\n fs = require('fs'),\\n util = require('util'),\\n path = require('path'),\\n exec = require('child_process').exec;\\n\\n // For use with ConTeXt, http://wiki.contextgarden.net\\n var myData = \\\"\\\\\\\\starttext\\\\nHello World\\\\n\\\\\\\\stoptext\\\";\\n\\n temp.mkdir('pdfcreator', function(err, dirPath) {\\n var inputPath = path.join(dirPath, 'input.tex')\\n fs.writeFile(inputPath, myData, function(err) {\\n if (err) throw err;\\n process.chdir(dirPath);\\n exec(\\\"texexec '\\\" + inputPath + \\\"'\\\", function(err) {\\n if (err) throw err;\\n fs.readFile(path.join(dirPath, 'input.pdf'), function(err, data) {\\n if (err) throw err;\\n sys.print(data);\\n });\\n });\\n });\\n });\\n\\n### Affixes\\n\\nYou can provide custom prefixes and suffixes when creating temporary\\nfiles and directories. If you provide a string, it is used as the prefix\\nfor the temporary name. If you provide an object with `prefix` and\\n`suffix` keys, they are used for the temporary name.\\n\\nHere are some examples:\\n\\n* `\\\"aprefix\\\"`: A simple prefix, prepended to the filename; this is\\n shorthand for:\\n* `{prefix: \\\"aprefix\\\"}`: A simple prefix, prepended to the filename\\n* `{suffix: \\\".asuffix\\\"}`: A suffix, appended to the filename\\n (especially useful when the file needs to be named with specific\\n extension for use with an external program).\\n* `{prefix: \\\"myprefix\\\", suffix: \\\"mysuffix\\\"}`: Customize both affixes\\n* `null`: Use the defaults for files and directories (prefixes `\\\"f-\\\"`\\n and `\\\"d-\\\"`, respectively, no suffixes).\\n\\nIn this simple example we read a `pdf`, write it to a temporary file with\\na `.pdf` extension, and close it.\\n\\n var fs = require('fs'),\\n temp = require('temp');\\n\\n fs.readFile('/path/to/source.pdf', function(err, data) {\\n temp.open({suffix: '.pdf'}, function(err, info) {\\n if (err) throw err;\\n fs.write(info.fd, contents);\\n fs.close(info.fd, function(err) {\\n if (err) throw err;\\n // Do something with the file\\n });\\n });\\n });\\n\\n### Just a path, please\\n\\nIf you just want a unique name in your temporary directory, use\\n`path`:\\n\\n var fs = require('fs');\\n var tempName = temp.path({suffix: '.pdf'});\\n // Do something with tempName\\n \\nNote: The file isn't created for you, and the mode is not changed -- and it\\nwill not be removed automatically at exit. If you use `path`, it's\\nall up to you.\\n\\nCompatibility\\n-------------\\n\\nWorks with Node.js v0.6.0 on OS X. Please let me know if you have\\nproblems running it on a later version of Node.js or\\nhave platform problems.\\n\\nInstallation\\n------------\\n\\nInstall it using [npm](http://github.com/isaacs/npm):\\n\\n $ npm install temp\\n\\nOr get it directly from:\\nhttp://github.com/bruce/node-temp\\n\\nTesting\\n-------\\n\\nFor now, run `test/test-temp.js`:\\n\\n $ node test/test-temp.js\\n\\nContributing\\n------------\\n\\nYou can find the repository at:\\nhttp://github.com/bruce/node-temp\\n\\nIssues/Feature Requests can be submitted at:\\nhttp://github.com/bruce/node-temp/issues\\n\\nI'd really like to hear your feedback, and I'd love to receive your\\npull-requests!\\n\\nCopyright\\n---------\\n\\nCopyright (c) 2010 Bruce Williams. See LICENSE for details.\\n\",\n \"_id\": \"temp@0.4.0\",\n \"_from\": \"temp@0.4.0\"\n}\n"]],"start1":414,"start2":414,"length1":8,"length2":6263}]],"length":6677,"saved":false}
-{"ts":1360025099432,"patch":[[{"diffs":[[0," \""],[-1,"temporary\",\n \"temp\",\n \"tempfile\",\n \"tempdir\",\n \"tmpfile\",\n \"tmpdir\",\n \"security"],[1,"mongoose\",\n \"schema\",\n \"registry\",\n \"ghiraldi"],[0,"\"\n "]],"start1":581,"start2":581,"length1":105,"length2":62},{"diffs":[[0,"on\": \"0."],[-1,"4.0"],[1,"0.1"],[0,"\",\n \"au"]],"start1":654,"start2":654,"length1":19,"length2":19},{"diffs":[[0,"name\": \""],[-1,"Bruce Williams"],[1,"John O'Connor"],[0,"\",\n \""]],"start1":687,"start2":687,"length1":30,"length2":29},{"diffs":[[0,"\": \""],[-1,"bruce@codefluency"],[1,"sax1johno@gmail"],[0,".com"]],"start1":721,"start2":721,"length1":25,"length2":23},{"diffs":[[0,"node"],[-1," >=0.4.0\""],[1,"\": \">=0.8.1\","],[0,"\n ]"]],"start1":812,"start2":812,"length1":17,"length2":21},{"diffs":[[0," \"./lib/"],[-1,"temp"],[1,"registry"],[0,"\",\n \"de"]],"start1":844,"start2":844,"length1":20,"length2":24},{"diffs":[[0,"hub.com/"],[-1,"bruce/node-temp"],[1,"sax1johno/mongoose-schema-registry"],[0,".git\"\n "]],"start1":968,"start2":968,"length1":31,"length2":50}]],"length":6658,"saved":false}
-{"ts":1360025131130,"patch":[[{"diffs":[[0,"\n \""],[-1,"readme\": \"node-temp -- temporary files and directories for node.js\\n========================================================\\n\\nHandles generating a unique file/directory name under the appropriate\\nsystem temporary directory, changing the file to an appropriate mode,\\nand supports automatic removal.\\n\\n`temp` has a similar API to the `fs` module.\\n\\nSynopsis\\n--------\\n\\nYou can create temporary files with `open` and `openSync`, temporary\\ndirectories with `mkdir` and `mkdirSync`, or you can get a unique name\\nin the system temporary directory with `path`.\\n\\nWorking copies of the following examples can be found under the\\n`examples` directory.\\n\\n### Temporary Files\\n\\nTo create a temporary file use `open` or `openSync`, passing\\nthem an optional prefix, suffix, or both (see below for details on\\naffixes). The object passed to the callback (or returned) has\\n`path` and `fd` keys:\\n\\n { path: \\\"/path/to/file\\\",\\n , fd: theFileDescriptor\\n }\\n\\nIn this example we write to a temporary file and call out to `grep` and\\n`wc -l` to determine the number of time `foo` occurs in the text. The\\ntemporary file is chmod'd `0600` and cleaned up automatically when the\\nprocess at exit:\\n\\n var temp = require('temp'),\\n fs = require('fs'),\\n util = require('util'),\\n exec = require('child_process').exec;\\n\\n // Fake data\\n var myData = \\\"foo\\\\nbar\\\\nfoo\\\\nbaz\\\";\\n\\n // Process the data (note: error handling omitted)\\n temp.open('myprefix', function(err, info) {\\n fs.write(info.fd, myData);\\n fs.close(info.fd, function(err) {\\n exec(\\\"grep foo '\\\" + info.path + \\\"' | wc -l\\\", function(err, stdout) {\\n util.puts(stdout.trim());\\n });\\n });\\n });\\n\\n### Temporary Directories\\n\\nTo create a temporary directory, use `mkdir` or `mkdirSync`, passing\\nit an optional prefix, suffix, or both (see below for details on affixes).\\n\\nIn this example we create a temporary directory, write to a file\\nwithin it, call out to an external program to create a PDF, and read\\nthe result. While the external process creates a lot of additional\\nfiles, the temporary directory is removed automatically at exit:\\n\\n var temp = require('../lib/temp'),\\n fs = require('fs'),\\n util = require('util'),\\n path = require('path'),\\n exec = require('child_process').exec;\\n\\n // For use with ConTeXt, http://wiki.contextgarden.net\\n var myData = \\\"\\\\\\\\starttext\\\\nHello World\\\\n\\\\\\\\stoptext\\\";\\n\\n temp.mkdir('pdfcreator', function(err, dirPath) {\\n var inputPath = path.join(dirPath, 'input.tex')\\n fs.writeFile(inputPath, myData, function(err) {\\n if (err) throw err;\\n process.chdir(dirPath);\\n exec(\\\"texexec '\\\" + inputPath + \\\"'\\\", function(err) {\\n if (err) throw err;\\n fs.readFile(path.join(dirPath, 'input.pdf'), function(err, data) {\\n if (err) throw err;\\n sys.print(data);\\n });\\n });\\n });\\n });\\n\\n### Affixes\\n\\nYou can provide custom prefixes and suffixes when creating temporary\\nfiles and directories. If you provide a string, it is used as the prefix\\nfor the temporary name. If you provide an object with `prefix` and\\n`suffix` keys, they are used for the temporary name.\\n\\nHere are some examples:\\n\\n* `\\\"aprefix\\\"`: A simple prefix, prepended to the filename; this is\\n shorthand for:\\n* `{prefix: \\\"aprefix\\\"}`: A simple prefix, prepended to the filename\\n* `{suffix: \\\".asuffix\\\"}`: A suffix, appended to the filename\\n (especially useful when the file needs to be named with specific\\n extension for use with an external program).\\n* `{prefix: \\\"myprefix\\\", suffix: \\\"mysuffix\\\"}`: Customize both affixes\\n* `null`: Use the defaults for files and directories (prefixes `\\\"f-\\\"`\\n and `\\\"d-\\\"`, respectively, no suffixes).\\n\\nIn this simple example we read a `pdf`, write it to a temporary file with\\na `.pdf` extension, and close it.\\n\\n var fs = require('fs'),\\n temp = require('temp');\\n\\n fs.readFile('/path/to/source.pdf', function(err, data) {\\n temp.open({suffix: '.pdf'}, function(err, info) {\\n if (err) throw err;\\n fs.write(info.fd, contents);\\n fs.close(info.fd, function(err) {\\n if (err) throw err;\\n // Do something with the file\\n });\\n });\\n });\\n\\n### Just a path, please\\n\\nIf you just want a unique name in your temporary directory, use\\n`path`:\\n\\n var fs = require('fs');\\n var tempName = temp.path({suffix: '.pdf'});\\n // Do something with tempName\\n \\nNote: The file isn't created for you, and the mode is not changed -- and it\\nwill not be removed automatically at exit. If you use `path`, it's\\nall up to you.\\n\\nCompatibility\\n-------------\\n\\nWorks with Node.js v0.6.0 on OS X. Please let me know if you have\\nproblems running it on a later version of Node.js or\\nhave platform problems.\\n\\nInstallation\\n------------\\n\\nInstall it using [npm](http://github.com/isaacs/npm):\\n\\n $ npm install temp\\n\\nOr get it directly from:\\nhttp://github.com/bruce/node-temp\\n\\nTesting\\n-------\\n\\nFor now, run `test/test-temp.js`:\\n\\n $ node test/test-temp.js\\n\\nContributing\\n------------\\n\\nYou can find the repository at:\\nhttp://github.com/bruce/node-temp\\n\\nIssues/Feature Requests can be submitted at:\\nhttp://github.com/bruce/node-temp/issues\\n\\nI'd really like to hear your feedback, and I'd love to receive your\\npull-requests!\\n\\nCopyright\\n---------\\n\\nCopyright (c) 2010 Bruce Williams. See LICENSE for details.\\n\",\n \"_id\": \"temp@0.4.0\",\n \"_from\": \"temp@0.4.0"],[1,"_id\": \"mongoose_registry@0.0.1\",\n \"_from\": \"mongoose_registry@0.0.1"],[0,"\"\n}\n"]],"start1":1020,"start2":1020,"length1":5638,"length2":76}]],"length":1096,"saved":false}
-{"ts":1360025145828,"patch":[[{"diffs":[[0," \"./lib/"],[1,"mongoose_"],[0,"registry"]],"start1":844,"start2":844,"length1":16,"length2":25}]],"length":1105,"saved":false}
-{"ts":1360025180842,"patch":[[{"diffs":[[0,"ndencies\": {"],[1,"\n \"mongoose\": \"*\"\n "],[0,"},\n \"reposi"]],"start1":904,"start2":904,"length1":24,"length2":47}]],"length":1128,"saved":false}
-{"ts":1360025188050,"patch":[[{"diffs":[[-1,"{\n \"name\": \"CardBlanc\",\n \"description\": \"The web application portion of CardBlanc\",\n \"version\": \"0.0.2\",\n \"engines\": {\n \"node\": \"0.8.1\",\n \"npm\": \"1.1.49\"\n },\n \"author\": {\n \"name\": \"John O'Connor\",\n \"email\": \"john@catalyzingconcepts.com\"\n },\n \"contributors\": [\n {\n \"name\": \"John O'Connor\",\n \"email\": \"john@catalyzingconcepts.com\"\n }\n ],\n \"dependencies\": {\n \"mongoose\": \"*\"\n }\n}\n\n"],[0,"{\n "]],"start1":0,"start2":0,"length1":428,"length2":4}]],"length":704,"saved":false}
-{"ts":1360025246743,"patch":[[{"diffs":[[0,"eve "],[-1,"Schema registrie"],[1,"mongoose schema"],[0,"s.\","]],"start1":119,"start2":119,"length1":24,"length2":23}]],"length":703,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360026720387,"patch":[[{"diffs":[[0,"cies\": {"],[1,"\n \"mongoose\": \"*\",\n \"underscore\": \"*\"\n "],[0,"},\n \"de"]],"start1":458,"start2":458,"length1":16,"length2":62},{"diffs":[[0,": {\n"],[-1," \"mongoose\": \"*\"\n"],[0," },"]],"start1":534,"start2":534,"length1":28,"length2":8}]],"length":729,"saved":false}
-{"ts":1360026850740,"patch":[[{"diffs":[[0,"rscore\":"],[1," \"*\",\n \"nodeunit\":"],[0," \"*\"\n }"]],"start1":497,"start2":497,"length1":16,"length2":37}]],"length":750,"saved":false}
-{"ts":1360027327368,"patch":[[{"diffs":[[0,": {\n"],[-1," \"mongoose\": \"*\",\n \"underscore\": \"*\",\n \"nodeunit\": \"*\"\n"],[0," },"]],"start1":463,"start2":463,"length1":72,"length2":8}]],"length":686,"saved":false}
-{"ts":1360027335853,"patch":[[{"diffs":[[0,"ependencies\": {\n"],[1," \"mongoose\": \"*\",\n \"underscore\": \"*\",\n \"nodeunit\": \"*\"\n"],[0," },\n \"devDepen"]],"start1":451,"start2":451,"length1":32,"length2":96}]],"length":750,"saved":false}
-{"ts":1360027451656,"patch":[[{"diffs":[[0,"\": \""],[-1,"git://"],[0,"gith"]],"start1":609,"start2":609,"length1":14,"length2":8}]],"length":744,"saved":false}
-{"ts":1360027493166,"patch":[[{"diffs":[[0,"cies\": {"],[-1,"\n "],[0,"},\n \"re"]],"start1":550,"start2":550,"length1":19,"length2":16}]],"length":741,"saved":false}
-{"ts":1360027534501,"patch":[[{"diffs":[[0,"\n }"],[-1,",\n \"devDependencies\": {},\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"github.com/sax1johno/mongoose-schema-registry.git\"\n },\n \"_id\": \"mongoose_registry@0.0.1\",\n \"_from\": \"mongoose_registry@0.0.1\""],[0,"\n}\n"]],"start1":530,"start2":530,"length1":211,"length2":7}]],"length":537,"saved":false}
-{"ts":1360027557694,"patch":[[{"diffs":[[0,"\n \""],[-1,"main\": \"./lib/mongoose_registry\",\n \"dependencies\": {\n \"mongoose\": \"*\",\n \"underscore\": \"*\",\n \"nodeunit\": \"*\"\n }"],[1,"devDependencies\": {},\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"github.com/sax1johno/mongoose-schema-registry.git\"\n },\n \"_id\": \"mongoose_registry@0.0.1\",\n \"_from\": \"mongoose_registry@0.0.1\""],[0,"\n}\n"]],"start1":409,"start2":409,"length1":128,"length2":206}]],"length":615,"saved":false}
-{"ts":1360027563530,"patch":[[{"diffs":[[0,"\",\n ],\n"],[1," \"main\": \"./lib/mongoose_registry\",\n \"dependencies\": {\n \"mongoose\": \"*\",\n \"underscore\": \"*\",\n \"nodeunit\": \"*\"\n },\n"],[0," \"devDe"]],"start1":402,"start2":402,"length1":16,"length2":142}]],"length":741,"saved":false}
-{"ts":1360027566659,"patch":[[{"diffs":[[0," },\n"],[-1," \"directories\": {\n \"lib\": \"lib\"\n },\n \"engines\": [\n \"node\": \">=0.8.1\",\n ],"],[0,"\n \""]],"start1":322,"start2":322,"length1":91,"length2":8}]],"length":658,"saved":false}
-{"ts":1360027578638,"patch":[[{"diffs":[[0,"om\"\n },"],[1,"\n \"directories\": {\n \"lib\": \"lib\"\n },"],[0,"\n\n \"mai"]],"start1":317,"start2":317,"length1":16,"length2":57}]],"length":699,"saved":false}
-{"ts":1360027585531,"patch":[[{"diffs":[[0,"b\"\n },\n"],[1," \"engines\": [\n \"node\": \">=0.8.1\",\n ],"],[0,"\n \"main"]],"start1":359,"start2":359,"length1":16,"length2":58}]],"length":741,"saved":false}
-{"ts":1360027592694,"patch":[[{"diffs":[[0," },\n"],[-1," \"directories\": {\n \"lib\": \"lib\"\n },"],[0,"\n \""]],"start1":322,"start2":322,"length1":48,"length2":8}]],"length":701,"saved":false}
-{"ts":1360027627846,"patch":[[{"diffs":[[0,"m\"\n },\n"],[1," \"directories\": {\n \"lib\": \"lib\"\n },"],[0,"\n \"engi"]],"start1":318,"start2":318,"length1":16,"length2":56},{"diffs":[[0," \"engines\": "],[-1,"["],[1,"{"],[0,"\n \"node\":"]],"start1":368,"start2":368,"length1":25,"length2":25},{"diffs":[[0,"8.1\",\n "],[-1,"]"],[1,"}"],[0,",\n \"mai"]],"start1":399,"start2":399,"length1":17,"length2":17}]],"length":741,"saved":false}
-{"ts":1360027659729,"patch":[[{"diffs":[[0,"\n },\n "],[1," "],[0,"\"engines"]],"start1":361,"start2":361,"length1":16,"length2":17},{"diffs":[[0,"\": \""],[-1,">="],[0,"0.8.1\",\n"],[1," \"npm\": \"1.1.49\"\n"],[0," },"]],"start1":392,"start2":392,"length1":18,"length2":37}]],"length":761,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360047741145,"patch":[[{"diffs":[[0,"sion\": \"0.0."],[-1,"1"],[1,"2"],[0,"\",\n \"author"]],"start1":227,"start2":227,"length1":25,"length2":25}]],"length":761,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360048585858,"patch":[[{"diffs":[[0,"0.0."],[-1,"2"],[1,"3"],[0,"\",\n "]],"start1":235,"start2":235,"length1":9,"length2":9}]],"length":761,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360088793415,"patch":[[{"diffs":[[0,"node\": \""],[1,">"],[0,"0.8.1\",\n"]],"start1":388,"start2":388,"length1":16,"length2":17}]],"length":762,"saved":false}
-{"ts":1360088807544,"patch":[[{"diffs":[[0," },\n"],[-1," \"engines\": {\n \"node\": \">0.8.1\",\n \"npm\": \"1.1.49\"\n },\n"],[0," \"m"]],"start1":363,"start2":363,"length1":72,"length2":8}]],"length":698,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360256513958,"patch":[[{"diffs":[[0,"0.0."],[-1,"3"],[1,"4"],[0,"\",\n "]],"start1":235,"start2":235,"length1":9,"length2":9},{"diffs":[[0,"try@0.0."],[-1,"1"],[1,"4"],[0,"\",\n \"_f"]],"start1":647,"start2":647,"length1":17,"length2":17},{"diffs":[[0,"try@0.0."],[-1,"1"],[1,"4"],[0,"\"\n}\n"]],"start1":685,"start2":685,"length1":13,"length2":13}]],"length":698,"saved":false}
-{"ts":1360256519843,"patch":[[{"diffs":[[0,"try@0.0."],[-1,"4"],[1,"1"],[0,"\"\n}\n"]],"start1":685,"start2":685,"length1":13,"length2":13}]],"length":698,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360556956702,"patch":[[{"diffs":[[0,"sion\": \"0.0."],[-1,"4"],[1,"5"],[0,"\",\n \"author"]],"start1":227,"start2":227,"length1":25,"length2":25},{"diffs":[[0,"0.0."],[-1,"4"],[1,"5"],[0,"\",\n "]],"start1":651,"start2":651,"length1":9,"length2":9},{"diffs":[[0,"try@0.0."],[-1,"1"],[1,"5"],[0,"\"\n}\n"]],"start1":685,"start2":685,"length1":13,"length2":13}]],"length":698,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360657743807,"patch":[[{"diffs":[[0,"egistry@0.0."],[-1,"5"],[1,"6"],[0,"\",\n \"_from\""]],"start1":643,"start2":643,"length1":25,"length2":25},{"diffs":[[0,"try@0.0."],[-1,"5"],[1,"6"],[0,"\"\n}\n"]],"start1":685,"start2":685,"length1":13,"length2":13}]],"length":698,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360662112060,"patch":[[{"diffs":[[0,"0.0."],[-1,"5"],[1,"6"],[0,"\",\n "]],"start1":235,"start2":235,"length1":9,"length2":9}]],"length":698,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1361255820545,"patch":[[{"diffs":[[0,"name\": \""],[-1,"mongoose-schema"],[1,"ghiraldi-plugin"],[0,"-registr"]],"start1":5,"start2":5,"length1":31,"length2":31},{"diffs":[[0,"\": \""],[-1,"Creates a schema registry that can be used to store and retrieve mongoose schemas.\",\n \"tags\": [\n \"mongoose\",\n \"schema"],[1,"The plugin registry allows for the registration of plugins into a central store and provides access to plugin properties for other controllers. This is particularly useful for things like the admin core plugin, which uses the registry to build the admin views for controllers."],[0,"\",\n"],[-1," "],[0," \""],[-1,"registry\","],[1,"tags\": ["],[0,"\n "]],"start1":54,"start2":54,"length1":150,"length2":298},{"diffs":[[0,"hiraldi\""],[1,",\n \"registry\""],[0,"\n ],\n "]],"start1":355,"start2":355,"length1":16,"length2":32},{"diffs":[[0," \"./lib/"],[-1,"mongoose"],[1,"plugin"],[0,"_registr"]],"start1":540,"start2":540,"length1":24,"length2":22}]],"length":860,"saved":false}
-{"ts":1361255849410,"patch":[[{"diffs":[[0,"hno/"],[-1,"mongoose-schema"],[1,"ghiraldi-plugin"],[0,"-reg"]],"start1":746,"start2":746,"length1":23,"length2":23},{"diffs":[[0,",\n \"_id\": \""],[-1,"mongoose"],[1,"ghiraldi_plugin"],[0,"_registry@0."]],"start1":783,"start2":783,"length1":32,"length2":39},{"diffs":[[0,"from\": \""],[-1,"mongoose"],[1,"ghiraldi_plugin"],[0,"_registr"]],"start1":832,"start2":832,"length1":24,"length2":31}]],"length":874,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1361741690754,"patch":[[{"diffs":[[0,"sion\": \"0.0."],[-1,"6"],[1,"7"],[0,"\",\n \"author"]],"start1":391,"start2":391,"length1":25,"length2":25},{"diffs":[[0,"try@0.0."],[-1,"6"],[1,"7"],[0,"\",\n \"_f"]],"start1":816,"start2":816,"length1":17,"length2":17},{"diffs":[[0,"0.0."],[-1,"6"],[1,"7"],[0,"\"\n}\n"]],"start1":865,"start2":865,"length1":9,"length2":9}]],"length":874,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1366740026815,"patch":[[{"diffs":[[0,"sion\": \"0.0."],[-1,"7"],[1,"8"],[0,"\",\n \"author"]],"start1":391,"start2":391,"length1":25,"length2":25},{"diffs":[[0,"try@0.0."],[-1,"7"],[1,"8"],[0,"\",\n \"_f"]],"start1":816,"start2":816,"length1":17,"length2":17},{"diffs":[[0,"0.0."],[-1,"7"],[1,"8"],[0,"\"\n}\n"]],"start1":865,"start2":865,"length1":9,"length2":9}]],"length":874,"saved":false}
View
56 .c9revisions/tests/plugin_registry_test.js.c9save
@@ -1,56 +0,0 @@
-{"ts":1360026862723,"silentsave":true,"restoring":false,"patch":[[]],"length":0}
-{"contributors":[],"silentsave":false,"ts":1360026888542,"patch":[[{"diffs":[[1,"var nodeunit = require('nodeunit');\nvar mongoose = require('mongoose');\n\n\nexports.registryTest = nodeunit.testCase({\n 'testSaveToTempFile': function(test) {\n // test.notStrictEqual(user, undefined);\n pdfUtils.generatePdf(null, function(err, pdffile) {\n console.log(\"Reached the error we were supposed to reach\");\n });\n var string = fs.readFileSync('./Sampler.html', \"UTF-8\");\n pdfUtils.generatePdf(string, function(err, pdf) {\n if (err) console.log(\"There was an error: \" + err);\n // console.log(\"Pdf location = \" + pdf.path);\n test.notEqual(fs.readFileSync(pdf.path), null);\n });\n test.done();\n }\n});"]],"start1":0,"start2":0,"length1":0,"length2":700}]],"length":700,"saved":false}
-{"ts":1360026905287,"patch":[[{"diffs":[[0,"oose');\n"],[1,"var Schema = mongoose.Schema,\n ObjectId = Schema.ObjectId;"],[0,"\n\nexport"]],"start1":64,"start2":64,"length1":16,"length2":77}]],"length":761,"saved":false}
-{"ts":1360026909014,"patch":[[{"diffs":[[0,"hema"],[-1,",\n ObjectId = Schema.ObjectId;"],[0,"\n\nex"]],"start1":96,"start2":96,"length1":41,"length2":8}]],"length":728,"saved":false}
-{"ts":1360026975189,"patch":[[{"diffs":[[0,"test"],[-1,"SaveToTempFile"],[1,"Constructor"],[0,"': f"]],"start1":150,"start2":150,"length1":22,"length2":19},{"diffs":[[0," "],[-1,"// test.notStrictEqual(user, undefined);\n pdfUtils.generatePdf(null, function(err, pdffile) {\n console.log(\"Reached the error we were supposed to reach\");\n });\n var string = fs.readFileSync('./Sampler.html', \"UTF-8\""],[1,"var mongooseRegistry = require('../lib/mongoose_registry');\n test.done("],[0,");\n "],[1,"},\n"],[0," "],[-1,"pdfUtils.generatePdf(string,"],[1,"'testAdd':"],[0," fun"]],"start1":189,"start2":189,"length1":294,"length2":110},{"diffs":[[0,"ion("],[-1,"err, pdf"],[1,"test"],[0,") {\n"]],"start1":301,"start2":301,"length1":16,"length2":12},{"diffs":[[0," "],[1,"\n"],[0," "],[-1,"if (err) console.log(\"There was an error: \" + err);\n // console.log(\"Pdf location = \" + pdf.path);\n"],[1,"},\n 'testRemove': function(test) {\n "],[0," "],[1,"\n"],[0," "],[1,"},\n"],[0," "],[1," '"],[0,"test"],[-1,".notEqual(fs.readFileSync(pdf.path), null);\n });\n test.done();"],[1,"Get': function(test) {\n "],[0,"\n "]],"start1":317,"start2":317,"length1":214,"length2":107}]],"length":430,"saved":false}
-{"ts":1360027019634,"patch":[[{"diffs":[[0,"test) {\n "],[1,"var mongooseRegistry = require('../lib/mongoose_registry');\n var test = new Schema({\n title: String,\n test: String\n });"],[0,"\n },\n 'tes"]],"start1":305,"start2":305,"length1":32,"length2":198}]],"length":596,"saved":false}
-{"ts":1360027216471,"patch":[[{"diffs":[[0," var "],[-1,"mongooseRegistry"],[1,"reg"],[0," = requi"]],"start1":317,"start2":317,"length1":32,"length2":19},{"diffs":[[0," String\n"],[-1,""],[0," "]],"start1":455,"start2":455,"length1":16,"length2":16},{"diffs":[[0," });\n"],[1," reg.add(test, function(success) {\n test.ok(success, \"Registration adding should've succceeded\");\n test.done();\n })\n"],[0," },\n "]],"start1":467,"start2":467,"length1":16,"length2":168}]],"length":735,"saved":false}
-{"ts":1360027272490,"patch":[[{"diffs":[[0," "],[-1,"test.done();"],[1,"reg.log(function() {\n test.done(); \n })"],[0,"\n })\n"]],"start1":591,"start2":591,"length1":36,"length2":104}]],"length":803,"saved":false}
-{"ts":1360028022040,"patch":[[{"diffs":[[0,"dd(test,"],[1," 'test',"],[0," functio"]],"start1":488,"start2":488,"length1":16,"length2":24}]],"length":811,"saved":false}
-{"ts":1360028055164,"patch":[[{"diffs":[[0,"var test"],[1,"Schema"],[0," = new S"]],"start1":376,"start2":376,"length1":16,"length2":22}]],"length":817,"saved":false}
-{"ts":1360028057708,"patch":[[{"diffs":[[0,"add(test"],[1,"Schema"],[0,", 'test'"]],"start1":493,"start2":493,"length1":16,"length2":22}]],"length":823,"saved":false}
-{"ts":1360028060916,"patch":[[{"diffs":[[0,"hema, 't"],[-1,"est"],[0,"', funct"]],"start1":503,"start2":503,"length1":19,"length2":16}]],"length":820,"saved":false}
-{"ts":1360028080360,"patch":[[{"diffs":[[0,") {\n "],[1,"test.done();"],[0,"\n },\n "]],"start1":750,"start2":750,"length1":24,"length2":36},{"diffs":[[0,") {\n "],[1,"test.done();"],[0,"\n }\n});"]],"start1":810,"start2":810,"length1":22,"length2":34}]],"length":844,"saved":false}
-{"ts":1360028120130,"patch":[[{"diffs":[[0,"unction("],[-1,") {"],[1,"schemas) {\n console.log(JSON.stringify(schemas));"],[0,"\n "]],"start1":629,"start2":629,"length1":19,"length2":80}]],"length":905,"saved":false}
-{"ts":1360028226685,"patch":[[{"diffs":[[0,"unction(test) {\n"],[1," var reg = require('../lib/mongoose_registry');\n var testSchema = new Schema({\n \n });\n reg.add(testSchema, 't', function(success) {\n reg.remove('t', function(success) {\n test.ok(success, 'Should have removed the schema from the registry');\n reg.log(function(schemas) {\n console.log(JSON.stringify(schemas));\n test.done();\n });\n });\n });\n \n"],[0," test.don"]],"start1":799,"start2":799,"length1":32,"length2":529}]],"length":1402,"saved":false}
-{"ts":1360028237278,"patch":[[{"diffs":[[0,"});\n"],[-1," \n test.done();\n"],[0," "]],"start1":1299,"start2":1299,"length1":38,"length2":8}]],"length":1372,"saved":false}
-{"ts":1360028289515,"patch":[[{"diffs":[[0,") {\n "],[-1,"test.done("],[1,"var reg = require('../lib/mongoose_registry');\n var testSchema = new Schema({\n \n });\n reg.add(testSchema, 't', function(success) {\n reg.get('t', function(schema) {\n test.equal(schema, testSchema);\n reg.log(function(schemas) {\n console.log(JSON.stringify(schemas));\n test.done();\n });\n });\n }"],[0,");\n }\n});"]],"start1":1338,"start2":1338,"length1":34,"length2":459}]],"length":1797,"saved":false}
-{"ts":1360028339542,"patch":[[{"diffs":[[0," test."],[-1,"e"],[1,"deepE"],[0,"qual(sch"]],"start1":1570,"start2":1570,"length1":17,"length2":21},{"diffs":[[0,"stSchema"],[1,", 'Schemas should be deep equal to each other.'"],[0,");\n "]],"start1":1598,"start2":1598,"length1":16,"length2":63}]],"length":1848,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360048372189,"patch":[[{"diffs":[[0," });\n"],[1," },\n 'testKeys': function(test) {\n var reg = require('../lib/mongoose_registry');\n var testSchema = new Schema({});\n var testSchema2 = new Schema({});\n var testSchema3 = new Schema({});\n \n reg.add(testSchema, 't', function(success) {\n reg.add(testSchema2, 't2', function(success) {\n reg.add(testSchema3, 't3', function(success) {\n reg.getKeys(function(keys) {\n var testArray = ['t', 't2', 't3'];\n test.equal(testArray, keys);\n })\n })\n })\n })\n"],[0," }\n});"]],"start1":1827,"start2":1827,"length1":21,"length2":654}]],"length":2481,"saved":false}
-{"ts":1360048379066,"patch":[[{"diffs":[[0," keys);\n"],[1," test.done();\n"],[0," "]],"start1":2396,"start2":2396,"length1":16,"length2":53}]],"length":2518,"saved":false}
-{"ts":1360048419136,"patch":[[{"diffs":[[0," test."],[-1,"e"],[1,"deepE"],[0,"qual(tes"]],"start1":2372,"start2":2372,"length1":17,"length2":21}]],"length":2522,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360255883288,"patch":[[{"diffs":[[0," })\n },\n"],[1," 'testEvents': function(test) {\n var reg = require('../lib/mongoose_registry');\n var testSchema = new Schema({\n title: String,\n test: String\n });\n reg.add(testSchema, 't', function(success) {\n test.ok(success, \"Registration adding should've succceeded\");\n reg.log(function(schemas) {\n console.log(JSON.stringify(schemas));\n test.done(); \n })\n })\n }, \n"],[0," 'testRemove'"]],"start1":764,"start2":764,"length1":32,"length2":538}]],"length":3028,"saved":false}
-{"ts":1360255962632,"patch":[[{"diffs":[[0," reg."],[-1,"add(testSchema, 't"],[1,"on('add"],[0,"', funct"]],"start1":987,"start2":987,"length1":34,"length2":23},{"diffs":[[0,"'add', function("],[-1,"success"],[1,"tag, schema"],[0,") {\n "]],"start1":998,"start2":998,"length1":39,"length2":43},{"diffs":[[0," "],[-1,"test.ok(success, \"Registration adding should've succceeded\");\n reg.log(function(schemas) {\n console.log("],[1,"console.log(\"Tag \" + tag + \" was added with schema \" + "],[0,"JSON"]],"start1":1037,"start2":1037,"length1":138,"length2":63},{"diffs":[[0,"stringify(schema"],[-1,"s"],[0,"));\n "]],"start1":1101,"start2":1101,"length1":33,"length2":32},{"diffs":[[0,"));\n "],[-1," "],[0,"test.done(); "]],"start1":1117,"start2":1117,"length1":36,"length2":32},{"diffs":[[0,"e();"],[-1," "],[1,"\n"],[0," "],[-1," \n })"],[1,"});\n reg.add(testSchema, 't');"],[0,"\n "]],"start1":1141,"start2":1141,"length1":39,"length2":54},{"diffs":[[0,"');\n "],[-1,"})"],[0,"\n }, \n"]],"start1":1188,"start2":1188,"length1":26,"length2":24}]],"length":2954,"saved":false}
-{"ts":1360255972506,"patch":[[{"diffs":[[0,"test"],[1,"Add"],[0,"Event"],[-1,"s"],[0,"': f"]],"start1":785,"start2":785,"length1":14,"length2":16}]],"length":2956,"saved":false}
-{"ts":1360256005831,"patch":[[{"diffs":[[0," \n },"],[-1," "],[0,"\n"],[1,""],[0," 'tes"]],"start1":1201,"start2":1201,"length1":21,"length2":17},{"diffs":[[0,"});\n });\n"],[-1,""],[0," },\n"],[1," 'testRemoveEvent': function(test) {\n var reg = require('../lib/mongoose_registry');\n var testSchema = new Schema({\n \n });\n reg.add(testSchema, 't', function(success) {\n reg.remove('t', function(success) {\n test.ok(success, 'Should have removed the schema from the registry');\n reg.log(function(schemas) {\n console.log(JSON.stringify(schemas));\n test.done();\n });\n });\n });\n }, \n"],[0," 'testGet': f"]],"start1":1717,"start2":1717,"length1":39,"length2":578}]],"length":3491,"saved":false}
-{"ts":1360256050832,"patch":[[{"diffs":[[0,"reg."],[-1,"add(testSchema, 't', function(success) {\n reg."],[1,"on('"],[0,"remove"],[-1,"('t"],[0,"', f"]],"start1":1906,"start2":1906,"length1":74,"length2":18},{"diffs":[[0,"ove', function(s"],[-1,"uccess"],[1,"chema"],[0,") {\n "]],"start1":1917,"start2":1917,"length1":38,"length2":37},{"diffs":[[0," "],[-1," test.ok(success, 'Should have removed the schema from the registry');\n reg.log(function(schemas) {\n console.log("],[1,"console.log(\"schema = \" + "],[0,"JSON"]],"start1":1950,"start2":1950,"length1":158,"length2":34},{"diffs":[[0,"stringify(schema"],[-1,"s"],[0,"));\n "]],"start1":1985,"start2":1985,"length1":33,"length2":32},{"diffs":[[0," "],[-1," "],[-1," "],[0,"test.done();"]],"start1":2005,"start2":2005,"length1":32,"length2":24},{"diffs":[[0," "],[1,"})\n"],[0," "],[-1,"});\n }"],[1,"reg.add(testSchema, 't', function(success) {\n reg.remove('t'"],[0,");\n "]],"start1":2034,"start2":2034,"length1":33,"length2":90}]],"length":3358,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1360556497202,"patch":[[{"diffs":[[0,"ion(keys) {\n"],[1," console.log(\"keys = \" + JSON.stringify(keys));\n"],[0," "]],"start1":3116,"start2":3116,"length1":24,"length2":95}]],"length":3429,"saved":false}
-{"ts":1360556929812,"patch":[[{"diffs":[[0,") {\n"],[-1," console.log(\"keys = \" + JSON.stringify(keys));\n"],[0," "]],"start1":3124,"start2":3124,"length1":79,"length2":8}]],"length":3358,"saved":false}
-{"ts":1360558525049,"patch":[[{"diffs":[[0," reg.add("],[1,"'t', "],[0,"testSchema, 't',"]],"start1":481,"start2":481,"length1":32,"length2":37},{"diffs":[[0,"'t', testSchema,"],[-1," 't',"],[0," function(succes"]],"start1":497,"start2":497,"length1":37,"length2":32}]],"length":3358,"saved":false}
-{"ts":1360558536680,"patch":[[{"diffs":[[0," reg.add("],[1,"'t', "],[0,"testSchema, 't')"]],"start1":1160,"start2":1160,"length1":32,"length2":37},{"diffs":[[0,"stSchema"],[-1,", 't'"],[0,");\n "]],"start1":1183,"start2":1183,"length1":21,"length2":16}]],"length":3358,"saved":false}
-{"ts":1360558547282,"patch":[[{"diffs":[[0," reg.add("],[1,"'t', "],[0,"testSchema, 't',"]],"start1":1363,"start2":1363,"length1":32,"length2":37},{"diffs":[[0,"'t', testSchema,"],[-1," 't',"],[0," function(succes"]],"start1":1379,"start2":1379,"length1":37,"length2":32}]],"length":3358,"saved":false}
-{"ts":1360558557880,"patch":[[{"diffs":[[0," reg.add("],[1,"'t', "],[0,"testSchema, 't',"]],"start1":2041,"start2":2041,"length1":32,"length2":37},{"diffs":[[0,"'t', testSchema,"],[-1," 't',"],[0," function(succes"]],"start1":2057,"start2":2057,"length1":37,"length2":32}]],"length":3358,"saved":false}
-{"ts":1360558570005,"patch":[[{"diffs":[[0," reg.add("],[1,"'t', "],[0,"testSchema, 't',"]],"start1":2296,"start2":2296,"length1":32,"length2":37},{"diffs":[[0,"'t', testSchema,"],[-1," 't',"],[0," function(succes"]],"start1":2312,"start2":2312,"length1":37,"length2":32}]],"length":3358,"saved":false}
-{"ts":1360558592120,"patch":[[{"diffs":[[0," reg.add("],[1,"'t', "],[0,"testSchema, 't',"]],"start1":2904,"start2":2904,"length1":32,"length2":37},{"diffs":[[0,"ema,"],[-1," 't',"],[0," fun"]],"start1":2932,"start2":2932,"length1":13,"length2":8},{"diffs":[[0," reg.add("],[1,"'t2', "],[0,"testSchema2, 't2"]],"start1":2961,"start2":2961,"length1":32,"length2":38},{"diffs":[[0,"Schema2,"],[-1," 't2',"],[0," functio"]],"start1":2987,"start2":2987,"length1":22,"length2":16},{"diffs":[[0,"reg.add("],[1,"'t3', "],[0,"testSche"]],"start1":3032,"start2":3032,"length1":16,"length2":22},{"diffs":[[0,"ma3,"],[-1," 't3',"],[0," fun"]],"start1":3054,"start2":3054,"length1":14,"length2":8}]],"length":3358,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1361250320157,"patch":[[{"diffs":[[0," var "],[-1,"mongoose"],[1,"plugin"],[0,"Registry"]],"start1":189,"start2":189,"length1":24,"length2":22},{"diffs":[[0,"ire('../lib/"],[-1,"mongoose"],[1,"plugin"],[0,"_registry');"]],"start1":218,"start2":218,"length1":32,"length2":30},{"diffs":[[0,"ire('../lib/"],[-1,"mongoose"],[1,"plugin"],[0,"_registry');"]],"start1":331,"start2":331,"length1":32,"length2":30},{"diffs":[[0,"ire('../lib/"],[-1,"mongoose"],[1,"plugin"],[0,"_registry');"]],"start1":833,"start2":833,"length1":32,"length2":30},{"diffs":[[0,"ire('../lib/"],[-1,"mongoose"],[1,"plugin"],[0,"_registry');"]],"start1":1259,"start2":1259,"length1":32,"length2":30},{"diffs":[[0,"ire('../lib/"],[-1,"mongoose"],[1,"plugin"],[0,"_registry');"]],"start1":1792,"start2":1792,"length1":32,"length2":30},{"diffs":[[0,"ire('../lib/"],[-1,"mongoose"],[1,"plugin"],[0,"_registry');"]],"start1":2188,"start2":2188,"length1":32,"length2":30},{"diffs":[[0,"'../lib/"],[-1,"mongoose"],[1,"plugin"],[0,"_registr"]],"start1":2727,"start2":2727,"length1":24,"length2":22}]],"length":3342,"saved":false}
-{"contributors":[],"silentsave":false,"ts":1361251338200,"patch":[[{"diffs":[[0,"var "],[-1,"mongoose = require('mongoose');\nvar Schema = mongoose.Schema"],[1,"pluginRegistry = require('../lib/plugin_registry');\nvar Plugin = pluginRegistry.Plugin;"],[0,"\n\nex"]],"start1":36,"start2":36,"length1":68,"length2":95}]],"length":3369,"saved":false}
-{"ts":1361251370753,"patch":[[{"diffs":[[0,"lugin_registry')"],[1,".registry"],[0,";\n test.d"]],"start1":258,"start2":258,"length1":32,"length2":41},{"diffs":[[0,"estSchema = new "],[-1,"Schema"],[1,"Plugin"],[0,"({\n t"]],"start1":411,"start2":411,"length1":38,"length2":38}]],"length":3378,"saved":false}
-{"ts":1361251378807,"patch":[[{"diffs":[[0,"lugin_registry')"],[1,".registry"],[0,";\n var te"]],"start1":380,"start2":380,"length1":32,"length2":41}]],"length":3387,"saved":false}
-{"ts":1361251408763,"patch":[[{"diffs":[[0," var test"],[-1,"Schema"],[1,"Plugin"],[0," = new Plugi"]],"start1":411,"start2":411,"length1":30,"length2":30},{"diffs":[[0,"Plugin({"],[1,"views: ["],[0,"\n "]],"start1":436,"start2":436,"length1":16,"length2":24},{"diffs":[[0," "],[-1,"title: String,\n"],[1," '../test/test',\n "],[0," "]],"start1":457,"start2":457,"length1":36,"length2":42},{"diffs":[[0," "],[-1," "],[1,"'../test/"],[0,"test"],[-1,":"],[1,"2'\n"],[0," "],[-1,"String"],[1," ]"],[0,"\n "]],"start1":493,"start2":493,"length1":36,"length2":45}]],"length":3410,"saved":false}
-{"ts":1361251416757,"patch":[[{"diffs":[[0,"eg.add('t', test"],[-1,"Schema"],[1,"Plugin"],[0,", function(succe"]],"start1":552,"start2":552,"length1":38,"length2":38}]],"length":3410,"saved":false}
-{"ts":1361251425329,"patch":[[{"diffs":[[0,"eg.log(function("],[-1,"schema"],[1,"plugin"],[0,"s) {\n "]],"start1":683,"start2":683,"length1":38,"length2":38},{"diffs":[[0,"(JSON.stringify("],[-1,"schema"],[1,"plugin"],[0,"s));\n "]],"start1":737,"start2":737,"length1":38,"length2":38}]],"length":3410,"saved":false}
-{"ts":1361251432424,"patch":[[{"diffs":[[0,"lugin_registry')"],[1,".registry"],[0,";\n var te"]],"start1":914,"start2":914,"length1":32,"length2":41},{"diffs":[[0,"estSchema = new "],[-1,"Schema"],[1,"Plugin"],[0,"({\n t"]],"start1":954,"start2":954,"length1":38,"length2":38}]],"length":3419,"saved":false}
-{"ts":1361251447989,"patch":[[{"diffs":[[0,"n({\n"],[-1," title: String,\n test: String\n"],[0," "]],"start1":975,"start2":975,"length1":71,"length2":8},{"diffs":[[0,"on(tag, "],[-1,"schema"],[1,"plugin"],[0,") {\n "]],"start1":1019,"start2":1019,"length1":22,"length2":22},{"diffs":[[0,"ed with "],[-1,"schema"],[1,"plugin"],[0," \" + JSO"]],"start1":1085,"start2":1085,"length1":22,"length2":22},{"diffs":[[0," JSON.stringify("],[-1,"schema"],[1,"plugin"],[0,"));\n "]],"start1":1103,"start2":1103,"length1":38,"length2":38}]],"length":3356,"saved":false}
-{"ts":1361251457284,"patch":[[{"diffs":[[0," var test"],[-1,"Schema"],[1,"Plugin"],[0," = new Plugi"]],"start1":945,"start2":945,"length1":30,"length2":30},{"diffs":[[0,"t', test"],[-1,"Schema"],[1,"Plugin"],[0,");\n "]],"start1":1183,"start2":1183,"length1":22,"length2":22}]],"length":3356,"saved":false}
-{"ts":1361251471330,"patch":[[{"diffs":[[0,"var test"],[-1,"Schema"],[1,"Plugin"],[0," = new "],[-1,"Schema"],[1,"Plugin"],[0,"({\n "]],"start1":1312,"start2":1312,"length1":35,"length2":35},{"diffs":[[0,"eg.add('t', test"],[-1,"Schema"],[1,"Plugin"],[0,", function(succe"]],"start1":1376,"start2":1376,"length1":38,"length2":38},{"diffs":[[0,"eg.log(function("],[-1,"schema"],[1,"plugin"],[0,"s) {\n "]],"start1":1571,"start2":1571,"length1":38,"length2":38},{"diffs":[[0,"(JSON.stringify("],[-1,"schema"],[1,"plugin"],[0,"s));\n "]],"start1":1629,"start2":1629,"length1":38,"length2":38}]],"length":3356,"saved":false}
-{"ts":1361251475839,"patch":[[{"diffs":[[0,"ved the "],[-1,"schema"],[1,"plugin"],[0," from th"]],"start1":1518,"start2":1518,"length1":22,"length2":22}]],"length":3356,"saved":false}
-{"ts":1361251486563,"patch":[[{"diffs":[[0,"lugin_registry')"],[1,".registry"],[0,";\n var te"]],"start1":1819,"start2":1819,"length1":32,"length2":41},{"diffs":[[0,"estSchema = new "],[-1,"Schema"],[1,"Plugin"],[0,"({\n \n"]],"start1":1859,"start2":1859,"length1":38,"length2":38}]],"length":3365,"saved":false}
-{"ts":1361251489682,"patch":[[{"diffs":[[0,"lugin_registry')"],[1,".registry"],[0,";\n var te"]],"start1":1286,"start2":1286,"length1":32,"length2":41}]],"length":3374,"saved":false}
-{"ts":1361251500172,"patch":[[{"diffs":[[0,"move', function("],[-1,"schema"],[1,"plugin"],[0,") {\n "]],"start1":1936,"start2":1936,"length1":38,"length2":38},{"diffs":[[0,"le.log(\""],[-1,"schema"],[1,"plugin"],[0," = \" + J"]],"start1":1979,"start2":1979,"length1":22,"length2":22},{"diffs":[[0,"ringify("],[-1,"schema"],[1,"plugin"],[0,"));\n "]],"start1":2007,"start2":2007,"length1":22,"length2":22}]],"length":3374,"saved":false}
-{"ts":1361251503472,"patch":[[{"diffs":[[0,"eg.add('t', test"],[-1,"Schema"],[1,"Plugin"],[0,", function(succe"]],"start1":2070,"start2":2070,"length1":38,"length2":38}]],"length":3374,"saved":false}
-{"ts":1361251509241,"patch":[[{"diffs":[[0," var test"],[-1,"Schema"],[1,"Plugin"],[0," = new Plugi"]],"start1":1859,"start2":1859,"length1":30,"length2":30}]],"length":3374,"saved":false}
-{"ts":1361251517403,"patch":[[{"diffs":[[0,"var test"],[-1,"Schema"],[1,"Plugin"],[0," = new "],[-1,"Schema"],[1,"Plugin"],[0,"({\n "]],"start1":2259,"start2":2259,"length1":35,"length2":35}]],"length":3374,"saved":false}
-{"ts":1361251529760,"patch":[[{"diffs":[[0,"eg.add('t', test"],[-1,"Schema"],[1,"Plugin"],[0,", function(succe"]],"start1":2323,"start2":2323,"length1":38,"length2":38},{"diffs":[[0,"unction("],[-1,"schema"],[1,"plugin"],[0,") {\n "]],"start1":2393,"start2":2393,"length1":22,"length2":22},{"diffs":[[0,"ual("],[-1,"schema, testSchema"],[1,"plugin, testPlugin"],[0,", 'S"]],"start1":2438,"start2":2438,"length1":26,"length2":26}]],"length":3374,"saved":false}
-{"ts":1361251536750,"patch":[[{"diffs":[[0,"unction("],[-1,"schema"],[1,"plugin"],[0,"s) {\n "]],"start1":2535,"start2":2535,"length1":22,"length2":22},{"diffs":[[0,"ify("],[-1,"schema"],[1,"plugin"],[0,"s));"]],"start1":2597,"start2":2597,"length1":14,"length2":14}]],"length":3374,"saved":false}
-{"ts":1361251569413,"patch":[[{"diffs":[[0,"lugin_registry')"],[1,".registry"],[0,";\n var te"]],"start1":2768,"start2":2768,"length1":32,"length2":41},{"diffs":[[0,"test"],[-1,"Schema"],[1,"Plugin"],[0," = new "],[-1,"Schema"],[1,"Plugin"],[0,"({})"]],"start1":2807,"start2":2807,"length1":27,"length2":27},{"diffs":[[0,"test"],[-1,"Schema"],[1,"Plugin"],[0,"2 = new "],[-1,"Schema"],[1,"Plugin"],[0,"({})"]],"start1":2848,"start2":2848,"length1":28,"length2":28},{"diffs":[[0,"test"],[-1,"Schema"],[1,"Plugin"],[0,"3 = new "],[-1,"Schema"],[1,"Plugin"],[0,"({})"]],"start1":2890,"start2":2890,"length1":28,"length2":28}]],"length":3383,"saved":false}
-{"ts":1361251579730,"patch":[[{"diffs":[[0,"t', test"],[-1,"Schema"],[1,"Plugin"],[0,", functi"]],"start1":2946,"start2":2946,"length1":22,"length2":22},{"diffs":[[0,"2', test"],[-1,"Schema"],[1,"Plugin"],[0,"2, funct"]],"start1":3004,"start2":3004,"length1":22,"length2":22},{"diffs":[[0,"3', test"],[-1,"Schema"],[1,"Plugin"],[0,"3, funct"]],"start1":3067,"start2":3067,"length1":22,"length2":22}]],"length":3383,"saved":false}
View
2 .gitignore
@@ -0,0 +1,2 @@
+node_modules/*
+.c9revisions/*

0 comments on commit cc9a4ad

Please sign in to comment.