{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3446","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3446/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3446/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3446/events","html_url":"https://github.com/sequelize/sequelize/pull/3446","id":65775343,"number":3446,"title":"Some fixes to docs generator","user":{"login":"harimohanraj89","id":4241399,"avatar_url":"https://avatars.githubusercontent.com/u/4241399?v=3","gravatar_id":"","url":"https://api.github.com/users/harimohanraj89","html_url":"https://github.com/harimohanraj89","followers_url":"https://api.github.com/users/harimohanraj89/followers","following_url":"https://api.github.com/users/harimohanraj89/following{/other_user}","gists_url":"https://api.github.com/users/harimohanraj89/gists{/gist_id}","starred_url":"https://api.github.com/users/harimohanraj89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harimohanraj89/subscriptions","organizations_url":"https://api.github.com/users/harimohanraj89/orgs","repos_url":"https://api.github.com/users/harimohanraj89/repos","events_url":"https://api.github.com/users/harimohanraj89/events{/privacy}","received_events_url":"https://api.github.com/users/harimohanraj89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"janmeier","id":1210224,"avatar_url":"https://avatars.githubusercontent.com/u/1210224?v=3","gravatar_id":"","url":"https://api.github.com/users/janmeier","html_url":"https://github.com/janmeier","followers_url":"https://api.github.com/users/janmeier/followers","following_url":"https://api.github.com/users/janmeier/following{/other_user}","gists_url":"https://api.github.com/users/janmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/janmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janmeier/subscriptions","organizations_url":"https://api.github.com/users/janmeier/orgs","repos_url":"https://api.github.com/users/janmeier/repos","events_url":"https://api.github.com/users/janmeier/events{/privacy}","received_events_url":"https://api.github.com/users/janmeier/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-01T20:44:12Z","updated_at":"2015-04-07T19:52:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sequelize/sequelize/pulls/3446","html_url":"https://github.com/sequelize/sequelize/pull/3446","diff_url":"https://github.com/sequelize/sequelize/pull/3446.diff","patch_url":"https://github.com/sequelize/sequelize/pull/3446.patch"},"body":"When attempting to build the docs through `npm run docs`, I encountered some errors relating to some things being undefined. Exact error can be found below.\r\n\r\nSome digging brought up two things.\r\n\r\n* The usage of `_.where` inside `getTags()` - `docs/docs-generator.js`\r\n* Some comment sections in `lib/hooks.js` that didn't have a code body directly below them (probably as a result of some refactoring).\r\n\r\nPotential fixes for both are here, along with rebuilt docs. Let me know if there's something in here that needs another looking at. Thanks!\r\n\r\n```\r\n> sequelize@2.0.5 docs /Users/harimohanraj/Code/os/sequelize\r\n> node docs/docs-generator.js\r\n\r\n/Users/harimohanraj/Code/os/sequelize/docs/api/errors.md\r\n\r\n/Users/harimohanraj/Code/os/sequelize/docs/docs-generator.js:91\r\n    if (paramTag.name.indexOf('.') === -1) {\r\n                      ^\r\nTypeError: Cannot call method 'indexOf' of undefined\r\n    at /Users/harimohanraj/Code/os/sequelize/docs/docs-generator.js:91:23\r\n    at Array.forEach (native)\r\n    at Comment.getParams (/Users/harimohanraj/Code/os/sequelize/docs/docs-generator.js:90:25)\r\n    at /Users/harimohanraj/Code/os/sequelize/docs/docs-generator.js:182:53\r\n    at Array.forEach (native)\r\n    at parseComments (/Users/harimohanraj/Code/os/sequelize/docs/docs-generator.js:171:12)\r\n    at /Users/harimohanraj/Code/os/sequelize/docs/docs-generator.js:287:22\r\n    at fs.js:271:14\r\n    at Object.oncomplete (fs.js:107:15)\r\n```"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/90712491","html_url":"https://github.com/sequelize/sequelize/pull/3446#issuecomment-90712491","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/3446","id":90712491,"user":{"login":"janmeier","id":1210224,"avatar_url":"https://avatars.githubusercontent.com/u/1210224?v=3","gravatar_id":"","url":"https://api.github.com/users/janmeier","html_url":"https://github.com/janmeier","followers_url":"https://api.github.com/users/janmeier/followers","following_url":"https://api.github.com/users/janmeier/following{/other_user}","gists_url":"https://api.github.com/users/janmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/janmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janmeier/subscriptions","organizations_url":"https://api.github.com/users/janmeier/orgs","repos_url":"https://api.github.com/users/janmeier/repos","events_url":"https://api.github.com/users/janmeier/events{/privacy}","received_events_url":"https://api.github.com/users/janmeier/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T19:52:38Z","updated_at":"2015-04-07T19:52:38Z","body":"LTGM, the build failure is unrelated"}}