{"action":"created","issue":{"url":"https://api.github.com/repos/drujensen/kemalyst/issues/6","repository_url":"https://api.github.com/repos/drujensen/kemalyst","labels_url":"https://api.github.com/repos/drujensen/kemalyst/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/drujensen/kemalyst/issues/6/comments","events_url":"https://api.github.com/repos/drujensen/kemalyst/issues/6/events","html_url":"https://github.com/drujensen/kemalyst/issues/6","id":186132845,"number":6,"title":"Syntax error in ./libs/kemalyst/kemalyst/handler/router.cr:141: expecting token ')', not 'as'","user":{"login":"timolehto","id":491473,"avatar_url":"https://avatars.githubusercontent.com/u/491473?v=3","gravatar_id":"","url":"https://api.github.com/users/timolehto","html_url":"https://github.com/timolehto","followers_url":"https://api.github.com/users/timolehto/followers","following_url":"https://api.github.com/users/timolehto/following{/other_user}","gists_url":"https://api.github.com/users/timolehto/gists{/gist_id}","starred_url":"https://api.github.com/users/timolehto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timolehto/subscriptions","organizations_url":"https://api.github.com/users/timolehto/orgs","repos_url":"https://api.github.com/users/timolehto/repos","events_url":"https://api.github.com/users/timolehto/events{/privacy}","received_events_url":"https://api.github.com/users/timolehto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-30T12:15:01Z","updated_at":"2016-10-31T13:51:40Z","closed_at":null,"body":"Hi,\n\nI'm a bit new to crystal and was trying out some of your samples, but I have some difficulties running for example this:\nhttps://github.com/drujensen/chat-kemalyst\n\nI get errors like this from kemalyst:\n\n```\nSyntax error in ./libs/kemalyst/kemalyst/handler/router.cr:141: expecting token ')', not 'as'\n```\n\nLooking at the [offending line](https://github.com/drujensen/kemalyst/blob/master/src/kemalyst/handler/router.cr#L141):\n\n```\nresult = lookup_route(method as String, context.request.path)\n```\n\nIs this perhaps some old syntax or something? I can see that crystal has this [pseudomethod as](https://crystal-lang.org/docs/syntax_and_semantics/as.html) which one can call like this `foo.as String`, but `foo as String` just seems to be wrong.\n"},"comment":{"url":"https://api.github.com/repos/drujensen/kemalyst/issues/comments/257298620","html_url":"https://github.com/drujensen/kemalyst/issues/6#issuecomment-257298620","issue_url":"https://api.github.com/repos/drujensen/kemalyst/issues/6","id":257298620,"user":{"login":"drujensen","id":18718,"avatar_url":"https://avatars.githubusercontent.com/u/18718?v=3","gravatar_id":"","url":"https://api.github.com/users/drujensen","html_url":"https://github.com/drujensen","followers_url":"https://api.github.com/users/drujensen/followers","following_url":"https://api.github.com/users/drujensen/following{/other_user}","gists_url":"https://api.github.com/users/drujensen/gists{/gist_id}","starred_url":"https://api.github.com/users/drujensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drujensen/subscriptions","organizations_url":"https://api.github.com/users/drujensen/orgs","repos_url":"https://api.github.com/users/drujensen/repos","events_url":"https://api.github.com/users/drujensen/events{/privacy}","received_events_url":"https://api.github.com/users/drujensen/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T13:51:39Z","updated_at":"2016-10-31T13:51:39Z","body":"great catch!  I will change the Dockerfile to only install the dependencies instead of update them."}}
{"actor":{"display_login":"drujensen"}}