{"action":"created","comment":{"url":"https://api.github.com/repos/rubinius/rubinius/pulls/comments/26237401","id":26237401,"diff_hunk":"@@ -160,6 +160,29 @@ def slice_before(arg = undefined, &block)\n     end\n   end\n \n+  def slice_after(pattern = undefined, &block)\n+    pattern_given = !undefined.equal?(pattern)\n+    raise ArgumentError, \"cannot pass both pattern and block\" if pattern_given && block_given?\n+    raise ArgumentError, \"wrong number of arguments (0 for 1)\" if !pattern_given && !block_given?\n+    block = Proc.new { |elem| pattern === elem } if pattern_given","path":"kernel/common/enumerable.rb","position":8,"original_position":8,"commit_id":"0cf5e0bbba956eb6facdfd6a5a8189db2ea9f5f5","original_commit_id":"0cf5e0bbba956eb6facdfd6a5a8189db2ea9f5f5","user":{"login":"YorickPeterse","id":86065,"avatar_url":"https://avatars.githubusercontent.com/u/86065?v=3","gravatar_id":"","url":"https://api.github.com/users/YorickPeterse","html_url":"https://github.com/YorickPeterse","followers_url":"https://api.github.com/users/YorickPeterse/followers","following_url":"https://api.github.com/users/YorickPeterse/following{/other_user}","gists_url":"https://api.github.com/users/YorickPeterse/gists{/gist_id}","starred_url":"https://api.github.com/users/YorickPeterse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YorickPeterse/subscriptions","organizations_url":"https://api.github.com/users/YorickPeterse/orgs","repos_url":"https://api.github.com/users/YorickPeterse/repos","events_url":"https://api.github.com/users/YorickPeterse/events{/privacy}","received_events_url":"https://api.github.com/users/YorickPeterse/received_events","type":"User","site_admin":false},"body":"Probably should've been more clear with this (my bad), I meant whitespace between every line, not just the one preceding `Enumerator.new do ...`","created_at":"2015-03-11T17:54:02Z","updated_at":"2015-03-11T17:54:02Z","html_url":"https://github.com/rubinius/rubinius/pull/3351#discussion_r26237401","pull_request_url":"https://api.github.com/repos/rubinius/rubinius/pulls/3351","_links":{"self":{"href":"https://api.github.com/repos/rubinius/rubinius/pulls/comments/26237401"},"html":{"href":"https://github.com/rubinius/rubinius/pull/3351#discussion_r26237401"},"pull_request":{"href":"https://api.github.com/repos/rubinius/rubinius/pulls/3351"}}},"pull_request":{"url":"https://api.github.com/repos/rubinius/rubinius/pulls/3351","id":30722894,"html_url":"https://github.com/rubinius/rubinius/pull/3351","diff_url":"https://github.com/rubinius/rubinius/pull/3351.diff","patch_url":"https://github.com/rubinius/rubinius/pull/3351.patch","issue_url":"https://api.github.com/repos/rubinius/rubinius/issues/3351","number":3351,"state":"open","locked":false,"title":"Implement Enumerable#slice_after","user":{"login":"jsyeo","id":1090020,"avatar_url":"https://avatars.githubusercontent.com/u/1090020?v=3","gravatar_id":"","url":"https://api.github.com/users/jsyeo","html_url":"https://github.com/jsyeo","followers_url":"https://api.github.com/users/jsyeo/followers","following_url":"https://api.github.com/users/jsyeo/following{/other_user}","gists_url":"https://api.github.com/users/jsyeo/gists{/gist_id}","starred_url":"https://api.github.com/users/jsyeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsyeo/subscriptions","organizations_url":"https://api.github.com/users/jsyeo/orgs","repos_url":"https://api.github.com/users/jsyeo/repos","events_url":"https://api.github.com/users/jsyeo/events{/privacy}","received_events_url":"https://api.github.com/users/jsyeo/received_events","type":"User","site_admin":false},"body":"Now that we have the specs for Enumerable#slice_after, we can implement it!\r\n\r\nI hope I didn't confuse anyone with the crazy case when usage. Correct me if I am wrong, but I think it's more readable than a bunch of `if`s and `nil?`s.","created_at":"2015-03-08T17:20:12Z","updated_at":"2015-03-11T17:54:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebaa06ea1574347927b257174dd85e14069a3a95","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rubinius/rubinius/pulls/3351/commits","review_comments_url":"https://api.github.com/repos/rubinius/rubinius/pulls/3351/comments","review_comment_url":"https://api.github.com/repos/rubinius/rubinius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubinius/rubinius/issues/3351/comments","statuses_url":"https://api.github.com/repos/rubinius/rubinius/statuses/0cf5e0bbba956eb6facdfd6a5a8189db2ea9f5f5","head":{"label":"jsyeo:slice-after","ref":"slice-after","sha":"0cf5e0bbba956eb6facdfd6a5a8189db2ea9f5f5","user":{"login":"jsyeo","id":1090020,"avatar_url":"https://avatars.githubusercontent.com/u/1090020?v=3","gravatar_id":"","url":"https://api.github.com/users/jsyeo","html_url":"https://github.com/jsyeo","followers_url":"https://api.github.com/users/jsyeo/followers","following_url":"https://api.github.com/users/jsyeo/following{/other_user}","gists_url":"https://api.github.com/users/jsyeo/gists{/gist_id}","starred_url":"https://api.github.com/users/jsyeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsyeo/subscriptions","organizations_url":"https://api.github.com/users/jsyeo/orgs","repos_url":"https://api.github.com/users/jsyeo/repos","events_url":"https://api.github.com/users/jsyeo/events{/privacy}","received_events_url":"https://api.github.com/users/jsyeo/received_events","type":"User","site_admin":false},"repo":{"id":31618574,"name":"rubinius","full_name":"jsyeo/rubinius","owner":{"login":"jsyeo","id":1090020,"avatar_url":"https://avatars.githubusercontent.com/u/1090020?v=3","gravatar_id":"","url":"https://api.github.com/users/jsyeo","html_url":"https://github.com/jsyeo","followers_url":"https://api.github.com/users/jsyeo/followers","following_url":"https://api.github.com/users/jsyeo/following{/other_user}","gists_url":"https://api.github.com/users/jsyeo/gists{/gist_id}","starred_url":"https://api.github.com/users/jsyeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsyeo/subscriptions","organizations_url":"https://api.github.com/users/jsyeo/orgs","repos_url":"https://api.github.com/users/jsyeo/repos","events_url":"https://api.github.com/users/jsyeo/events{/privacy}","received_events_url":"https://api.github.com/users/jsyeo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jsyeo/rubinius","description":"The Rubinius Language Platform","fork":true,"url":"https://api.github.com/repos/jsyeo/rubinius","forks_url":"https://api.github.com/repos/jsyeo/rubinius/forks","keys_url":"https://api.github.com/repos/jsyeo/rubinius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsyeo/rubinius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsyeo/rubinius/teams","hooks_url":"https://api.github.com/repos/jsyeo/rubinius/hooks","issue_events_url":"https://api.github.com/repos/jsyeo/rubinius/issues/events{/number}","events_url":"https://api.github.com/repos/jsyeo/rubinius/events","assignees_url":"https://api.github.com/repos/jsyeo/rubinius/assignees{/user}","branches_url":"https://api.github.com/repos/jsyeo/rubinius/branches{/branch}","tags_url":"https://api.github.com/repos/jsyeo/rubinius/tags","blobs_url":"https://api.github.com/repos/jsyeo/rubinius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsyeo/rubinius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsyeo/rubinius/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsyeo/rubinius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsyeo/rubinius/statuses/{sha}","languages_url":"https://api.github.com/repos/jsyeo/rubinius/languages","stargazers_url":"https://api.github.com/repos/jsyeo/rubinius/stargazers","contributors_url":"https://api.github.com/repos/jsyeo/rubinius/contributors","subscribers_url":"https://api.github.com/repos/jsyeo/rubinius/subscribers","subscription_url":"https://api.github.com/repos/jsyeo/rubinius/subscription","commits_url":"https://api.github.com/repos/jsyeo/rubinius/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsyeo/rubinius/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsyeo/rubinius/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsyeo/rubinius/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsyeo/rubinius/contents/{+path}","compare_url":"https://api.github.com/repos/jsyeo/rubinius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsyeo/rubinius/merges","archive_url":"https://api.github.com/repos/jsyeo/rubinius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsyeo/rubinius/downloads","issues_url":"https://api.github.com/repos/jsyeo/rubinius/issues{/number}","pulls_url":"https://api.github.com/repos/jsyeo/rubinius/pulls{/number}","milestones_url":"https://api.github.com/repos/jsyeo/rubinius/milestones{/number}","notifications_url":"https://api.github.com/repos/jsyeo/rubinius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsyeo/rubinius/labels{/name}","releases_url":"https://api.github.com/repos/jsyeo/rubinius/releases{/id}","created_at":"2015-03-03T20:04:59Z","updated_at":"2015-03-03T20:05:08Z","pushed_at":"2015-03-11T17:48:21Z","git_url":"git://github.com/jsyeo/rubinius.git","ssh_url":"git@github.com:jsyeo/rubinius.git","clone_url":"https://github.com/jsyeo/rubinius.git","svn_url":"https://github.com/jsyeo/rubinius","homepage":"http://rubini.us","size":158670,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rubinius:2.2","ref":"2.2","sha":"a5111532084e91518cfa81b771d8cb696faf09ed","user":{"login":"rubinius","id":317747,"avatar_url":"https://avatars.githubusercontent.com/u/317747?v=3","gravatar_id":"","url":"https://api.github.com/users/rubinius","html_url":"https://github.com/rubinius","followers_url":"https://api.github.com/users/rubinius/followers","following_url":"https://api.github.com/users/rubinius/following{/other_user}","gists_url":"https://api.github.com/users/rubinius/gists{/gist_id}","starred_url":"https://api.github.com/users/rubinius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubinius/subscriptions","organizations_url":"https://api.github.com/users/rubinius/orgs","repos_url":"https://api.github.com/users/rubinius/repos","events_url":"https://api.github.com/users/rubinius/events{/privacy}","received_events_url":"https://api.github.com/users/rubinius/received_events","type":"Organization","site_admin":false},"repo":{"id":27,"name":"rubinius","full_name":"rubinius/rubinius","owner":{"login":"rubinius","id":317747,"avatar_url":"https://avatars.githubusercontent.com/u/317747?v=3","gravatar_id":"","url":"https://api.github.com/users/rubinius","html_url":"https://github.com/rubinius","followers_url":"https://api.github.com/users/rubinius/followers","following_url":"https://api.github.com/users/rubinius/following{/other_user}","gists_url":"https://api.github.com/users/rubinius/gists{/gist_id}","starred_url":"https://api.github.com/users/rubinius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubinius/subscriptions","organizations_url":"https://api.github.com/users/rubinius/orgs","repos_url":"https://api.github.com/users/rubinius/repos","events_url":"https://api.github.com/users/rubinius/events{/privacy}","received_events_url":"https://api.github.com/users/rubinius/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubinius/rubinius","description":"The Rubinius Language Platform","fork":false,"url":"https://api.github.com/repos/rubinius/rubinius","forks_url":"https://api.github.com/repos/rubinius/rubinius/forks","keys_url":"https://api.github.com/repos/rubinius/rubinius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubinius/rubinius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubinius/rubinius/teams","hooks_url":"https://api.github.com/repos/rubinius/rubinius/hooks","issue_events_url":"https://api.github.com/repos/rubinius/rubinius/issues/events{/number}","events_url":"https://api.github.com/repos/rubinius/rubinius/events","assignees_url":"https://api.github.com/repos/rubinius/rubinius/assignees{/user}","branches_url":"https://api.github.com/repos/rubinius/rubinius/branches{/branch}","tags_url":"https://api.github.com/repos/rubinius/rubinius/tags","blobs_url":"https://api.github.com/repos/rubinius/rubinius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubinius/rubinius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubinius/rubinius/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubinius/rubinius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubinius/rubinius/statuses/{sha}","languages_url":"https://api.github.com/repos/rubinius/rubinius/languages","stargazers_url":"https://api.github.com/repos/rubinius/rubinius/stargazers","contributors_url":"https://api.github.com/repos/rubinius/rubinius/contributors","subscribers_url":"https://api.github.com/repos/rubinius/rubinius/subscribers","subscription_url":"https://api.github.com/repos/rubinius/rubinius/subscription","commits_url":"https://api.github.com/repos/rubinius/rubinius/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubinius/rubinius/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubinius/rubinius/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubinius/rubinius/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubinius/rubinius/contents/{+path}","compare_url":"https://api.github.com/repos/rubinius/rubinius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubinius/rubinius/merges","archive_url":"https://api.github.com/repos/rubinius/rubinius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubinius/rubinius/downloads","issues_url":"https://api.github.com/repos/rubinius/rubinius/issues{/number}","pulls_url":"https://api.github.com/repos/rubinius/rubinius/pulls{/number}","milestones_url":"https://api.github.com/repos/rubinius/rubinius/milestones{/number}","notifications_url":"https://api.github.com/repos/rubinius/rubinius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubinius/rubinius/labels{/name}","releases_url":"https://api.github.com/repos/rubinius/rubinius/releases{/id}","created_at":"2008-01-12T16:46:52Z","updated_at":"2015-03-11T12:44:52Z","pushed_at":"2015-03-10T21:24:44Z","git_url":"git://github.com/rubinius/rubinius.git","ssh_url":"git@github.com:rubinius/rubinius.git","clone_url":"https://github.com/rubinius/rubinius.git","svn_url":"https://github.com/rubinius/rubinius","homepage":"http://rubini.us","size":202600,"stargazers_count":2368,"watchers_count":2368,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":573,"mirror_url":null,"open_issues_count":199,"forks":573,"open_issues":199,"watchers":2368,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubinius/rubinius/pulls/3351"},"html":{"href":"https://github.com/rubinius/rubinius/pull/3351"},"issue":{"href":"https://api.github.com/repos/rubinius/rubinius/issues/3351"},"comments":{"href":"https://api.github.com/repos/rubinius/rubinius/issues/3351/comments"},"review_comments":{"href":"https://api.github.com/repos/rubinius/rubinius/pulls/3351/comments"},"review_comment":{"href":"https://api.github.com/repos/rubinius/rubinius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubinius/rubinius/pulls/3351/commits"},"statuses":{"href":"https://api.github.com/repos/rubinius/rubinius/statuses/0cf5e0bbba956eb6facdfd6a5a8189db2ea9f5f5"}}}}