{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/mhallendal/MogKit/pulls/11","id":31973788,"html_url":"https://github.com/mhallendal/MogKit/pull/11","diff_url":"https://github.com/mhallendal/MogKit/pull/11.diff","patch_url":"https://github.com/mhallendal/MogKit/pull/11.patch","issue_url":"https://api.github.com/repos/mhallendal/MogKit/issues/11","number":11,"state":"open","locked":false,"title":"Simplify by making MOGReducers blocks","user":{"login":"mhallendal","id":541,"avatar_url":"https://avatars.githubusercontent.com/u/541?v=3","gravatar_id":"","url":"https://api.github.com/users/mhallendal","html_url":"https://github.com/mhallendal","followers_url":"https://api.github.com/users/mhallendal/followers","following_url":"https://api.github.com/users/mhallendal/following{/other_user}","gists_url":"https://api.github.com/users/mhallendal/gists{/gist_id}","starred_url":"https://api.github.com/users/mhallendal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhallendal/subscriptions","organizations_url":"https://api.github.com/users/mhallendal/orgs","repos_url":"https://api.github.com/users/mhallendal/repos","events_url":"https://api.github.com/users/mhallendal/events{/privacy}","received_events_url":"https://api.github.com/users/mhallendal/received_events","type":"User","site_admin":false},"body":"In order to support processes were values are accumulated in the process\r\nto be passed on in chunks or when the process finish MOGReducer was made\r\ninto an object with initial, reduce and complete blocks.\r\n\r\nWhen the process is finished complete was called to allow the process to\r\nflush any internal buffers. While this makes it more powerful it also\r\nmakes makes the implementation more complex and adds to the concepts\r\nrequired to be known by the user.\r\n\r\nAnother drawback is that it makes it more cumbersome to supply a user\r\ndefined reducer since an object needs to be created with the reduce\r\nblock set.\r\n\r\nWhile the last paragraph is a benefit of dropping the MOGReducer class\r\nand simply make it into a `(C, A) -> A` block, using a class had the\r\nbenefit of make the accumulator type opaque for the user of the shipped\r\nreducers (MOGArrayReducer etc).","created_at":"2015-03-25T22:44:56Z","updated_at":"2015-03-25T22:44:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mhallendal/MogKit/pulls/11/commits","review_comments_url":"https://api.github.com/repos/mhallendal/MogKit/pulls/11/comments","review_comment_url":"https://api.github.com/repos/mhallendal/MogKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mhallendal/MogKit/issues/11/comments","statuses_url":"https://api.github.com/repos/mhallendal/MogKit/statuses/1cedc9fffc6530eadd33d95e50a9fcf3a40cea7d","head":{"label":"mhallendal:no-complete","ref":"no-complete","sha":"1cedc9fffc6530eadd33d95e50a9fcf3a40cea7d","user":{"login":"mhallendal","id":541,"avatar_url":"https://avatars.githubusercontent.com/u/541?v=3","gravatar_id":"","url":"https://api.github.com/users/mhallendal","html_url":"https://github.com/mhallendal","followers_url":"https://api.github.com/users/mhallendal/followers","following_url":"https://api.github.com/users/mhallendal/following{/other_user}","gists_url":"https://api.github.com/users/mhallendal/gists{/gist_id}","starred_url":"https://api.github.com/users/mhallendal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhallendal/subscriptions","organizations_url":"https://api.github.com/users/mhallendal/orgs","repos_url":"https://api.github.com/users/mhallendal/repos","events_url":"https://api.github.com/users/mhallendal/events{/privacy}","received_events_url":"https://api.github.com/users/mhallendal/received_events","type":"User","site_admin":false},"repo":{"id":31070705,"name":"MogKit","full_name":"mhallendal/MogKit","owner":{"login":"mhallendal","id":541,"avatar_url":"https://avatars.githubusercontent.com/u/541?v=3","gravatar_id":"","url":"https://api.github.com/users/mhallendal","html_url":"https://github.com/mhallendal","followers_url":"https://api.github.com/users/mhallendal/followers","following_url":"https://api.github.com/users/mhallendal/following{/other_user}","gists_url":"https://api.github.com/users/mhallendal/gists{/gist_id}","starred_url":"https://api.github.com/users/mhallendal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhallendal/subscriptions","organizations_url":"https://api.github.com/users/mhallendal/orgs","repos_url":"https://api.github.com/users/mhallendal/repos","events_url":"https://api.github.com/users/mhallendal/events{/privacy}","received_events_url":"https://api.github.com/users/mhallendal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhallendal/MogKit","description":"MogKit is a transducer based data transformation toolkit for Objective-C","fork":false,"url":"https://api.github.com/repos/mhallendal/MogKit","forks_url":"https://api.github.com/repos/mhallendal/MogKit/forks","keys_url":"https://api.github.com/repos/mhallendal/MogKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhallendal/MogKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhallendal/MogKit/teams","hooks_url":"https://api.github.com/repos/mhallendal/MogKit/hooks","issue_events_url":"https://api.github.com/repos/mhallendal/MogKit/issues/events{/number}","events_url":"https://api.github.com/repos/mhallendal/MogKit/events","assignees_url":"https://api.github.com/repos/mhallendal/MogKit/assignees{/user}","branches_url":"https://api.github.com/repos/mhallendal/MogKit/branches{/branch}","tags_url":"https://api.github.com/repos/mhallendal/MogKit/tags","blobs_url":"https://api.github.com/repos/mhallendal/MogKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhallendal/MogKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhallendal/MogKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhallendal/MogKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhallendal/MogKit/statuses/{sha}","languages_url":"https://api.github.com/repos/mhallendal/MogKit/languages","stargazers_url":"https://api.github.com/repos/mhallendal/MogKit/stargazers","contributors_url":"https://api.github.com/repos/mhallendal/MogKit/contributors","subscribers_url":"https://api.github.com/repos/mhallendal/MogKit/subscribers","subscription_url":"https://api.github.com/repos/mhallendal/MogKit/subscription","commits_url":"https://api.github.com/repos/mhallendal/MogKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhallendal/MogKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhallendal/MogKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhallendal/MogKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhallendal/MogKit/contents/{+path}","compare_url":"https://api.github.com/repos/mhallendal/MogKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhallendal/MogKit/merges","archive_url":"https://api.github.com/repos/mhallendal/MogKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhallendal/MogKit/downloads","issues_url":"https://api.github.com/repos/mhallendal/MogKit/issues{/number}","pulls_url":"https://api.github.com/repos/mhallendal/MogKit/pulls{/number}","milestones_url":"https://api.github.com/repos/mhallendal/MogKit/milestones{/number}","notifications_url":"https://api.github.com/repos/mhallendal/MogKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhallendal/MogKit/labels{/name}","releases_url":"https://api.github.com/repos/mhallendal/MogKit/releases{/id}","created_at":"2015-02-20T15:27:15Z","updated_at":"2015-03-16T14:56:51Z","pushed_at":"2015-03-25T22:44:43Z","git_url":"git://github.com/mhallendal/MogKit.git","ssh_url":"git@github.com:mhallendal/MogKit.git","clone_url":"https://github.com/mhallendal/MogKit.git","svn_url":"https://github.com/mhallendal/MogKit","homepage":"","size":691,"stargazers_count":3,"watchers_count":3,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"mhallendal:master","ref":"master","sha":"ce88a5ccca6bf04986e11fd44a8968d84d7fcc6b","user":{"login":"mhallendal","id":541,"avatar_url":"https://avatars.githubusercontent.com/u/541?v=3","gravatar_id":"","url":"https://api.github.com/users/mhallendal","html_url":"https://github.com/mhallendal","followers_url":"https://api.github.com/users/mhallendal/followers","following_url":"https://api.github.com/users/mhallendal/following{/other_user}","gists_url":"https://api.github.com/users/mhallendal/gists{/gist_id}","starred_url":"https://api.github.com/users/mhallendal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhallendal/subscriptions","organizations_url":"https://api.github.com/users/mhallendal/orgs","repos_url":"https://api.github.com/users/mhallendal/repos","events_url":"https://api.github.com/users/mhallendal/events{/privacy}","received_events_url":"https://api.github.com/users/mhallendal/received_events","type":"User","site_admin":false},"repo":{"id":31070705,"name":"MogKit","full_name":"mhallendal/MogKit","owner":{"login":"mhallendal","id":541,"avatar_url":"https://avatars.githubusercontent.com/u/541?v=3","gravatar_id":"","url":"https://api.github.com/users/mhallendal","html_url":"https://github.com/mhallendal","followers_url":"https://api.github.com/users/mhallendal/followers","following_url":"https://api.github.com/users/mhallendal/following{/other_user}","gists_url":"https://api.github.com/users/mhallendal/gists{/gist_id}","starred_url":"https://api.github.com/users/mhallendal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhallendal/subscriptions","organizations_url":"https://api.github.com/users/mhallendal/orgs","repos_url":"https://api.github.com/users/mhallendal/repos","events_url":"https://api.github.com/users/mhallendal/events{/privacy}","received_events_url":"https://api.github.com/users/mhallendal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhallendal/MogKit","description":"MogKit is a transducer based data transformation toolkit for Objective-C","fork":false,"url":"https://api.github.com/repos/mhallendal/MogKit","forks_url":"https://api.github.com/repos/mhallendal/MogKit/forks","keys_url":"https://api.github.com/repos/mhallendal/MogKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhallendal/MogKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhallendal/MogKit/teams","hooks_url":"https://api.github.com/repos/mhallendal/MogKit/hooks","issue_events_url":"https://api.github.com/repos/mhallendal/MogKit/issues/events{/number}","events_url":"https://api.github.com/repos/mhallendal/MogKit/events","assignees_url":"https://api.github.com/repos/mhallendal/MogKit/assignees{/user}","branches_url":"https://api.github.com/repos/mhallendal/MogKit/branches{/branch}","tags_url":"https://api.github.com/repos/mhallendal/MogKit/tags","blobs_url":"https://api.github.com/repos/mhallendal/MogKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhallendal/MogKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhallendal/MogKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhallendal/MogKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhallendal/MogKit/statuses/{sha}","languages_url":"https://api.github.com/repos/mhallendal/MogKit/languages","stargazers_url":"https://api.github.com/repos/mhallendal/MogKit/stargazers","contributors_url":"https://api.github.com/repos/mhallendal/MogKit/contributors","subscribers_url":"https://api.github.com/repos/mhallendal/MogKit/subscribers","subscription_url":"https://api.github.com/repos/mhallendal/MogKit/subscription","commits_url":"https://api.github.com/repos/mhallendal/MogKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhallendal/MogKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhallendal/MogKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhallendal/MogKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhallendal/MogKit/contents/{+path}","compare_url":"https://api.github.com/repos/mhallendal/MogKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhallendal/MogKit/merges","archive_url":"https://api.github.com/repos/mhallendal/MogKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhallendal/MogKit/downloads","issues_url":"https://api.github.com/repos/mhallendal/MogKit/issues{/number}","pulls_url":"https://api.github.com/repos/mhallendal/MogKit/pulls{/number}","milestones_url":"https://api.github.com/repos/mhallendal/MogKit/milestones{/number}","notifications_url":"https://api.github.com/repos/mhallendal/MogKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhallendal/MogKit/labels{/name}","releases_url":"https://api.github.com/repos/mhallendal/MogKit/releases{/id}","created_at":"2015-02-20T15:27:15Z","updated_at":"2015-03-16T14:56:51Z","pushed_at":"2015-03-25T22:44:43Z","git_url":"git://github.com/mhallendal/MogKit.git","ssh_url":"git@github.com:mhallendal/MogKit.git","clone_url":"https://github.com/mhallendal/MogKit.git","svn_url":"https://github.com/mhallendal/MogKit","homepage":"","size":691,"stargazers_count":3,"watchers_count":3,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mhallendal/MogKit/pulls/11"},"html":{"href":"https://github.com/mhallendal/MogKit/pull/11"},"issue":{"href":"https://api.github.com/repos/mhallendal/MogKit/issues/11"},"comments":{"href":"https://api.github.com/repos/mhallendal/MogKit/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/mhallendal/MogKit/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/mhallendal/MogKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mhallendal/MogKit/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/mhallendal/MogKit/statuses/1cedc9fffc6530eadd33d95e50a9fcf3a40cea7d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":166,"deletions":483,"changed_files":14}}