{"action":"created","comment":{"url":"https://api.github.com/repos/jpclark6/black_thursday/pulls/comments/227956913","pull_request_review_id":168116124,"id":227956913,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzk1NjkxMw==","diff_hunk":"@@ -1,31 +1,29 @@\n class Repository\n \n   def all\n-    @collection\n+    @collection.values\n   end\n \n   def find_by_id(id)\n-    @collection.find do |collection|\n-      collection.id == id\n-    end\n+    @collection[id]\n   end\n \n   def find_by_name(name)\n-    @collection.find do |collection|\n-      collection.name == name\n+    @collection.values.find do |collection|\n+      collection.name.downcase == name.downcase","path":"lib/repository.rb","position":19,"original_position":19,"commit_id":"1d049c53752625fb31a3a7ae4975e42c31d3bbb7","original_commit_id":"1d049c53752625fb31a3a7ae4975e42c31d3bbb7","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Performance/Casecmp: Use casecmp instead of downcase ==.","created_at":"2018-10-24T20:56:39Z","updated_at":"2018-10-24T20:56:40Z","html_url":"https://github.com/jpclark6/black_thursday/pull/6#discussion_r227956913","pull_request_url":"https://api.github.com/repos/jpclark6/black_thursday/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/jpclark6/black_thursday/pulls/comments/227956913"},"html":{"href":"https://github.com/jpclark6/black_thursday/pull/6#discussion_r227956913"},"pull_request":{"href":"https://api.github.com/repos/jpclark6/black_thursday/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/jpclark6/black_thursday/pulls/6","id":225547927,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NTQ3OTI3","html_url":"https://github.com/jpclark6/black_thursday/pull/6","diff_url":"https://github.com/jpclark6/black_thursday/pull/6.diff","patch_url":"https://github.com/jpclark6/black_thursday/pull/6.patch","issue_url":"https://api.github.com/repos/jpclark6/black_thursday/issues/6","number":6,"state":"open","locked":false,"title":"Js iteration0","user":{"login":"stiehlrod","id":25069483,"node_id":"MDQ6VXNlcjI1MDY5NDgz","avatar_url":"https://avatars2.githubusercontent.com/u/25069483?v=4","gravatar_id":"","url":"https://api.github.com/users/stiehlrod","html_url":"https://github.com/stiehlrod","followers_url":"https://api.github.com/users/stiehlrod/followers","following_url":"https://api.github.com/users/stiehlrod/following{/other_user}","gists_url":"https://api.github.com/users/stiehlrod/gists{/gist_id}","starred_url":"https://api.github.com/users/stiehlrod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stiehlrod/subscriptions","organizations_url":"https://api.github.com/users/stiehlrod/orgs","repos_url":"https://api.github.com/users/stiehlrod/repos","events_url":"https://api.github.com/users/stiehlrod/events{/privacy}","received_events_url":"https://api.github.com/users/stiehlrod/received_events","type":"User","site_admin":false},"body":"adds delete by id and conversion to hashes from arrays for item and merchant repos.","created_at":"2018-10-24T20:56:20Z","updated_at":"2018-10-24T20:56:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61d246d41dd1b252d5e7eebc65b23979783bfa19","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jpclark6/black_thursday/pulls/6/commits","review_comments_url":"https://api.github.com/repos/jpclark6/black_thursday/pulls/6/comments","review_comment_url":"https://api.github.com/repos/jpclark6/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jpclark6/black_thursday/issues/6/comments","statuses_url":"https://api.github.com/repos/jpclark6/black_thursday/statuses/1d049c53752625fb31a3a7ae4975e42c31d3bbb7","head":{"label":"jpclark6:js-iteration0","ref":"js-iteration0","sha":"1d049c53752625fb31a3a7ae4975e42c31d3bbb7","user":{"login":"jpclark6","id":41842702,"node_id":"MDQ6VXNlcjQxODQyNzAy","avatar_url":"https://avatars0.githubusercontent.com/u/41842702?v=4","gravatar_id":"","url":"https://api.github.com/users/jpclark6","html_url":"https://github.com/jpclark6","followers_url":"https://api.github.com/users/jpclark6/followers","following_url":"https://api.github.com/users/jpclark6/following{/other_user}","gists_url":"https://api.github.com/users/jpclark6/gists{/gist_id}","starred_url":"https://api.github.com/users/jpclark6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpclark6/subscriptions","organizations_url":"https://api.github.com/users/jpclark6/orgs","repos_url":"https://api.github.com/users/jpclark6/repos","events_url":"https://api.github.com/users/jpclark6/events{/privacy}","received_events_url":"https://api.github.com/users/jpclark6/received_events","type":"User","site_admin":false},"repo":{"id":154178867,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxNzg4Njc=","name":"black_thursday","full_name":"jpclark6/black_thursday","private":false,"owner":{"login":"jpclark6","id":41842702,"node_id":"MDQ6VXNlcjQxODQyNzAy","avatar_url":"https://avatars0.githubusercontent.com/u/41842702?v=4","gravatar_id":"","url":"https://api.github.com/users/jpclark6","html_url":"https://github.com/jpclark6","followers_url":"https://api.github.com/users/jpclark6/followers","following_url":"https://api.github.com/users/jpclark6/following{/other_user}","gists_url":"https://api.github.com/users/jpclark6/gists{/gist_id}","starred_url":"https://api.github.com/users/jpclark6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpclark6/subscriptions","organizations_url":"https://api.github.com/users/jpclark6/orgs","repos_url":"https://api.github.com/users/jpclark6/repos","events_url":"https://api.github.com/users/jpclark6/events{/privacy}","received_events_url":"https://api.github.com/users/jpclark6/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jpclark6/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/jpclark6/black_thursday","forks_url":"https://api.github.com/repos/jpclark6/black_thursday/forks","keys_url":"https://api.github.com/repos/jpclark6/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpclark6/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpclark6/black_thursday/teams","hooks_url":"https://api.github.com/repos/jpclark6/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/jpclark6/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/jpclark6/black_thursday/events","assignees_url":"https://api.github.com/repos/jpclark6/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/jpclark6/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/jpclark6/black_thursday/tags","blobs_url":"https://api.github.com/repos/jpclark6/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpclark6/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpclark6/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpclark6/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpclark6/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/jpclark6/black_thursday/languages","stargazers_url":"https://api.github.com/repos/jpclark6/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/jpclark6/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/jpclark6/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/jpclark6/black_thursday/subscription","commits_url":"https://api.github.com/repos/jpclark6/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpclark6/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpclark6/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpclark6/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpclark6/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/jpclark6/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpclark6/black_thursday/merges","archive_url":"https://api.github.com/repos/jpclark6/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpclark6/black_thursday/downloads","issues_url":"https://api.github.com/repos/jpclark6/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/jpclark6/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/jpclark6/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/jpclark6/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpclark6/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/jpclark6/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/jpclark6/black_thursday/deployments","created_at":"2018-10-22T16:38:10Z","updated_at":"2018-10-24T17:43:45Z","pushed_at":"2018-10-24T20:56:20Z","git_url":"git://github.com/jpclark6/black_thursday.git","ssh_url":"git@github.com:jpclark6/black_thursday.git","clone_url":"https://github.com/jpclark6/black_thursday.git","svn_url":"https://github.com/jpclark6/black_thursday","homepage":null,"size":1817,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"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":"jpclark6:master","ref":"master","sha":"36b22046dc917170722409bc5bff1729aa879a92","user":{"login":"jpclark6","id":41842702,"node_id":"MDQ6VXNlcjQxODQyNzAy","avatar_url":"https://avatars0.githubusercontent.com/u/41842702?v=4","gravatar_id":"","url":"https://api.github.com/users/jpclark6","html_url":"https://github.com/jpclark6","followers_url":"https://api.github.com/users/jpclark6/followers","following_url":"https://api.github.com/users/jpclark6/following{/other_user}","gists_url":"https://api.github.com/users/jpclark6/gists{/gist_id}","starred_url":"https://api.github.com/users/jpclark6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpclark6/subscriptions","organizations_url":"https://api.github.com/users/jpclark6/orgs","repos_url":"https://api.github.com/users/jpclark6/repos","events_url":"https://api.github.com/users/jpclark6/events{/privacy}","received_events_url":"https://api.github.com/users/jpclark6/received_events","type":"User","site_admin":false},"repo":{"id":154178867,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxNzg4Njc=","name":"black_thursday","full_name":"jpclark6/black_thursday","private":false,"owner":{"login":"jpclark6","id":41842702,"node_id":"MDQ6VXNlcjQxODQyNzAy","avatar_url":"https://avatars0.githubusercontent.com/u/41842702?v=4","gravatar_id":"","url":"https://api.github.com/users/jpclark6","html_url":"https://github.com/jpclark6","followers_url":"https://api.github.com/users/jpclark6/followers","following_url":"https://api.github.com/users/jpclark6/following{/other_user}","gists_url":"https://api.github.com/users/jpclark6/gists{/gist_id}","starred_url":"https://api.github.com/users/jpclark6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpclark6/subscriptions","organizations_url":"https://api.github.com/users/jpclark6/orgs","repos_url":"https://api.github.com/users/jpclark6/repos","events_url":"https://api.github.com/users/jpclark6/events{/privacy}","received_events_url":"https://api.github.com/users/jpclark6/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jpclark6/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/jpclark6/black_thursday","forks_url":"https://api.github.com/repos/jpclark6/black_thursday/forks","keys_url":"https://api.github.com/repos/jpclark6/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpclark6/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpclark6/black_thursday/teams","hooks_url":"https://api.github.com/repos/jpclark6/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/jpclark6/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/jpclark6/black_thursday/events","assignees_url":"https://api.github.com/repos/jpclark6/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/jpclark6/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/jpclark6/black_thursday/tags","blobs_url":"https://api.github.com/repos/jpclark6/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpclark6/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpclark6/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpclark6/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpclark6/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/jpclark6/black_thursday/languages","stargazers_url":"https://api.github.com/repos/jpclark6/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/jpclark6/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/jpclark6/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/jpclark6/black_thursday/subscription","commits_url":"https://api.github.com/repos/jpclark6/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpclark6/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpclark6/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpclark6/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpclark6/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/jpclark6/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpclark6/black_thursday/merges","archive_url":"https://api.github.com/repos/jpclark6/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpclark6/black_thursday/downloads","issues_url":"https://api.github.com/repos/jpclark6/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/jpclark6/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/jpclark6/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/jpclark6/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpclark6/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/jpclark6/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/jpclark6/black_thursday/deployments","created_at":"2018-10-22T16:38:10Z","updated_at":"2018-10-24T17:43:45Z","pushed_at":"2018-10-24T20:56:20Z","git_url":"git://github.com/jpclark6/black_thursday.git","ssh_url":"git@github.com:jpclark6/black_thursday.git","clone_url":"https://github.com/jpclark6/black_thursday.git","svn_url":"https://github.com/jpclark6/black_thursday","homepage":null,"size":1817,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"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/jpclark6/black_thursday/pulls/6"},"html":{"href":"https://github.com/jpclark6/black_thursday/pull/6"},"issue":{"href":"https://api.github.com/repos/jpclark6/black_thursday/issues/6"},"comments":{"href":"https://api.github.com/repos/jpclark6/black_thursday/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/jpclark6/black_thursday/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/jpclark6/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jpclark6/black_thursday/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/jpclark6/black_thursday/statuses/1d049c53752625fb31a3a7ae4975e42c31d3bbb7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}