{"action":"closed","number":198,"pull_request":{"url":"https://api.github.com/repos/Quick/Nimble/pulls/198","id":46486310,"html_url":"https://github.com/Quick/Nimble/pull/198","diff_url":"https://github.com/Quick/Nimble/pull/198.diff","patch_url":"https://github.com/Quick/Nimble/pull/198.patch","issue_url":"https://api.github.com/repos/Quick/Nimble/issues/198","number":198,"state":"closed","locked":false,"title":"Add support for comparing ErrorTypes with equal function","user":{"login":"ScottRobbins","id":6894359,"avatar_url":"https://avatars.githubusercontent.com/u/6894359?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottRobbins","html_url":"https://github.com/ScottRobbins","followers_url":"https://api.github.com/users/ScottRobbins/followers","following_url":"https://api.github.com/users/ScottRobbins/following{/other_user}","gists_url":"https://api.github.com/users/ScottRobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottRobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottRobbins/subscriptions","organizations_url":"https://api.github.com/users/ScottRobbins/orgs","repos_url":"https://api.github.com/users/ScottRobbins/repos","events_url":"https://api.github.com/users/ScottRobbins/events{/privacy}","received_events_url":"https://api.github.com/users/ScottRobbins/received_events","type":"User","site_admin":false},"body":"PR for [this issue](https://github.com/Quick/Nimble/issues/197)\r\n\r\nEssentially this has to do with being able to compare two ErrorTypes in which their specific types (name of the enum) is not known at compile time, only at runtime. I found this to be useful when testing the error that was given to a delegate (after, say an asynchronous call) to be a specific error.\r\n\r\n### Notes\r\n* Because the FakeEnum I created for the tests is in the test module, in a test case, in a function, it creates a really weird domain. It should look much cleaner in an actual application.\r\n* I'm also not sure if the string representation I made for ErrorTypes is the best choice. If I didn't add anything to stringily it would only display the enum case, and not mention the domain (which I felt was important)","created_at":"2015-10-01T05:32:05Z","updated_at":"2015-10-01T16:18:24Z","closed_at":"2015-10-01T16:18:24Z","merged_at":"2015-10-01T16:18:24Z","merge_commit_sha":"e8cacf1625b45af7c2c78923f2137f2f31a5894b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Quick/Nimble/pulls/198/commits","review_comments_url":"https://api.github.com/repos/Quick/Nimble/pulls/198/comments","review_comment_url":"https://api.github.com/repos/Quick/Nimble/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Quick/Nimble/issues/198/comments","statuses_url":"https://api.github.com/repos/Quick/Nimble/statuses/55ac1df149cbb3332e9f3dc45fdc8357e3f7257d","head":{"label":"ScottRobbins:master","ref":"master","sha":"55ac1df149cbb3332e9f3dc45fdc8357e3f7257d","user":{"login":"ScottRobbins","id":6894359,"avatar_url":"https://avatars.githubusercontent.com/u/6894359?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottRobbins","html_url":"https://github.com/ScottRobbins","followers_url":"https://api.github.com/users/ScottRobbins/followers","following_url":"https://api.github.com/users/ScottRobbins/following{/other_user}","gists_url":"https://api.github.com/users/ScottRobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottRobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottRobbins/subscriptions","organizations_url":"https://api.github.com/users/ScottRobbins/orgs","repos_url":"https://api.github.com/users/ScottRobbins/repos","events_url":"https://api.github.com/users/ScottRobbins/events{/privacy}","received_events_url":"https://api.github.com/users/ScottRobbins/received_events","type":"User","site_admin":false},"repo":{"id":43475120,"name":"Nimble","full_name":"ScottRobbins/Nimble","owner":{"login":"ScottRobbins","id":6894359,"avatar_url":"https://avatars.githubusercontent.com/u/6894359?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottRobbins","html_url":"https://github.com/ScottRobbins","followers_url":"https://api.github.com/users/ScottRobbins/followers","following_url":"https://api.github.com/users/ScottRobbins/following{/other_user}","gists_url":"https://api.github.com/users/ScottRobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottRobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottRobbins/subscriptions","organizations_url":"https://api.github.com/users/ScottRobbins/orgs","repos_url":"https://api.github.com/users/ScottRobbins/repos","events_url":"https://api.github.com/users/ScottRobbins/events{/privacy}","received_events_url":"https://api.github.com/users/ScottRobbins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ScottRobbins/Nimble","description":"A Matcher Framework for Swift and Objective-C","fork":true,"url":"https://api.github.com/repos/ScottRobbins/Nimble","forks_url":"https://api.github.com/repos/ScottRobbins/Nimble/forks","keys_url":"https://api.github.com/repos/ScottRobbins/Nimble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ScottRobbins/Nimble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ScottRobbins/Nimble/teams","hooks_url":"https://api.github.com/repos/ScottRobbins/Nimble/hooks","issue_events_url":"https://api.github.com/repos/ScottRobbins/Nimble/issues/events{/number}","events_url":"https://api.github.com/repos/ScottRobbins/Nimble/events","assignees_url":"https://api.github.com/repos/ScottRobbins/Nimble/assignees{/user}","branches_url":"https://api.github.com/repos/ScottRobbins/Nimble/branches{/branch}","tags_url":"https://api.github.com/repos/ScottRobbins/Nimble/tags","blobs_url":"https://api.github.com/repos/ScottRobbins/Nimble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ScottRobbins/Nimble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ScottRobbins/Nimble/git/refs{/sha}","trees_url":"https://api.github.com/repos/ScottRobbins/Nimble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ScottRobbins/Nimble/statuses/{sha}","languages_url":"https://api.github.com/repos/ScottRobbins/Nimble/languages","stargazers_url":"https://api.github.com/repos/ScottRobbins/Nimble/stargazers","contributors_url":"https://api.github.com/repos/ScottRobbins/Nimble/contributors","subscribers_url":"https://api.github.com/repos/ScottRobbins/Nimble/subscribers","subscription_url":"https://api.github.com/repos/ScottRobbins/Nimble/subscription","commits_url":"https://api.github.com/repos/ScottRobbins/Nimble/commits{/sha}","git_commits_url":"https://api.github.com/repos/ScottRobbins/Nimble/git/commits{/sha}","comments_url":"https://api.github.com/repos/ScottRobbins/Nimble/comments{/number}","issue_comment_url":"https://api.github.com/repos/ScottRobbins/Nimble/issues/comments{/number}","contents_url":"https://api.github.com/repos/ScottRobbins/Nimble/contents/{+path}","compare_url":"https://api.github.com/repos/ScottRobbins/Nimble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ScottRobbins/Nimble/merges","archive_url":"https://api.github.com/repos/ScottRobbins/Nimble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ScottRobbins/Nimble/downloads","issues_url":"https://api.github.com/repos/ScottRobbins/Nimble/issues{/number}","pulls_url":"https://api.github.com/repos/ScottRobbins/Nimble/pulls{/number}","milestones_url":"https://api.github.com/repos/ScottRobbins/Nimble/milestones{/number}","notifications_url":"https://api.github.com/repos/ScottRobbins/Nimble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ScottRobbins/Nimble/labels{/name}","releases_url":"https://api.github.com/repos/ScottRobbins/Nimble/releases{/id}","created_at":"2015-10-01T02:47:28Z","updated_at":"2015-10-01T02:47:29Z","pushed_at":"2015-10-01T05:29:05Z","git_url":"git://github.com/ScottRobbins/Nimble.git","ssh_url":"git@github.com:ScottRobbins/Nimble.git","clone_url":"https://github.com/ScottRobbins/Nimble.git","svn_url":"https://github.com/ScottRobbins/Nimble","homepage":"","size":1603,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"Quick:master","ref":"master","sha":"f8db27dd5cc1b58360c61313e0a7cac2eaaab185","user":{"login":"Quick","id":8083968,"avatar_url":"https://avatars.githubusercontent.com/u/8083968?v=3","gravatar_id":"","url":"https://api.github.com/users/Quick","html_url":"https://github.com/Quick","followers_url":"https://api.github.com/users/Quick/followers","following_url":"https://api.github.com/users/Quick/following{/other_user}","gists_url":"https://api.github.com/users/Quick/gists{/gist_id}","starred_url":"https://api.github.com/users/Quick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quick/subscriptions","organizations_url":"https://api.github.com/users/Quick/orgs","repos_url":"https://api.github.com/users/Quick/repos","events_url":"https://api.github.com/users/Quick/events{/privacy}","received_events_url":"https://api.github.com/users/Quick/received_events","type":"Organization","site_admin":false},"repo":{"id":21301381,"name":"Nimble","full_name":"Quick/Nimble","owner":{"login":"Quick","id":8083968,"avatar_url":"https://avatars.githubusercontent.com/u/8083968?v=3","gravatar_id":"","url":"https://api.github.com/users/Quick","html_url":"https://github.com/Quick","followers_url":"https://api.github.com/users/Quick/followers","following_url":"https://api.github.com/users/Quick/following{/other_user}","gists_url":"https://api.github.com/users/Quick/gists{/gist_id}","starred_url":"https://api.github.com/users/Quick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quick/subscriptions","organizations_url":"https://api.github.com/users/Quick/orgs","repos_url":"https://api.github.com/users/Quick/repos","events_url":"https://api.github.com/users/Quick/events{/privacy}","received_events_url":"https://api.github.com/users/Quick/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Quick/Nimble","description":"A Matcher Framework for Swift and Objective-C","fork":false,"url":"https://api.github.com/repos/Quick/Nimble","forks_url":"https://api.github.com/repos/Quick/Nimble/forks","keys_url":"https://api.github.com/repos/Quick/Nimble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Quick/Nimble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Quick/Nimble/teams","hooks_url":"https://api.github.com/repos/Quick/Nimble/hooks","issue_events_url":"https://api.github.com/repos/Quick/Nimble/issues/events{/number}","events_url":"https://api.github.com/repos/Quick/Nimble/events","assignees_url":"https://api.github.com/repos/Quick/Nimble/assignees{/user}","branches_url":"https://api.github.com/repos/Quick/Nimble/branches{/branch}","tags_url":"https://api.github.com/repos/Quick/Nimble/tags","blobs_url":"https://api.github.com/repos/Quick/Nimble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Quick/Nimble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Quick/Nimble/git/refs{/sha}","trees_url":"https://api.github.com/repos/Quick/Nimble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Quick/Nimble/statuses/{sha}","languages_url":"https://api.github.com/repos/Quick/Nimble/languages","stargazers_url":"https://api.github.com/repos/Quick/Nimble/stargazers","contributors_url":"https://api.github.com/repos/Quick/Nimble/contributors","subscribers_url":"https://api.github.com/repos/Quick/Nimble/subscribers","subscription_url":"https://api.github.com/repos/Quick/Nimble/subscription","commits_url":"https://api.github.com/repos/Quick/Nimble/commits{/sha}","git_commits_url":"https://api.github.com/repos/Quick/Nimble/git/commits{/sha}","comments_url":"https://api.github.com/repos/Quick/Nimble/comments{/number}","issue_comment_url":"https://api.github.com/repos/Quick/Nimble/issues/comments{/number}","contents_url":"https://api.github.com/repos/Quick/Nimble/contents/{+path}","compare_url":"https://api.github.com/repos/Quick/Nimble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Quick/Nimble/merges","archive_url":"https://api.github.com/repos/Quick/Nimble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Quick/Nimble/downloads","issues_url":"https://api.github.com/repos/Quick/Nimble/issues{/number}","pulls_url":"https://api.github.com/repos/Quick/Nimble/pulls{/number}","milestones_url":"https://api.github.com/repos/Quick/Nimble/milestones{/number}","notifications_url":"https://api.github.com/repos/Quick/Nimble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Quick/Nimble/labels{/name}","releases_url":"https://api.github.com/repos/Quick/Nimble/releases{/id}","created_at":"2014-06-28T11:28:38Z","updated_at":"2015-10-01T12:12:54Z","pushed_at":"2015-10-01T16:18:24Z","git_url":"git://github.com/Quick/Nimble.git","ssh_url":"git@github.com:Quick/Nimble.git","clone_url":"https://github.com/Quick/Nimble.git","svn_url":"https://github.com/Quick/Nimble","homepage":"","size":1603,"stargazers_count":713,"watchers_count":713,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":15,"forks":123,"open_issues":15,"watchers":713,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Quick/Nimble/pulls/198"},"html":{"href":"https://github.com/Quick/Nimble/pull/198"},"issue":{"href":"https://api.github.com/repos/Quick/Nimble/issues/198"},"comments":{"href":"https://api.github.com/repos/Quick/Nimble/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/Quick/Nimble/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/Quick/Nimble/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Quick/Nimble/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/Quick/Nimble/statuses/55ac1df149cbb3332e9f3dc45fdc8357e3f7257d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jeffh","id":68616,"avatar_url":"https://avatars.githubusercontent.com/u/68616?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffh","html_url":"https://github.com/jeffh","followers_url":"https://api.github.com/users/jeffh/followers","following_url":"https://api.github.com/users/jeffh/following{/other_user}","gists_url":"https://api.github.com/users/jeffh/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffh/subscriptions","organizations_url":"https://api.github.com/users/jeffh/orgs","repos_url":"https://api.github.com/users/jeffh/repos","events_url":"https://api.github.com/users/jeffh/events{/privacy}","received_events_url":"https://api.github.com/users/jeffh/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":64,"deletions":0,"changed_files":3}}