{"action":"created","issue":{"url":"https://api.github.com/repos/hanami/controller/issues/174","repository_url":"https://api.github.com/repos/hanami/controller","labels_url":"https://api.github.com/repos/hanami/controller/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/hanami/controller/issues/174/comments","events_url":"https://api.github.com/repos/hanami/controller/issues/174/events","html_url":"https://github.com/hanami/controller/pull/174","id":169194663,"number":174,"title":"Raise error on reserved word exposure.","user":{"login":"akhramov","id":5289700,"avatar_url":"https://avatars.githubusercontent.com/u/5289700?v=3","gravatar_id":"","url":"https://api.github.com/users/akhramov","html_url":"https://github.com/akhramov","followers_url":"https://api.github.com/users/akhramov/followers","following_url":"https://api.github.com/users/akhramov/following{/other_user}","gists_url":"https://api.github.com/users/akhramov/gists{/gist_id}","starred_url":"https://api.github.com/users/akhramov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhramov/subscriptions","organizations_url":"https://api.github.com/users/akhramov/orgs","repos_url":"https://api.github.com/users/akhramov/repos","events_url":"https://api.github.com/users/akhramov/events{/privacy}","received_events_url":"https://api.github.com/users/akhramov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-03T18:01:39Z","updated_at":"2016-08-03T18:03:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hanami/controller/pulls/174","html_url":"https://github.com/hanami/controller/pull/174","diff_url":"https://github.com/hanami/controller/pull/174.diff","patch_url":"https://github.com/hanami/controller/pull/174.patch"},"body":"Closes #158\r\n(following text is extracted from [comment](https://github.com/hanami/controller/issues/158#issuecomment-234843765))\r\n\r\nI think we can go with guard module. The idea behind is dead simple:\r\n* Create a module implementing `#expose` method, which raises an exception if given list of words contains one or more reserved word. Otherwise it calls super.\r\n* Prepend this module to an action.\r\n* Introduce an alias method for `#expose` (`#expose!` or `#_expose`) for internal usage. This alias won't be watched by the guard so no exceptions are raised.\r\n"},"comment":{"url":"https://api.github.com/repos/hanami/controller/issues/comments/237318351","html_url":"https://github.com/hanami/controller/pull/174#issuecomment-237318351","issue_url":"https://api.github.com/repos/hanami/controller/issues/174","id":237318351,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T18:03:39Z","updated_at":"2016-08-03T18:03:39Z","body":"\n[![Coverage Status](https://coveralls.io/builds/7291623/badge)](https://coveralls.io/builds/7291623)\n\nCoverage increased (+1.0%) to 99.511% when pulling **cb8886e8c347db224b34014059ebf87b721e19c6 on akhramov:feature/158-raise-exception-for-reserved-words** into **1a3bef405fdb41e89c0d06f848d33e64554658f0 on hanami:master**.\n"}}
{"actor":{"display_login":"coveralls"}}