{"action":"created","comment":{"url":"https://api.github.com/repos/amber-crystal/amber/pulls/comments/135367654","pull_request_review_id":58779714,"id":135367654,"diff_hunk":"@@ -2,6 +2,9 @@ require \"amber\"\n require \"../config/*\"\n require \"./models/**\"\n require \"./mailers/**\"\n+require \"./middleware/**\"","path":"src/templates/app/src/{{name}}.cr","position":4,"original_position":4,"commit_id":"1319cde06acb9d2aba34cd1d66df77f7cc3194b4","original_commit_id":"6c2751c76bb445e914789becdf6e3bcf0a3aab74","user":{"login":"drujensen","id":18718,"avatar_url":"https://avatars2.githubusercontent.com/u/18718?v=4","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},"body":"yeah, sounds good.","created_at":"2017-08-25T22:50:38Z","updated_at":"2017-08-25T22:50:38Z","html_url":"https://github.com/amber-crystal/amber/pull/186#discussion_r135367654","pull_request_url":"https://api.github.com/repos/amber-crystal/amber/pulls/186","_links":{"self":{"href":"https://api.github.com/repos/amber-crystal/amber/pulls/comments/135367654"},"html":{"href":"https://github.com/amber-crystal/amber/pull/186#discussion_r135367654"},"pull_request":{"href":"https://api.github.com/repos/amber-crystal/amber/pulls/186"}},"in_reply_to_id":135333079},"pull_request":{"url":"https://api.github.com/repos/amber-crystal/amber/pulls/186","id":137719951,"html_url":"https://github.com/amber-crystal/amber/pull/186","diff_url":"https://github.com/amber-crystal/amber/pull/186.diff","patch_url":"https://github.com/amber-crystal/amber/pull/186.patch","issue_url":"https://api.github.com/repos/amber-crystal/amber/issues/186","number":186,"state":"closed","locked":false,"title":"provide auth generation","user":{"login":"drujensen","id":18718,"avatar_url":"https://avatars2.githubusercontent.com/u/18718?v=4","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},"body":"This change provides the ability to generate an authenticated resource.\r\n\r\nUnfortunately, there is some templating that is duplicated with minor modifications. We may want to look at a way to sharing templates between generators.\r\n\r\nTo test:\r\n\r\namber new project --deps\r\ncd project\r\namber g auth User name:string\r\ncrystal db/seeds.cr\r\nThis will generate a User model with scaffolding.\r\nIt forces generation of email:string and encrypted_password:string fields.\r\nIt adds the SessionController with login/create/logout methods with routes.\r\nIt adds a new middleware/Authenticate to the pipeline.\r\nIt adds a db/seeds.cr that will create a new user.\r\nIt adds a new field type password for correct generation of the forms.","created_at":"2017-08-25T17:22:02Z","updated_at":"2017-08-25T22:50:38Z","closed_at":"2017-08-25T22:49:13Z","merged_at":null,"merge_commit_sha":"343ac5ebbff9e5a1a00afdd8a2a37bf2a17c9814","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/amber-crystal/amber/pulls/186/commits","review_comments_url":"https://api.github.com/repos/amber-crystal/amber/pulls/186/comments","review_comment_url":"https://api.github.com/repos/amber-crystal/amber/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amber-crystal/amber/issues/186/comments","statuses_url":"https://api.github.com/repos/amber-crystal/amber/statuses/1319cde06acb9d2aba34cd1d66df77f7cc3194b4","head":{"label":"amber-crystal:db/auth","ref":"db/auth","sha":"1319cde06acb9d2aba34cd1d66df77f7cc3194b4","user":{"login":"amber-crystal","id":27691024,"avatar_url":"https://avatars1.githubusercontent.com/u/27691024?v=4","gravatar_id":"","url":"https://api.github.com/users/amber-crystal","html_url":"https://github.com/amber-crystal","followers_url":"https://api.github.com/users/amber-crystal/followers","following_url":"https://api.github.com/users/amber-crystal/following{/other_user}","gists_url":"https://api.github.com/users/amber-crystal/gists{/gist_id}","starred_url":"https://api.github.com/users/amber-crystal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amber-crystal/subscriptions","organizations_url":"https://api.github.com/users/amber-crystal/orgs","repos_url":"https://api.github.com/users/amber-crystal/repos","events_url":"https://api.github.com/users/amber-crystal/events{/privacy}","received_events_url":"https://api.github.com/users/amber-crystal/received_events","type":"Organization","site_admin":false},"repo":{"id":88535378,"name":"amber","full_name":"amber-crystal/amber","owner":{"login":"amber-crystal","id":27691024,"avatar_url":"https://avatars1.githubusercontent.com/u/27691024?v=4","gravatar_id":"","url":"https://api.github.com/users/amber-crystal","html_url":"https://github.com/amber-crystal","followers_url":"https://api.github.com/users/amber-crystal/followers","following_url":"https://api.github.com/users/amber-crystal/following{/other_user}","gists_url":"https://api.github.com/users/amber-crystal/gists{/gist_id}","starred_url":"https://api.github.com/users/amber-crystal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amber-crystal/subscriptions","organizations_url":"https://api.github.com/users/amber-crystal/orgs","repos_url":"https://api.github.com/users/amber-crystal/repos","events_url":"https://api.github.com/users/amber-crystal/events{/privacy}","received_events_url":"https://api.github.com/users/amber-crystal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amber-crystal/amber","description":"Amber is an open source efficient  and cohesive web application framework developed for the Crystal language","fork":false,"url":"https://api.github.com/repos/amber-crystal/amber","forks_url":"https://api.github.com/repos/amber-crystal/amber/forks","keys_url":"https://api.github.com/repos/amber-crystal/amber/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amber-crystal/amber/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amber-crystal/amber/teams","hooks_url":"https://api.github.com/repos/amber-crystal/amber/hooks","issue_events_url":"https://api.github.com/repos/amber-crystal/amber/issues/events{/number}","events_url":"https://api.github.com/repos/amber-crystal/amber/events","assignees_url":"https://api.github.com/repos/amber-crystal/amber/assignees{/user}","branches_url":"https://api.github.com/repos/amber-crystal/amber/branches{/branch}","tags_url":"https://api.github.com/repos/amber-crystal/amber/tags","blobs_url":"https://api.github.com/repos/amber-crystal/amber/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amber-crystal/amber/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amber-crystal/amber/git/refs{/sha}","trees_url":"https://api.github.com/repos/amber-crystal/amber/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amber-crystal/amber/statuses/{sha}","languages_url":"https://api.github.com/repos/amber-crystal/amber/languages","stargazers_url":"https://api.github.com/repos/amber-crystal/amber/stargazers","contributors_url":"https://api.github.com/repos/amber-crystal/amber/contributors","subscribers_url":"https://api.github.com/repos/amber-crystal/amber/subscribers","subscription_url":"https://api.github.com/repos/amber-crystal/amber/subscription","commits_url":"https://api.github.com/repos/amber-crystal/amber/commits{/sha}","git_commits_url":"https://api.github.com/repos/amber-crystal/amber/git/commits{/sha}","comments_url":"https://api.github.com/repos/amber-crystal/amber/comments{/number}","issue_comment_url":"https://api.github.com/repos/amber-crystal/amber/issues/comments{/number}","contents_url":"https://api.github.com/repos/amber-crystal/amber/contents/{+path}","compare_url":"https://api.github.com/repos/amber-crystal/amber/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amber-crystal/amber/merges","archive_url":"https://api.github.com/repos/amber-crystal/amber/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amber-crystal/amber/downloads","issues_url":"https://api.github.com/repos/amber-crystal/amber/issues{/number}","pulls_url":"https://api.github.com/repos/amber-crystal/amber/pulls{/number}","milestones_url":"https://api.github.com/repos/amber-crystal/amber/milestones{/number}","notifications_url":"https://api.github.com/repos/amber-crystal/amber/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amber-crystal/amber/labels{/name}","releases_url":"https://api.github.com/repos/amber-crystal/amber/releases{/id}","deployments_url":"https://api.github.com/repos/amber-crystal/amber/deployments","created_at":"2017-04-17T18:02:35Z","updated_at":"2017-08-25T18:51:32Z","pushed_at":"2017-08-25T22:49:13Z","git_url":"git://github.com/amber-crystal/amber.git","ssh_url":"git@github.com:amber-crystal/amber.git","clone_url":"https://github.com/amber-crystal/amber.git","svn_url":"https://github.com/amber-crystal/amber","homepage":"http://www.ambercr.io/","size":6609,"stargazers_count":184,"watchers_count":184,"language":"Crystal","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":12,"forks":23,"open_issues":12,"watchers":184,"default_branch":"master"}},"base":{"label":"amber-crystal:master","ref":"master","sha":"5321ff8e235ac4399f815d3698dcc5fefadb2135","user":{"login":"amber-crystal","id":27691024,"avatar_url":"https://avatars1.githubusercontent.com/u/27691024?v=4","gravatar_id":"","url":"https://api.github.com/users/amber-crystal","html_url":"https://github.com/amber-crystal","followers_url":"https://api.github.com/users/amber-crystal/followers","following_url":"https://api.github.com/users/amber-crystal/following{/other_user}","gists_url":"https://api.github.com/users/amber-crystal/gists{/gist_id}","starred_url":"https://api.github.com/users/amber-crystal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amber-crystal/subscriptions","organizations_url":"https://api.github.com/users/amber-crystal/orgs","repos_url":"https://api.github.com/users/amber-crystal/repos","events_url":"https://api.github.com/users/amber-crystal/events{/privacy}","received_events_url":"https://api.github.com/users/amber-crystal/received_events","type":"Organization","site_admin":false},"repo":{"id":88535378,"name":"amber","full_name":"amber-crystal/amber","owner":{"login":"amber-crystal","id":27691024,"avatar_url":"https://avatars1.githubusercontent.com/u/27691024?v=4","gravatar_id":"","url":"https://api.github.com/users/amber-crystal","html_url":"https://github.com/amber-crystal","followers_url":"https://api.github.com/users/amber-crystal/followers","following_url":"https://api.github.com/users/amber-crystal/following{/other_user}","gists_url":"https://api.github.com/users/amber-crystal/gists{/gist_id}","starred_url":"https://api.github.com/users/amber-crystal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amber-crystal/subscriptions","organizations_url":"https://api.github.com/users/amber-crystal/orgs","repos_url":"https://api.github.com/users/amber-crystal/repos","events_url":"https://api.github.com/users/amber-crystal/events{/privacy}","received_events_url":"https://api.github.com/users/amber-crystal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amber-crystal/amber","description":"Amber is an open source efficient  and cohesive web application framework developed for the Crystal language","fork":false,"url":"https://api.github.com/repos/amber-crystal/amber","forks_url":"https://api.github.com/repos/amber-crystal/amber/forks","keys_url":"https://api.github.com/repos/amber-crystal/amber/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amber-crystal/amber/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amber-crystal/amber/teams","hooks_url":"https://api.github.com/repos/amber-crystal/amber/hooks","issue_events_url":"https://api.github.com/repos/amber-crystal/amber/issues/events{/number}","events_url":"https://api.github.com/repos/amber-crystal/amber/events","assignees_url":"https://api.github.com/repos/amber-crystal/amber/assignees{/user}","branches_url":"https://api.github.com/repos/amber-crystal/amber/branches{/branch}","tags_url":"https://api.github.com/repos/amber-crystal/amber/tags","blobs_url":"https://api.github.com/repos/amber-crystal/amber/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amber-crystal/amber/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amber-crystal/amber/git/refs{/sha}","trees_url":"https://api.github.com/repos/amber-crystal/amber/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amber-crystal/amber/statuses/{sha}","languages_url":"https://api.github.com/repos/amber-crystal/amber/languages","stargazers_url":"https://api.github.com/repos/amber-crystal/amber/stargazers","contributors_url":"https://api.github.com/repos/amber-crystal/amber/contributors","subscribers_url":"https://api.github.com/repos/amber-crystal/amber/subscribers","subscription_url":"https://api.github.com/repos/amber-crystal/amber/subscription","commits_url":"https://api.github.com/repos/amber-crystal/amber/commits{/sha}","git_commits_url":"https://api.github.com/repos/amber-crystal/amber/git/commits{/sha}","comments_url":"https://api.github.com/repos/amber-crystal/amber/comments{/number}","issue_comment_url":"https://api.github.com/repos/amber-crystal/amber/issues/comments{/number}","contents_url":"https://api.github.com/repos/amber-crystal/amber/contents/{+path}","compare_url":"https://api.github.com/repos/amber-crystal/amber/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amber-crystal/amber/merges","archive_url":"https://api.github.com/repos/amber-crystal/amber/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amber-crystal/amber/downloads","issues_url":"https://api.github.com/repos/amber-crystal/amber/issues{/number}","pulls_url":"https://api.github.com/repos/amber-crystal/amber/pulls{/number}","milestones_url":"https://api.github.com/repos/amber-crystal/amber/milestones{/number}","notifications_url":"https://api.github.com/repos/amber-crystal/amber/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amber-crystal/amber/labels{/name}","releases_url":"https://api.github.com/repos/amber-crystal/amber/releases{/id}","deployments_url":"https://api.github.com/repos/amber-crystal/amber/deployments","created_at":"2017-04-17T18:02:35Z","updated_at":"2017-08-25T18:51:32Z","pushed_at":"2017-08-25T22:49:13Z","git_url":"git://github.com/amber-crystal/amber.git","ssh_url":"git@github.com:amber-crystal/amber.git","clone_url":"https://github.com/amber-crystal/amber.git","svn_url":"https://github.com/amber-crystal/amber","homepage":"http://www.ambercr.io/","size":6609,"stargazers_count":184,"watchers_count":184,"language":"Crystal","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":12,"forks":23,"open_issues":12,"watchers":184,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amber-crystal/amber/pulls/186"},"html":{"href":"https://github.com/amber-crystal/amber/pull/186"},"issue":{"href":"https://api.github.com/repos/amber-crystal/amber/issues/186"},"comments":{"href":"https://api.github.com/repos/amber-crystal/amber/issues/186/comments"},"review_comments":{"href":"https://api.github.com/repos/amber-crystal/amber/pulls/186/comments"},"review_comment":{"href":"https://api.github.com/repos/amber-crystal/amber/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amber-crystal/amber/pulls/186/commits"},"statuses":{"href":"https://api.github.com/repos/amber-crystal/amber/statuses/1319cde06acb9d2aba34cd1d66df77f7cc3194b4"}}}}
{"actor":{"display_login":"drujensen"}}