{"action":"created","comment":{"url":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/comments/203949274","pull_request_review_id":138934648,"id":203949274,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzk0OTI3NA==","diff_hunk":"@@ -0,0 +1,35 @@\n+# frozen_string_literal: true\n+\n+module Sinatra\n+  module Authorization\n+    def unauthorized!","path":"app/helpers/authorization.rb","position":5,"original_position":5,"commit_id":"df0563ec08b1c12715e0e7a5809cdf3a3e165754","original_commit_id":"df0563ec08b1c12715e0e7a5809cdf3a3e165754","user":{"login":"hmasila","id":20906768,"node_id":"MDQ6VXNlcjIwOTA2NzY4","avatar_url":"https://avatars0.githubusercontent.com/u/20906768?v=4","gravatar_id":"","url":"https://api.github.com/users/hmasila","html_url":"https://github.com/hmasila","followers_url":"https://api.github.com/users/hmasila/followers","following_url":"https://api.github.com/users/hmasila/following{/other_user}","gists_url":"https://api.github.com/users/hmasila/gists{/gist_id}","starred_url":"https://api.github.com/users/hmasila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmasila/subscriptions","organizations_url":"https://api.github.com/users/hmasila/orgs","repos_url":"https://api.github.com/users/hmasila/repos","events_url":"https://api.github.com/users/hmasila/events{/privacy}","received_events_url":"https://api.github.com/users/hmasila/received_events","type":"User","site_admin":false},"body":"The `!` symbol is used to represent persistence or defin ite change. For example, it is used when saving to the db, `@user.save!` which means it saves to the db and returns the result or returns validation errors if it fails. It is also used to make persistent changes like `[1,4,5,2,6,9,2].sort!` permanently alters the arrangement of the values.\r\n\r\n\r\nWhat's my point? I feel that the use of a bang here is being mis-represented. Maybe you could try something `def unauohorized_page` or `unauthorized_user` or `unauthorized_error_message`","created_at":"2018-07-20T06:34:44Z","updated_at":"2018-07-20T06:41:28Z","html_url":"https://github.com/peterpaints/learnersdigest/pull/8#discussion_r203949274","pull_request_url":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/comments/203949274"},"html":{"href":"https://github.com/peterpaints/learnersdigest/pull/8#discussion_r203949274"},"pull_request":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/8","id":202678756,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNjc4NzU2","html_url":"https://github.com/peterpaints/learnersdigest/pull/8","diff_url":"https://github.com/peterpaints/learnersdigest/pull/8.diff","patch_url":"https://github.com/peterpaints/learnersdigest/pull/8.patch","issue_url":"https://api.github.com/repos/peterpaints/learnersdigest/issues/8","number":8,"state":"open","locked":false,"title":"chore: Refactor","user":{"login":"peterpaints","id":25130454,"node_id":"MDQ6VXNlcjI1MTMwNDU0","avatar_url":"https://avatars2.githubusercontent.com/u/25130454?v=4","gravatar_id":"","url":"https://api.github.com/users/peterpaints","html_url":"https://github.com/peterpaints","followers_url":"https://api.github.com/users/peterpaints/followers","following_url":"https://api.github.com/users/peterpaints/following{/other_user}","gists_url":"https://api.github.com/users/peterpaints/gists{/gist_id}","starred_url":"https://api.github.com/users/peterpaints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterpaints/subscriptions","organizations_url":"https://api.github.com/users/peterpaints/orgs","repos_url":"https://api.github.com/users/peterpaints/repos","events_url":"https://api.github.com/users/peterpaints/events{/privacy}","received_events_url":"https://api.github.com/users/peterpaints/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Refactors folder structure to follow a general rails convention.\r\n- Refactors code to stay in line with `rubocop`'s style guides.\r\n- Adds a rake task to be run by the heroku scheduler\r\n\r\n#### Description of Task to be completed?\r\nN/A\r\n\r\n#### Where should the reviewer start?\r\nView file changes on PR\r\n\r\n#### How should this be manually tested?\r\nRun `rubocop` while in the apps root directory\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[#159048831](https://www.pivotaltracker.com/story/show/159048831)\r\n\r\nScreenshots (if appropriate)\r\nN/A","created_at":"2018-07-19T20:45:40Z","updated_at":"2018-07-20T06:41:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7bf1798529b43f6aa2e389f7b01caed9516166f2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/8/commits","review_comments_url":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/8/comments","review_comment_url":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/peterpaints/learnersdigest/issues/8/comments","statuses_url":"https://api.github.com/repos/peterpaints/learnersdigest/statuses/df0563ec08b1c12715e0e7a5809cdf3a3e165754","head":{"label":"peterpaints:ch-refactor-lint-159048831","ref":"ch-refactor-lint-159048831","sha":"df0563ec08b1c12715e0e7a5809cdf3a3e165754","user":{"login":"peterpaints","id":25130454,"node_id":"MDQ6VXNlcjI1MTMwNDU0","avatar_url":"https://avatars2.githubusercontent.com/u/25130454?v=4","gravatar_id":"","url":"https://api.github.com/users/peterpaints","html_url":"https://github.com/peterpaints","followers_url":"https://api.github.com/users/peterpaints/followers","following_url":"https://api.github.com/users/peterpaints/following{/other_user}","gists_url":"https://api.github.com/users/peterpaints/gists{/gist_id}","starred_url":"https://api.github.com/users/peterpaints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterpaints/subscriptions","organizations_url":"https://api.github.com/users/peterpaints/orgs","repos_url":"https://api.github.com/users/peterpaints/repos","events_url":"https://api.github.com/users/peterpaints/events{/privacy}","received_events_url":"https://api.github.com/users/peterpaints/received_events","type":"User","site_admin":false},"repo":{"id":139954765,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk5NTQ3NjU=","name":"learnersdigest","full_name":"peterpaints/learnersdigest","owner":{"login":"peterpaints","id":25130454,"node_id":"MDQ6VXNlcjI1MTMwNDU0","avatar_url":"https://avatars2.githubusercontent.com/u/25130454?v=4","gravatar_id":"","url":"https://api.github.com/users/peterpaints","html_url":"https://github.com/peterpaints","followers_url":"https://api.github.com/users/peterpaints/followers","following_url":"https://api.github.com/users/peterpaints/following{/other_user}","gists_url":"https://api.github.com/users/peterpaints/gists{/gist_id}","starred_url":"https://api.github.com/users/peterpaints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterpaints/subscriptions","organizations_url":"https://api.github.com/users/peterpaints/orgs","repos_url":"https://api.github.com/users/peterpaints/repos","events_url":"https://api.github.com/users/peterpaints/events{/privacy}","received_events_url":"https://api.github.com/users/peterpaints/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peterpaints/learnersdigest","description":null,"fork":false,"url":"https://api.github.com/repos/peterpaints/learnersdigest","forks_url":"https://api.github.com/repos/peterpaints/learnersdigest/forks","keys_url":"https://api.github.com/repos/peterpaints/learnersdigest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peterpaints/learnersdigest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peterpaints/learnersdigest/teams","hooks_url":"https://api.github.com/repos/peterpaints/learnersdigest/hooks","issue_events_url":"https://api.github.com/repos/peterpaints/learnersdigest/issues/events{/number}","events_url":"https://api.github.com/repos/peterpaints/learnersdigest/events","assignees_url":"https://api.github.com/repos/peterpaints/learnersdigest/assignees{/user}","branches_url":"https://api.github.com/repos/peterpaints/learnersdigest/branches{/branch}","tags_url":"https://api.github.com/repos/peterpaints/learnersdigest/tags","blobs_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/refs{/sha}","trees_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peterpaints/learnersdigest/statuses/{sha}","languages_url":"https://api.github.com/repos/peterpaints/learnersdigest/languages","stargazers_url":"https://api.github.com/repos/peterpaints/learnersdigest/stargazers","contributors_url":"https://api.github.com/repos/peterpaints/learnersdigest/contributors","subscribers_url":"https://api.github.com/repos/peterpaints/learnersdigest/subscribers","subscription_url":"https://api.github.com/repos/peterpaints/learnersdigest/subscription","commits_url":"https://api.github.com/repos/peterpaints/learnersdigest/commits{/sha}","git_commits_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/commits{/sha}","comments_url":"https://api.github.com/repos/peterpaints/learnersdigest/comments{/number}","issue_comment_url":"https://api.github.com/repos/peterpaints/learnersdigest/issues/comments{/number}","contents_url":"https://api.github.com/repos/peterpaints/learnersdigest/contents/{+path}","compare_url":"https://api.github.com/repos/peterpaints/learnersdigest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peterpaints/learnersdigest/merges","archive_url":"https://api.github.com/repos/peterpaints/learnersdigest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peterpaints/learnersdigest/downloads","issues_url":"https://api.github.com/repos/peterpaints/learnersdigest/issues{/number}","pulls_url":"https://api.github.com/repos/peterpaints/learnersdigest/pulls{/number}","milestones_url":"https://api.github.com/repos/peterpaints/learnersdigest/milestones{/number}","notifications_url":"https://api.github.com/repos/peterpaints/learnersdigest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peterpaints/learnersdigest/labels{/name}","releases_url":"https://api.github.com/repos/peterpaints/learnersdigest/releases{/id}","deployments_url":"https://api.github.com/repos/peterpaints/learnersdigest/deployments","created_at":"2018-07-06T08:17:03Z","updated_at":"2018-07-06T08:21:10Z","pushed_at":"2018-07-20T00:02:53Z","git_url":"git://github.com/peterpaints/learnersdigest.git","ssh_url":"git@github.com:peterpaints/learnersdigest.git","clone_url":"https://github.com/peterpaints/learnersdigest.git","svn_url":"https://github.com/peterpaints/learnersdigest","homepage":null,"size":477,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"peterpaints:develop","ref":"develop","sha":"75466943162d87b7dfe8f98ae87f547cddfff003","user":{"login":"peterpaints","id":25130454,"node_id":"MDQ6VXNlcjI1MTMwNDU0","avatar_url":"https://avatars2.githubusercontent.com/u/25130454?v=4","gravatar_id":"","url":"https://api.github.com/users/peterpaints","html_url":"https://github.com/peterpaints","followers_url":"https://api.github.com/users/peterpaints/followers","following_url":"https://api.github.com/users/peterpaints/following{/other_user}","gists_url":"https://api.github.com/users/peterpaints/gists{/gist_id}","starred_url":"https://api.github.com/users/peterpaints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterpaints/subscriptions","organizations_url":"https://api.github.com/users/peterpaints/orgs","repos_url":"https://api.github.com/users/peterpaints/repos","events_url":"https://api.github.com/users/peterpaints/events{/privacy}","received_events_url":"https://api.github.com/users/peterpaints/received_events","type":"User","site_admin":false},"repo":{"id":139954765,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk5NTQ3NjU=","name":"learnersdigest","full_name":"peterpaints/learnersdigest","owner":{"login":"peterpaints","id":25130454,"node_id":"MDQ6VXNlcjI1MTMwNDU0","avatar_url":"https://avatars2.githubusercontent.com/u/25130454?v=4","gravatar_id":"","url":"https://api.github.com/users/peterpaints","html_url":"https://github.com/peterpaints","followers_url":"https://api.github.com/users/peterpaints/followers","following_url":"https://api.github.com/users/peterpaints/following{/other_user}","gists_url":"https://api.github.com/users/peterpaints/gists{/gist_id}","starred_url":"https://api.github.com/users/peterpaints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterpaints/subscriptions","organizations_url":"https://api.github.com/users/peterpaints/orgs","repos_url":"https://api.github.com/users/peterpaints/repos","events_url":"https://api.github.com/users/peterpaints/events{/privacy}","received_events_url":"https://api.github.com/users/peterpaints/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peterpaints/learnersdigest","description":null,"fork":false,"url":"https://api.github.com/repos/peterpaints/learnersdigest","forks_url":"https://api.github.com/repos/peterpaints/learnersdigest/forks","keys_url":"https://api.github.com/repos/peterpaints/learnersdigest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peterpaints/learnersdigest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peterpaints/learnersdigest/teams","hooks_url":"https://api.github.com/repos/peterpaints/learnersdigest/hooks","issue_events_url":"https://api.github.com/repos/peterpaints/learnersdigest/issues/events{/number}","events_url":"https://api.github.com/repos/peterpaints/learnersdigest/events","assignees_url":"https://api.github.com/repos/peterpaints/learnersdigest/assignees{/user}","branches_url":"https://api.github.com/repos/peterpaints/learnersdigest/branches{/branch}","tags_url":"https://api.github.com/repos/peterpaints/learnersdigest/tags","blobs_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/refs{/sha}","trees_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peterpaints/learnersdigest/statuses/{sha}","languages_url":"https://api.github.com/repos/peterpaints/learnersdigest/languages","stargazers_url":"https://api.github.com/repos/peterpaints/learnersdigest/stargazers","contributors_url":"https://api.github.com/repos/peterpaints/learnersdigest/contributors","subscribers_url":"https://api.github.com/repos/peterpaints/learnersdigest/subscribers","subscription_url":"https://api.github.com/repos/peterpaints/learnersdigest/subscription","commits_url":"https://api.github.com/repos/peterpaints/learnersdigest/commits{/sha}","git_commits_url":"https://api.github.com/repos/peterpaints/learnersdigest/git/commits{/sha}","comments_url":"https://api.github.com/repos/peterpaints/learnersdigest/comments{/number}","issue_comment_url":"https://api.github.com/repos/peterpaints/learnersdigest/issues/comments{/number}","contents_url":"https://api.github.com/repos/peterpaints/learnersdigest/contents/{+path}","compare_url":"https://api.github.com/repos/peterpaints/learnersdigest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peterpaints/learnersdigest/merges","archive_url":"https://api.github.com/repos/peterpaints/learnersdigest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peterpaints/learnersdigest/downloads","issues_url":"https://api.github.com/repos/peterpaints/learnersdigest/issues{/number}","pulls_url":"https://api.github.com/repos/peterpaints/learnersdigest/pulls{/number}","milestones_url":"https://api.github.com/repos/peterpaints/learnersdigest/milestones{/number}","notifications_url":"https://api.github.com/repos/peterpaints/learnersdigest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peterpaints/learnersdigest/labels{/name}","releases_url":"https://api.github.com/repos/peterpaints/learnersdigest/releases{/id}","deployments_url":"https://api.github.com/repos/peterpaints/learnersdigest/deployments","created_at":"2018-07-06T08:17:03Z","updated_at":"2018-07-06T08:21:10Z","pushed_at":"2018-07-20T00:02:53Z","git_url":"git://github.com/peterpaints/learnersdigest.git","ssh_url":"git@github.com:peterpaints/learnersdigest.git","clone_url":"https://github.com/peterpaints/learnersdigest.git","svn_url":"https://github.com/peterpaints/learnersdigest","homepage":null,"size":477,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/8"},"html":{"href":"https://github.com/peterpaints/learnersdigest/pull/8"},"issue":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/issues/8"},"comments":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/peterpaints/learnersdigest/statuses/df0563ec08b1c12715e0e7a5809cdf3a3e165754"}},"author_association":"OWNER"}}
{"actor":{"display_login":"hmasila"}}