{"action":"created","comment":{"url":"https://api.github.com/repos/vikram7/rubies/pulls/comments/32161366","id":32161366,"diff_hunk":"@@ -155,6 +165,45 @@ def check_answer(current, input, target)\n       end\n     end\n \n+    # deletes the target from the current data structure\n+    def deep_delete(current, target)\n+      return current unless current.is_a? Enumerable\n+      current.\n+          reject  {|value| value == target}.","path":"lib/rubies/game.rb","position":25,"original_position":25,"commit_id":"6fd8ed02154bd9d5627fe4b1e143a771c7886e5f","original_commit_id":"6fd8ed02154bd9d5627fe4b1e143a771c7886e5f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Unnecessary spacing detected.<br>Use 2 (not 4) spaces for indenting an expression spanning multiple lines.<br>Space between { and | missing.<br>Space missing inside }.","created_at":"2015-06-10T20:17:59Z","updated_at":"2015-06-10T20:17:59Z","html_url":"https://github.com/vikram7/rubies/pull/28#discussion_r32161366","pull_request_url":"https://api.github.com/repos/vikram7/rubies/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/vikram7/rubies/pulls/comments/32161366"},"html":{"href":"https://github.com/vikram7/rubies/pull/28#discussion_r32161366"},"pull_request":{"href":"https://api.github.com/repos/vikram7/rubies/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/vikram7/rubies/pulls/28","id":37399771,"html_url":"https://github.com/vikram7/rubies/pull/28","diff_url":"https://github.com/vikram7/rubies/pull/28.diff","patch_url":"https://github.com/vikram7/rubies/pull/28.patch","issue_url":"https://api.github.com/repos/vikram7/rubies/issues/28","number":28,"state":"open","locked":false,"title":"Fix Issue #15","user":{"login":"DylanFrese","id":11223986,"avatar_url":"https://avatars.githubusercontent.com/u/11223986?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanFrese","html_url":"https://github.com/DylanFrese","followers_url":"https://api.github.com/users/DylanFrese/followers","following_url":"https://api.github.com/users/DylanFrese/following{/other_user}","gists_url":"https://api.github.com/users/DylanFrese/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanFrese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanFrese/subscriptions","organizations_url":"https://api.github.com/users/DylanFrese/orgs","repos_url":"https://api.github.com/users/DylanFrese/repos","events_url":"https://api.github.com/users/DylanFrese/events{/privacy}","received_events_url":"https://api.github.com/users/DylanFrese/received_events","type":"User","site_admin":false},"body":"This fixes issue #15, where users could input the target answer and be marked correct. This solution tests the user's solution against various data structures for which it *should* fail, such as empty arrays, nil, and the provided data structure with all instances of the target answer removed. If the user's solution does not fail for each of these tests, it almost certainly means the user's answer is not a function of the provided data structure.\r\n\r\nPersonally, I think this is a design problem rather than a technical problem. Trying to pull a single piece of known data from a known set of data is not a very engaging task; it would be more interesting and 'like-coding' to have the user map 'every name to their phone number' or 'find the sum of any array', without knowing the exact data before hand.","created_at":"2015-06-10T20:17:55Z","updated_at":"2015-06-10T20:18:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"429b2083f53c19ae581f18c6a3ff65c7cdbff0dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vikram7/rubies/pulls/28/commits","review_comments_url":"https://api.github.com/repos/vikram7/rubies/pulls/28/comments","review_comment_url":"https://api.github.com/repos/vikram7/rubies/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vikram7/rubies/issues/28/comments","statuses_url":"https://api.github.com/repos/vikram7/rubies/statuses/6fd8ed02154bd9d5627fe4b1e143a771c7886e5f","head":{"label":"DylanFrese:master","ref":"master","sha":"6fd8ed02154bd9d5627fe4b1e143a771c7886e5f","user":{"login":"DylanFrese","id":11223986,"avatar_url":"https://avatars.githubusercontent.com/u/11223986?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanFrese","html_url":"https://github.com/DylanFrese","followers_url":"https://api.github.com/users/DylanFrese/followers","following_url":"https://api.github.com/users/DylanFrese/following{/other_user}","gists_url":"https://api.github.com/users/DylanFrese/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanFrese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanFrese/subscriptions","organizations_url":"https://api.github.com/users/DylanFrese/orgs","repos_url":"https://api.github.com/users/DylanFrese/repos","events_url":"https://api.github.com/users/DylanFrese/events{/privacy}","received_events_url":"https://api.github.com/users/DylanFrese/received_events","type":"User","site_admin":false},"repo":{"id":37212682,"name":"rubies","full_name":"DylanFrese/rubies","owner":{"login":"DylanFrese","id":11223986,"avatar_url":"https://avatars.githubusercontent.com/u/11223986?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanFrese","html_url":"https://github.com/DylanFrese","followers_url":"https://api.github.com/users/DylanFrese/followers","following_url":"https://api.github.com/users/DylanFrese/following{/other_user}","gists_url":"https://api.github.com/users/DylanFrese/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanFrese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanFrese/subscriptions","organizations_url":"https://api.github.com/users/DylanFrese/orgs","repos_url":"https://api.github.com/users/DylanFrese/repos","events_url":"https://api.github.com/users/DylanFrese/events{/privacy}","received_events_url":"https://api.github.com/users/DylanFrese/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DylanFrese/rubies","description":"A Ruby gem to practice small ruby coding drills","fork":true,"url":"https://api.github.com/repos/DylanFrese/rubies","forks_url":"https://api.github.com/repos/DylanFrese/rubies/forks","keys_url":"https://api.github.com/repos/DylanFrese/rubies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DylanFrese/rubies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DylanFrese/rubies/teams","hooks_url":"https://api.github.com/repos/DylanFrese/rubies/hooks","issue_events_url":"https://api.github.com/repos/DylanFrese/rubies/issues/events{/number}","events_url":"https://api.github.com/repos/DylanFrese/rubies/events","assignees_url":"https://api.github.com/repos/DylanFrese/rubies/assignees{/user}","branches_url":"https://api.github.com/repos/DylanFrese/rubies/branches{/branch}","tags_url":"https://api.github.com/repos/DylanFrese/rubies/tags","blobs_url":"https://api.github.com/repos/DylanFrese/rubies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DylanFrese/rubies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DylanFrese/rubies/git/refs{/sha}","trees_url":"https://api.github.com/repos/DylanFrese/rubies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DylanFrese/rubies/statuses/{sha}","languages_url":"https://api.github.com/repos/DylanFrese/rubies/languages","stargazers_url":"https://api.github.com/repos/DylanFrese/rubies/stargazers","contributors_url":"https://api.github.com/repos/DylanFrese/rubies/contributors","subscribers_url":"https://api.github.com/repos/DylanFrese/rubies/subscribers","subscription_url":"https://api.github.com/repos/DylanFrese/rubies/subscription","commits_url":"https://api.github.com/repos/DylanFrese/rubies/commits{/sha}","git_commits_url":"https://api.github.com/repos/DylanFrese/rubies/git/commits{/sha}","comments_url":"https://api.github.com/repos/DylanFrese/rubies/comments{/number}","issue_comment_url":"https://api.github.com/repos/DylanFrese/rubies/issues/comments{/number}","contents_url":"https://api.github.com/repos/DylanFrese/rubies/contents/{+path}","compare_url":"https://api.github.com/repos/DylanFrese/rubies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DylanFrese/rubies/merges","archive_url":"https://api.github.com/repos/DylanFrese/rubies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DylanFrese/rubies/downloads","issues_url":"https://api.github.com/repos/DylanFrese/rubies/issues{/number}","pulls_url":"https://api.github.com/repos/DylanFrese/rubies/pulls{/number}","milestones_url":"https://api.github.com/repos/DylanFrese/rubies/milestones{/number}","notifications_url":"https://api.github.com/repos/DylanFrese/rubies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DylanFrese/rubies/labels{/name}","releases_url":"https://api.github.com/repos/DylanFrese/rubies/releases{/id}","created_at":"2015-06-10T17:45:43Z","updated_at":"2015-06-10T17:45:43Z","pushed_at":"2015-06-10T20:12:16Z","git_url":"git://github.com/DylanFrese/rubies.git","ssh_url":"git@github.com:DylanFrese/rubies.git","clone_url":"https://github.com/DylanFrese/rubies.git","svn_url":"https://github.com/DylanFrese/rubies","homepage":null,"size":381,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vikram7:master","ref":"master","sha":"036b8200cff83b1f9de5db97c90cea434d5166e9","user":{"login":"vikram7","id":7072744,"avatar_url":"https://avatars.githubusercontent.com/u/7072744?v=3","gravatar_id":"","url":"https://api.github.com/users/vikram7","html_url":"https://github.com/vikram7","followers_url":"https://api.github.com/users/vikram7/followers","following_url":"https://api.github.com/users/vikram7/following{/other_user}","gists_url":"https://api.github.com/users/vikram7/gists{/gist_id}","starred_url":"https://api.github.com/users/vikram7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikram7/subscriptions","organizations_url":"https://api.github.com/users/vikram7/orgs","repos_url":"https://api.github.com/users/vikram7/repos","events_url":"https://api.github.com/users/vikram7/events{/privacy}","received_events_url":"https://api.github.com/users/vikram7/received_events","type":"User","site_admin":false},"repo":{"id":27646389,"name":"rubies","full_name":"vikram7/rubies","owner":{"login":"vikram7","id":7072744,"avatar_url":"https://avatars.githubusercontent.com/u/7072744?v=3","gravatar_id":"","url":"https://api.github.com/users/vikram7","html_url":"https://github.com/vikram7","followers_url":"https://api.github.com/users/vikram7/followers","following_url":"https://api.github.com/users/vikram7/following{/other_user}","gists_url":"https://api.github.com/users/vikram7/gists{/gist_id}","starred_url":"https://api.github.com/users/vikram7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikram7/subscriptions","organizations_url":"https://api.github.com/users/vikram7/orgs","repos_url":"https://api.github.com/users/vikram7/repos","events_url":"https://api.github.com/users/vikram7/events{/privacy}","received_events_url":"https://api.github.com/users/vikram7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vikram7/rubies","description":"A Ruby gem to practice small ruby coding drills","fork":false,"url":"https://api.github.com/repos/vikram7/rubies","forks_url":"https://api.github.com/repos/vikram7/rubies/forks","keys_url":"https://api.github.com/repos/vikram7/rubies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vikram7/rubies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vikram7/rubies/teams","hooks_url":"https://api.github.com/repos/vikram7/rubies/hooks","issue_events_url":"https://api.github.com/repos/vikram7/rubies/issues/events{/number}","events_url":"https://api.github.com/repos/vikram7/rubies/events","assignees_url":"https://api.github.com/repos/vikram7/rubies/assignees{/user}","branches_url":"https://api.github.com/repos/vikram7/rubies/branches{/branch}","tags_url":"https://api.github.com/repos/vikram7/rubies/tags","blobs_url":"https://api.github.com/repos/vikram7/rubies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vikram7/rubies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vikram7/rubies/git/refs{/sha}","trees_url":"https://api.github.com/repos/vikram7/rubies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vikram7/rubies/statuses/{sha}","languages_url":"https://api.github.com/repos/vikram7/rubies/languages","stargazers_url":"https://api.github.com/repos/vikram7/rubies/stargazers","contributors_url":"https://api.github.com/repos/vikram7/rubies/contributors","subscribers_url":"https://api.github.com/repos/vikram7/rubies/subscribers","subscription_url":"https://api.github.com/repos/vikram7/rubies/subscription","commits_url":"https://api.github.com/repos/vikram7/rubies/commits{/sha}","git_commits_url":"https://api.github.com/repos/vikram7/rubies/git/commits{/sha}","comments_url":"https://api.github.com/repos/vikram7/rubies/comments{/number}","issue_comment_url":"https://api.github.com/repos/vikram7/rubies/issues/comments{/number}","contents_url":"https://api.github.com/repos/vikram7/rubies/contents/{+path}","compare_url":"https://api.github.com/repos/vikram7/rubies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vikram7/rubies/merges","archive_url":"https://api.github.com/repos/vikram7/rubies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vikram7/rubies/downloads","issues_url":"https://api.github.com/repos/vikram7/rubies/issues{/number}","pulls_url":"https://api.github.com/repos/vikram7/rubies/pulls{/number}","milestones_url":"https://api.github.com/repos/vikram7/rubies/milestones{/number}","notifications_url":"https://api.github.com/repos/vikram7/rubies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vikram7/rubies/labels{/name}","releases_url":"https://api.github.com/repos/vikram7/rubies/releases{/id}","created_at":"2014-12-06T19:33:35Z","updated_at":"2015-05-12T23:27:32Z","pushed_at":"2015-06-10T20:17:55Z","git_url":"git://github.com/vikram7/rubies.git","ssh_url":"git@github.com:vikram7/rubies.git","clone_url":"https://github.com/vikram7/rubies.git","svn_url":"https://github.com/vikram7/rubies","homepage":null,"size":381,"stargazers_count":17,"watchers_count":17,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vikram7/rubies/pulls/28"},"html":{"href":"https://github.com/vikram7/rubies/pull/28"},"issue":{"href":"https://api.github.com/repos/vikram7/rubies/issues/28"},"comments":{"href":"https://api.github.com/repos/vikram7/rubies/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/vikram7/rubies/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/vikram7/rubies/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vikram7/rubies/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/vikram7/rubies/statuses/6fd8ed02154bd9d5627fe4b1e143a771c7886e5f"}}}}