{"_id":"caboose-model","_rev":"107-2187b661669eb1afbcbd4bd636c2ed41","name":"caboose-model","description":"Model system around MongoDB","dist-tags":{"latest":"0.1.20"},"versions":{"0.0.1":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.1","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-10"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmJsonOpts":{"file":"/Users/mattinsler/.npm/caboose-model/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"caboose-model@0.0.1","_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"72276bc68c2b7c8a2f43aaa44c4155119259d3fc","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.1.tgz","integrity":"sha512-PHmCnFDV1P7NPLTxlW/UKfz6gu9STW1CzqRdxxlkWxfCnxbidSFtEirtBoMUj87JnLW0HdJqbNc5AHoSMbYgPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpdh9E53tEyIzO6NrZbKxH9/WoYZzrEhUPng0ax9P+/AIgS361EkwiVGhRblOBQKabnFIyt/5m8PQo3np3pBs9d1A="}]},"scripts":{},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.0.2":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.2","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-10"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmJsonOpts":{"file":"/Users/mattinsler/.npm/caboose-model/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"caboose-model@0.0.2","_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"f72ade437edb29119e3afe97a2059febd6fbbd2d","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.2.tgz","integrity":"sha512-YaFNPtpIcRs3oJm800SEcb6EFTcIUcd0FeMf7uuqpi2D1vk4v9l10Ggqa/pYznhUpp+oaVXoo77hK39vjW1LAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHmjz52yqqx9vTylRKVYnKi9rfiKpMr1aH+/1bQRPA9PAiAEaay/B9yujDcqMRPx+TFlpb6ImBgrQtMtvyyCkX+h8A=="}]},"scripts":{},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.0.3":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.3","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-10"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmJsonOpts":{"file":"/Users/mattinsler/.npm/caboose-model/0.0.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"caboose-model@0.0.3","_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"cbb210c620dd8f2ae92dd90ab583ae4ac8dd1ff6","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.3.tgz","integrity":"sha512-auMu4skKpv35mn9eWzeXrQF4nds1kiNSrJWFTozT3ct0Btbr7qwvBahs01HvQgTQvdg3KQFt8Mel0BcfRQsKaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlXQmboukLZ4cKojIQ7Th91wZK3+k8OypzJJPjzs7ehAiEAhel5mLBUJfwmIypBJUhqJaPZfOI80IscsNvDrCUZ5yI="}]},"scripts":{},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.0.4":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.4","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-22"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmJsonOpts":{"file":"/Users/mattinsler/.npm/caboose-model/0.0.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"caboose-model@0.0.4","_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"e265783741e5c453f8bbf81c7e5336241312210a","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.4.tgz","integrity":"sha512-YmMKFSwDhQgkstr+BFjnYbEcMh3E5hncRzqeqtTEPeqg3t93dqSh0ZL+KBIpQsZu4vwX2nf3/+5pTZR6U8t/Ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFcZN73J0dUoAP8tULPxEj+4x6bZh73ZczSGWYMXk1XXAiBdOdTxwtZpESltIKn8G2b16VHuvASbRjSqJTZ4LgfFqQ=="}]},"scripts":{},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.0.5":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.5","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-22"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.0.5","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"f318f7eda1d6c00625ed9622625f428a5efa14b3","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.5.tgz","integrity":"sha512-rcamBW9SPzRG+DXyETfwQuZ0j0c6jDwIsyBqB7Iwk8qLB2094gO3sndiOD5NMpyWJCs4F2ji/QELhUnBglBlWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUO3HoOVoBg2/vSzJy9qQWyxfe2lDgqTweNiFwiBl/6QIgac40phC6Iab+Y4RN8Wz4hpWIyaND7MFQj9xYOWxss2w="}]},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.0.6":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.6","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-22"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.0.6","_engineSupported":true,"_npmVersion":"1.0.99","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"e6a408ca61080b8faf3df99837e122da40e10ba1","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.6.tgz","integrity":"sha512-sRmENX7nNW6yJDhP9ymfm/KYTLRCCapz0dXMQuwOI49mHHB2XxSCgONDVq+94IDgIRYcFdUvaKFXjzd2ijdAvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCW3sEioE5Xs+AXlO+4FzNVkM/NeMKXijENml++kjZaVAIhAPhEmkKxZfFE7sWm0bNx/aiJz7DDHrRsaEstcm2EBiDM"}]},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.0.7":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.7","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-22"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.0.7","_engineSupported":true,"_npmVersion":"1.0.99","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"8b77ba2ae07eca22c9c89f8bcc9df3aa2be092e8","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.7.tgz","integrity":"sha512-4lC+hDPUbS7wskm9uoUOsHfEMyyQ8QESxiukYSLOsgVYCt8d4c/z/hbo1JlFuWhWoB8eyhQdTKkgIsIMoS/CDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDY0p1CiXKwElLuD1sNYohs/hhpB4Lr+zMSOevHfb8KPAiEA6UPzNhxXxYB/UX1ykP4Sj5sv3HlMbNv5q7+XA04hkyo="}]},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.0.8":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.8","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-23"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.0.8","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"7bdb5798d04997dcf430b44a72cbebba90abc017","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.8.tgz","integrity":"sha512-mKKR3PY0m6QM9JVn0QBDZFy49ASPg897wuV+OWRssN5K5SBpmzcAjXxW8J7wW+C59/bKfywc1SvvjcAB0rPODQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsiPtT6sLXuEBfC7oS02jxIkfwZ+gsDDff5dIXtJ/MxgIhAKj3ZMKT/2iR1bkbgTnp0SK4JeLAf45NxL1WtR/8BPXC"}]},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.0.9":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.0.9","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-23"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.0.9","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"bbb5600cf3a385ac4b75033cb594079f0f6f30f4","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.0.9.tgz","integrity":"sha512-qLl7AQhZWh1eNFqUhIG6y3l6rxrMiazce4m+oFkMPxW1ifXe5lTezlBwNivfKAT3mjUnWJcVmnuACenxa6U4lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq5ihNQnHlk/f5x0/ObxRVT9o7c61Fr9sWjO/EhrR5DgIhAPD2P9JBdbl1WkjrC6AJdrevZwK1WdVznMtTFn+12ayT"}]},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.0":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.0","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"0.9.6-23"},"devDependencies":{"vows":"0.5.8"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.0","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"8329bd53db78dc3b84bc4dfd757d0b7addea64b2","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.0.tgz","integrity":"sha512-dbFcZnE11DQpd90EpuPK9kostuepFcdb+rJD8DNc1Y0m7EzGIcPffi0KiHAy+J4vWvN/DIAUaw04k8ZD7wR7Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxEUPGQ3YsxpdanbLVTviQGEi4DTbZV1wl4zw8o9bAwAiBYiDj2WBAHKWWFRyMm27oUliOO6umUcGQT6skOyKno8Q=="}]},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.1":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.1","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"latest","colors":"latest"},"devDependencies":{"vows":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"7e109bf3beccdf17a44db1496a6dd914e5100d0d","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.1.tgz","integrity":"sha512-P2xQJIeB1VhJS0r3qWvfBrbzxirga4jsrM5jlK+kbJpsK3pfXnBbQBs6HyFRdGkkCk7RVlEgulznEArUNvcgtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC30oJhdilqRJJewdTJpY+f0kErRMI4zrwu1jwuYO9dagIgaH/5FEuw7vXI4Jx0WOIa9T8ARKw67B/FTLlsPSLCR2E="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_filter 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.2":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.2","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.2","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"84400929817f39908a51979a62997eff30211d3e","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.2.tgz","integrity":"sha512-uRA3gxGk6uVoROa515+dFREARKmGQhAG9xnF9PKr+1OpI/pr8otb6lwHElcsTNKrV5VwLRgm2x0DxLCgE7O2rA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoLRi1yGl2p/hTHFDR0WPuglLTEkRVD3oyNLTnr0ES5gIgc+Nva4brf8ZrNuFXl60n1/q2DMuFogDQKZ9zF6Qvb1I="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_filter 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.3":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.3","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.3","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"ad2a0673c2e704a4e7acd409b85446d61ffa11e0","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.3.tgz","integrity":"sha512-DwF33kNIXUnf1V6qa+7IG3uclHciDJxS7+UvpJ/UwlHhYSbCMn2LTlfltjf8qJGX1wqxHzthmgr5em7KYpEWRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVVOn4x8fhBLa3LcFzxT9IC/2kodyyEdk6xqzkiek/rQIhAOlG8EWIA2Ms2u8VWsx/pV2GDUqWdMmvFurx9GWDK7z6"}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_filter 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.4":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.4","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.4","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"ae68436481df2d75abd14ecdb03f17fc9d87415c","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.4.tgz","integrity":"sha512-GF0zfbVGJZOd4mcRbSdY7Qi3PazNSuPaodp81lP6qbL9JPwL87LVbM3vxfTYu4vV/ygenB1VavEkw7R2y/MFvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDeUAaKaL2+rlB/VWtzengGski5oPAODMFou6SR00CekAiEA795dTFI7N6r2OYJUaEF3haMav87IgqQMSePTOnKbJmI="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.5":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.5","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.5","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"f9cf554941c2be15fb3f9328603fe33317c7e518","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.5.tgz","integrity":"sha512-TVokThCntIpiE3BJ/Ea3Uj+/D5pDuTEVJSj4lqZBWQVxSCSDzSgOCR+AIPJchiZKiucj+FCQbP+hW3qMn3MTaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBPggqP2yk+Cc8C4N3zFxIDouKtxm0fn9hsleVPV5agzAiEArXNRlzIgQCXa/bI62Vk1KQW+vPZPPEpaCxAuUm3LR70="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.6":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.6","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.4.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.6","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"a3746daabf3d1745e4599f2a56ee0d1340286590","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.6.tgz","integrity":"sha512-APTlJAaZfuFoniVG1UNZRuOGyWpy2+MjnHatPnNlGAHfU6vs0XQ29FUZZzg97Ixlz5RSobdt671VStCjXyuZhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9AhsXW22MQmLhTe5hL1CGsi0LaMc7of8J3UoixybddAiEAm4lDtWRldjNtBOiNONJC6II7bzoEA0tX/H6246g6DE4="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.7":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.7","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.7","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"c88532d7f69fba62e3339274e7795a54c520f053","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.7.tgz","integrity":"sha512-tSBkGJPhEyd4D8H7Kccb6Sr9KEW8UW2VOgzhcNJRCmogDlLpGv5TcTPQiFJBN6lh1AGm0msLhR7QAGqTDc13Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBJnE/TsETpAIYFjxuE9DHc4ZV78mXaQo8eSyCfj0HDAiEA7AN9IFnWPQDZ7lf6xLPj4Ze868cOcfC4qRJL6UJUGLQ="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.8":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.8","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.8","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"00c8e0ba040a27fa9d33646d259ae9f4c8ad6f79","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.8.tgz","integrity":"sha512-bBXdI8l/dn/Jh3rpDeW8/VeQd1AeHqzgFgBjswoi7VteIud4nMUasEZK/y/vEOswl+EIPBLj6p791BscnEGPRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDE+OVr4g0wyn8b3+CqcgUn5x5+s6c9ac+niWl0K/EhgIhAIE4+uS+Czm1rBs/v0oIw234PjuBK0rl8MPhKvXPbmfd"}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.9":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.9","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.9","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"dd3f84e43a44abfa2fcf23ea70929cbc22c4c720","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.9.tgz","integrity":"sha512-gnW0fEWKobexRZpFYdsh4qweXvlYvBu914dZ9QuX5E+cf/wg1M9FSKA6qUio47EZBKtZpunBxECy4PfJ8D8Qbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9OnaCcs0V86B5+RmIg4x4aDKWgvsB/DZYZH+tWzy1PAiEAp5wWQvmkuiWb/XjiPnssS7IyJWWkEHgeSTeVkahJs7s="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.10":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.10","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.10","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"44dc151567f40133b7ef8f0a6873a0540302aec3","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.10.tgz","integrity":"sha512-ngapLkveTrCeay/k6WuvKpAu+tRKEIzVHwPCB9qcgaNIK4ZMNvTWkSkOp1PE6THFjFiWKY1LGCr4C1aJIF46Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBm1/WotvcatkJlbnoXkXT5YXH2MJu7/OEe9ZZEEFQwAiBbzistL7w0qxpgp4zC4RnNyLSORYB6zhchJYP3lQZXfQ=="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.11":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.11","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.11","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"45bf43591118076999258e03885951da9f1ff946","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.11.tgz","integrity":"sha512-vge1mqU/1NC7E0BTlx6nn81J9B0L8d0FPfbxsl+HKXl9qZtLi2KIhkwYk4i+yR/TdgozdgZJXVX/KbiyM1D90Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAiu1C1gxe9E0Vvnz4xXzUnEOyHGxkEnICXbtUruQUSxAiBfnROc37ooUL00GdaiGMcC94+8TMJcxG9OTbLS/Zl8XQ=="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.12":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.12","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.12","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"6eafa5640d53d31a6e36147fa8354f1984165b04","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.12.tgz","integrity":"sha512-vcrH42QiyVEBu20GTdqx6tXXaDUiG2/ZHp3JslkN6DKZwPTUlAyN4hW9Z6aT94nr4yh1q85DfUKXuMxqsrB98A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUwLiQFEv1pM2kFCJITv0Iv+CXtUn71IxTolhPXW7aiAiBr7206+7cXGnx0bbNR12X8rXAKXP0litoHMOGd+Y2dzw=="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.13":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.13","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"latest"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.13","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"789f4a9889f658464f8590398850c0fde4e19efd","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.13.tgz","integrity":"sha512-8sSAgbcqtzgBAymGH/OFyvds9MWIUkAOrc45Fm6UWYitjMiF7r73YM9aO4AX4Q0WMbLsGOYEu3LE0S+yZv0t9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvnS7R2vM3qaD4iHry6sh9JFON1oaZ1f7mGRJdsK4tLAIgVgK+SjElkRVS+PUEAhOy1CeFS/ytEsAMP6LrZq8xIGQ="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.14":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.14","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"git://github.com/mattinsler/node-mongodb-native.git"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.14","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"cb2c8fd66e55502345a8ac8fc2069d4b2fd644d9","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.14.tgz","integrity":"sha512-QCmWMjgEQFkE3DXnkzmd8G0ekfp8ckm7UsVIgVI/zMMn+XYwsLb22RSBhNpI44iFcNmfwFx+6WQD5xgc6ISXYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWBk7objFSy2Dfw++IROQqgzv5ew4de7IuP/q2F5vExwIhAIC3lVPcbT7TE4AYWWnV5YIQfvzdFAEojXnsbpvLAqXy"}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.15":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.15","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"git://github.com/mattinsler/node-mongodb-native.git"},"main":"index","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"_id":"caboose-model@0.1.15","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"bfc9c029580b00b84a6c337e1ad7ae3e6fe09007","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.15.tgz","integrity":"sha512-pgAjWRIuo3MqnmuWaKCgTinUNpmI7Ar7jw6qC4pFfInYiq/gE7v3cCy8gcebc7HVO2ZQPNSGkgHM2dTMMRvwkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHArRNRav4xHMO77xkkhjY3iXAM5HbCVXfHNc3Q6UZd7AiEAoENZVRPEhrDB2ngsrz3dHrme+5lhMV1uCfO4xZWiU9Y="}]},"readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.16":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.16","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":">= 1.1.6"},"main":"index","readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"caboose-model@0.1.16","dist":{"shasum":"7fd43d0aaad6c6731820ad3ef6b5a8ffc8d0c56e","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.16.tgz","integrity":"sha512-GmNhVkOZLYmNtvS8kmSorRO4JIO1HqJ3xSqh2FU1vlnpK54/acQVgnIq9Q+vgh7F+Gbf5eTLNUanxcWL+vRX0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGMS//xgOUUqbk33LX8pf9JvKrKEJNAks2ZBDTbAQ4ksAiEAlsI42qpZON7KTRxgSKH/vQ8x/cjIcBVhElQtuvjzLFo="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"directories":{}},"0.1.17":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.17","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":">= 1.1.7"},"main":"index","readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"caboose-model@0.1.17","dist":{"shasum":"ade0ff247600b0fe4d357fa280dc81c4cec1a996","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.17.tgz","integrity":"sha512-8BU6UnACQz9KEU6fWnQedq8bGdHzD9HsZbKZxAW0FAto3AWp+swvj64TSXUAueN3wb4xz5RIC4bABXuZ6bauaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiVWcL5Io0Z6DQQS85q/2RsTfgZh0Ozc4PlnTIaHQ+/wIgNDWFpvPpL+rfYh5lUOyJTR2W+632/5YD5gzjrIdnhj0="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}]},"0.1.18":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.18","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":">= 1.1.7"},"main":"index","readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"caboose-model@0.1.18","dist":{"shasum":"5e5c648f7a563ede93b0f4b26b40bce462917e7d","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.18.tgz","integrity":"sha512-K4oDI5VCnWPXdUoAYINygJW1eZ1a3X991sQNutw+PNH/psQ8ZZO8n6nUDBjc2qHebSMG926O7WPD4Na37nMiXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAIfWbg1SgQ4JwHAxKEahKnlhuVNRrF8LPsSfEJoD3AgIgSkqomFJ8+KdfkpZtBHg8ZXgrLiZtUCuyDQLcg2THEEQ="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}]},"0.1.19":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.19","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":">= 1.1.11"},"main":"index","readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"caboose-model@0.1.19","dist":{"shasum":"a3a11097f886ad45e0e51e6462626ff6115f38f8","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.19.tgz","integrity":"sha512-0YnirERDRXwUS3wHiaO8ZwbF0bTQpartVgj19V5VtYLGeBrxcL68OUFl/YFjBDdHcgl2huLAeiV0if5HSFwNSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDF6URDNhPrTySO69s30CFTkbcF0FHxjswUY/YKruanuAIhAPQb2U7VGfi3b9BIaXXhlz90GTe9mY/Su2fgi19++qt0"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}]},"0.1.20":{"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"name":"caboose-model","description":"Model system around MongoDB","version":"0.1.20","repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"},"engines":{"node":">= 0.6.0"},"dependencies":{"mongodb":"~1.2.14"},"main":"index","readme":"# Caboose-Model\n\n  A [mongodb](http://mongodb.org/) model library for [caboose](http://www.caboosejs.com/)\n\n## Installation\n\n    npm install caboose-model\n\n## Getting Started\n\n### Using `caboose plugin`\n\n    $ caboose plugin caboose-model install\n\n### Manually\n\nFirst install caboose-model using npm as above.  Make sure to add caboose-model to your package.json file as well.\n\nThen add an initializer to your project (config/initializers/caboose-model.coffee):\n\n    require 'caboose-model'\n\nThis will add model recognition to the Caboose import directive.\n\n## Configuration\n\nThe above initializer will automatically connect to the database listed in the model configuration variable.  For instance, your config/development.coffee might look like this:\n\n    module.exports = (config, next) ->\n      config.model = {\n        host: 'localhost'\n        port: 27017\n        database: 'caboose_model_dev'\n      }\n      next()\n\n## Usage\n\n### Create a model\n\nCreate a User model with `caboose plugin`\n\n    $ caboose plugin caboose-model new User\n\nThis will create a new file at app/models/user.coffee that looks like this:\n\n    class User extends Model\n      store_in 'user'\n\nYou can also create a model in javascript if you'd like.  For the equivalent User model, simply create a file at app/models/user.js that looks like this:\n\n    var Model = require('caboose-model');\n\n    var User = Model.create('User')\n                    .store_in('user');\n\n    module.exports = User.build();\n\n### Use model from a Controller\n\nUsing models from a controller is dead simple.  Just import the model by name and make your calls.\n\n    import 'User'\n    \n    class UsersController extends Controller\n      before_action 'get_user', {only: ['show', 'edit', 'update']}\n      \n      get_user: (next) ->\n        User.where(_id: @params.id).first (err, user) =>\n          return next(err) if err?\n          return next(new Error(\"Failed to load user #{@params.id}\")) unless post?\n          @user = user\n          next()\n      \n      show: -> @render()\n      \n      new: ->\n        @user = new User()\n        @render 'edit'\n  \n      create: ->\n        User.save @body.user, (err, user) =>\n          @redirect_to \"/users/#{user._id}\", {info: \"Successfully created user #{user.name}\"}\n      \n      edit: -> @render()\n      \n      update: ->\n        @user.update {$set: @body.user}, (err) =>\n          return @error(err) if err?\n          @redirect_to \"/users/#{@user._id}\", {info: 'Successfully updated user'}\n\n## API\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011 Matt Insler &lt;matt.insler@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/mattinsler/caboose/issues"},"_id":"caboose-model@0.1.20","dist":{"shasum":"9036ca37ae9c709ca75d010b2e962cbbe6e2a192","tarball":"https://registry.npmjs.org/caboose-model/-/caboose-model-0.1.20.tgz","integrity":"sha512-+79JBmXfezJvoyHjyU1MxnuX+1KnPWcmK4gaKrrfmMnuUeVbOLkjxVVQ05TfQSH52lVINvt1/pIEMTRJwiAcVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDITOozeKK1qmnzQtcFUaIjRo81mviqzalAwHF6krZTVgIgPMRaY0x1GBiBirAyZUmIuYh8fuMlTppTzx9bjoh2GDE="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"mattinsler","email":"matt.insler@gmail.com"},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}]}},"maintainers":[{"name":"mattinsler","email":"matt.insler@gmail.com"}],"time":{"modified":"2022-06-13T05:22:58.631Z","created":"2011-09-07T03:39:13.646Z","0.0.1":"2011-09-07T03:39:14.298Z","0.0.2":"2011-10-11T05:21:55.514Z","0.0.3":"2011-10-20T04:57:16.876Z","0.0.4":"2011-10-20T05:34:33.665Z","0.0.5":"2011-10-28T06:55:17.074Z","0.0.6":"2011-11-03T19:50:20.537Z","0.0.7":"2011-11-03T20:37:52.704Z","0.0.8":"2011-11-04T03:54:13.870Z","0.0.9":"2011-11-20T08:54:57.506Z","0.1.0":"2011-11-21T07:49:58.435Z","0.1.1":"2011-12-30T08:19:49.257Z","0.1.2":"2012-01-17T06:08:57.010Z","0.1.3":"2012-02-06T23:30:06.892Z","0.1.4":"2012-04-06T23:16:24.459Z","0.1.5":"2012-04-09T03:00:57.021Z","0.1.6":"2012-05-30T20:17:45.003Z","0.1.7":"2012-06-01T06:34:53.353Z","0.1.8":"2012-06-01T23:03:49.069Z","0.1.9":"2012-06-07T06:41:54.114Z","0.1.10":"2012-06-13T23:11:41.984Z","0.1.11":"2012-06-15T21:49:30.639Z","0.1.12":"2012-06-20T01:23:06.867Z","0.1.13":"2012-06-27T10:58:44.689Z","0.1.14":"2012-06-27T19:20:46.904Z","0.1.15":"2012-07-01T02:15:26.082Z","0.1.16":"2012-09-06T11:07:53.654Z","0.1.17":"2012-10-01T07:46:53.247Z","0.1.18":"2012-10-29T01:06:28.377Z","0.1.19":"2013-06-26T07:40:55.477Z","0.1.20":"2013-07-31T20:12:24.068Z"},"author":{"name":"Matt Insler","email":"matt.insler@gmail.com","url":"www.mattinsler.com"},"repository":{"type":"git","url":"git@github.com:mattinsler/caboose.git"}}