{"action":"created","comment":{"url":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/comments/196555747","pull_request_review_id":130132256,"id":196555747,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjU1NTc0Nw==","diff_hunk":"@@ -0,0 +1,28 @@\n+public protocol EnumCollection: Hashable {\n+\n+    static func cases() -> AnySequence<Self>\n+    static var allValues: [Self] {get}\n+\n+}\n+\n+public extension EnumCollection {\n+\n+    public static func cases() -> AnySequence<Self> {\n+        return AnySequence { () -> AnyIterator<Self> in\n+            var raw = 0\n+            return AnyIterator {\n+                let current: Self = withUnsafePointer(to: &raw) {$0.withMemoryRebound(to: self, capacity: 1){$0.pointee}}","path":"Sources/CobSpec/Configuration/EnumCollection.swift","position":14,"original_position":14,"commit_id":"8eb7828672b540535e506ee4bb7a7fc755caf568","original_commit_id":"8eb7828672b540535e506ee4bb7a7fc755caf568","user":{"login":"ericdrosado","id":10368374,"node_id":"MDQ6VXNlcjEwMzY4Mzc0","avatar_url":"https://avatars2.githubusercontent.com/u/10368374?v=4","gravatar_id":"","url":"https://api.github.com/users/ericdrosado","html_url":"https://github.com/ericdrosado","followers_url":"https://api.github.com/users/ericdrosado/followers","following_url":"https://api.github.com/users/ericdrosado/following{/other_user}","gists_url":"https://api.github.com/users/ericdrosado/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdrosado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdrosado/subscriptions","organizations_url":"https://api.github.com/users/ericdrosado/orgs","repos_url":"https://api.github.com/users/ericdrosado/repos","events_url":"https://api.github.com/users/ericdrosado/events{/privacy}","received_events_url":"https://api.github.com/users/ericdrosado/received_events","type":"User","site_admin":false},"body":"This was used in lieu of `CaseIterable`, which is a feature in Swift 4.2. I found this protocol to do the work. Do I have full comprehension of this protocol, I do not, but I can do some additional research.","created_at":"2018-06-19T19:51:04Z","updated_at":"2018-06-19T19:51:05Z","html_url":"https://github.com/ericdrosado/Swift-Server/pull/41#discussion_r196555747","pull_request_url":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/41","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/comments/196555747"},"html":{"href":"https://github.com/ericdrosado/Swift-Server/pull/41#discussion_r196555747"},"pull_request":{"href":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/41"}},"in_reply_to_id":196525761},"pull_request":{"url":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/41","id":195360076,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MzYwMDc2","html_url":"https://github.com/ericdrosado/Swift-Server/pull/41","diff_url":"https://github.com/ericdrosado/Swift-Server/pull/41.diff","patch_url":"https://github.com/ericdrosado/Swift-Server/pull/41.patch","issue_url":"https://api.github.com/repos/ericdrosado/Swift-Server/issues/41","number":41,"state":"open","locked":false,"title":"Reorganize Packages with updated logic in Router and Main Class.","user":{"login":"ericdrosado","id":10368374,"node_id":"MDQ6VXNlcjEwMzY4Mzc0","avatar_url":"https://avatars2.githubusercontent.com/u/10368374?v=4","gravatar_id":"","url":"https://api.github.com/users/ericdrosado","html_url":"https://github.com/ericdrosado","followers_url":"https://api.github.com/users/ericdrosado/followers","following_url":"https://api.github.com/users/ericdrosado/following{/other_user}","gists_url":"https://api.github.com/users/ericdrosado/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdrosado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdrosado/subscriptions","organizations_url":"https://api.github.com/users/ericdrosado/orgs","repos_url":"https://api.github.com/users/ericdrosado/repos","events_url":"https://api.github.com/users/ericdrosado/events{/privacy}","received_events_url":"https://api.github.com/users/ericdrosado/received_events","type":"User","site_admin":false},"body":"I apologize for the large commit. I got carried away with moving things around and updating classes. Keep in mind, the main point of this branch is to repackage CobSpec and the Server app to ultimately separate the intertwined logic so other apps can use the Server App. ","created_at":"2018-06-17T03:54:41Z","updated_at":"2018-06-19T19:51:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d38ad2939d047b34c4f85be65f95c4e00a34aa82","assignee":null,"assignees":[],"requested_reviewers":[{"login":"cdemyanovich","id":2271,"node_id":"MDQ6VXNlcjIyNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/2271?v=4","gravatar_id":"","url":"https://api.github.com/users/cdemyanovich","html_url":"https://github.com/cdemyanovich","followers_url":"https://api.github.com/users/cdemyanovich/followers","following_url":"https://api.github.com/users/cdemyanovich/following{/other_user}","gists_url":"https://api.github.com/users/cdemyanovich/gists{/gist_id}","starred_url":"https://api.github.com/users/cdemyanovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdemyanovich/subscriptions","organizations_url":"https://api.github.com/users/cdemyanovich/orgs","repos_url":"https://api.github.com/users/cdemyanovich/repos","events_url":"https://api.github.com/users/cdemyanovich/events{/privacy}","received_events_url":"https://api.github.com/users/cdemyanovich/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/41/commits","review_comments_url":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/41/comments","review_comment_url":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ericdrosado/Swift-Server/issues/41/comments","statuses_url":"https://api.github.com/repos/ericdrosado/Swift-Server/statuses/8eb7828672b540535e506ee4bb7a7fc755caf568","head":{"label":"ericdrosado:reorganize_packages","ref":"reorganize_packages","sha":"8eb7828672b540535e506ee4bb7a7fc755caf568","user":{"login":"ericdrosado","id":10368374,"node_id":"MDQ6VXNlcjEwMzY4Mzc0","avatar_url":"https://avatars2.githubusercontent.com/u/10368374?v=4","gravatar_id":"","url":"https://api.github.com/users/ericdrosado","html_url":"https://github.com/ericdrosado","followers_url":"https://api.github.com/users/ericdrosado/followers","following_url":"https://api.github.com/users/ericdrosado/following{/other_user}","gists_url":"https://api.github.com/users/ericdrosado/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdrosado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdrosado/subscriptions","organizations_url":"https://api.github.com/users/ericdrosado/orgs","repos_url":"https://api.github.com/users/ericdrosado/repos","events_url":"https://api.github.com/users/ericdrosado/events{/privacy}","received_events_url":"https://api.github.com/users/ericdrosado/received_events","type":"User","site_admin":false},"repo":{"id":118174372,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgxNzQzNzI=","name":"Swift-Server","full_name":"ericdrosado/Swift-Server","owner":{"login":"ericdrosado","id":10368374,"node_id":"MDQ6VXNlcjEwMzY4Mzc0","avatar_url":"https://avatars2.githubusercontent.com/u/10368374?v=4","gravatar_id":"","url":"https://api.github.com/users/ericdrosado","html_url":"https://github.com/ericdrosado","followers_url":"https://api.github.com/users/ericdrosado/followers","following_url":"https://api.github.com/users/ericdrosado/following{/other_user}","gists_url":"https://api.github.com/users/ericdrosado/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdrosado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdrosado/subscriptions","organizations_url":"https://api.github.com/users/ericdrosado/orgs","repos_url":"https://api.github.com/users/ericdrosado/repos","events_url":"https://api.github.com/users/ericdrosado/events{/privacy}","received_events_url":"https://api.github.com/users/ericdrosado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ericdrosado/Swift-Server","description":"A simple server built from scratch using Swift and BlueSocket, socket framework. ","fork":false,"url":"https://api.github.com/repos/ericdrosado/Swift-Server","forks_url":"https://api.github.com/repos/ericdrosado/Swift-Server/forks","keys_url":"https://api.github.com/repos/ericdrosado/Swift-Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ericdrosado/Swift-Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ericdrosado/Swift-Server/teams","hooks_url":"https://api.github.com/repos/ericdrosado/Swift-Server/hooks","issue_events_url":"https://api.github.com/repos/ericdrosado/Swift-Server/issues/events{/number}","events_url":"https://api.github.com/repos/ericdrosado/Swift-Server/events","assignees_url":"https://api.github.com/repos/ericdrosado/Swift-Server/assignees{/user}","branches_url":"https://api.github.com/repos/ericdrosado/Swift-Server/branches{/branch}","tags_url":"https://api.github.com/repos/ericdrosado/Swift-Server/tags","blobs_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ericdrosado/Swift-Server/statuses/{sha}","languages_url":"https://api.github.com/repos/ericdrosado/Swift-Server/languages","stargazers_url":"https://api.github.com/repos/ericdrosado/Swift-Server/stargazers","contributors_url":"https://api.github.com/repos/ericdrosado/Swift-Server/contributors","subscribers_url":"https://api.github.com/repos/ericdrosado/Swift-Server/subscribers","subscription_url":"https://api.github.com/repos/ericdrosado/Swift-Server/subscription","commits_url":"https://api.github.com/repos/ericdrosado/Swift-Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/ericdrosado/Swift-Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/ericdrosado/Swift-Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/ericdrosado/Swift-Server/contents/{+path}","compare_url":"https://api.github.com/repos/ericdrosado/Swift-Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ericdrosado/Swift-Server/merges","archive_url":"https://api.github.com/repos/ericdrosado/Swift-Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ericdrosado/Swift-Server/downloads","issues_url":"https://api.github.com/repos/ericdrosado/Swift-Server/issues{/number}","pulls_url":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls{/number}","milestones_url":"https://api.github.com/repos/ericdrosado/Swift-Server/milestones{/number}","notifications_url":"https://api.github.com/repos/ericdrosado/Swift-Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ericdrosado/Swift-Server/labels{/name}","releases_url":"https://api.github.com/repos/ericdrosado/Swift-Server/releases{/id}","deployments_url":"https://api.github.com/repos/ericdrosado/Swift-Server/deployments","created_at":"2018-01-19T20:22:02Z","updated_at":"2018-06-14T17:09:00Z","pushed_at":"2018-06-17T04:15:50Z","git_url":"git://github.com/ericdrosado/Swift-Server.git","ssh_url":"git@github.com:ericdrosado/Swift-Server.git","clone_url":"https://github.com/ericdrosado/Swift-Server.git","svn_url":"https://github.com/ericdrosado/Swift-Server","homepage":"https://erosado-swift-server.herokuapp.com","size":208,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"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":"ericdrosado:master","ref":"master","sha":"370c5cd9488ab8ee6b115239431f77f85ab14bd7","user":{"login":"ericdrosado","id":10368374,"node_id":"MDQ6VXNlcjEwMzY4Mzc0","avatar_url":"https://avatars2.githubusercontent.com/u/10368374?v=4","gravatar_id":"","url":"https://api.github.com/users/ericdrosado","html_url":"https://github.com/ericdrosado","followers_url":"https://api.github.com/users/ericdrosado/followers","following_url":"https://api.github.com/users/ericdrosado/following{/other_user}","gists_url":"https://api.github.com/users/ericdrosado/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdrosado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdrosado/subscriptions","organizations_url":"https://api.github.com/users/ericdrosado/orgs","repos_url":"https://api.github.com/users/ericdrosado/repos","events_url":"https://api.github.com/users/ericdrosado/events{/privacy}","received_events_url":"https://api.github.com/users/ericdrosado/received_events","type":"User","site_admin":false},"repo":{"id":118174372,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgxNzQzNzI=","name":"Swift-Server","full_name":"ericdrosado/Swift-Server","owner":{"login":"ericdrosado","id":10368374,"node_id":"MDQ6VXNlcjEwMzY4Mzc0","avatar_url":"https://avatars2.githubusercontent.com/u/10368374?v=4","gravatar_id":"","url":"https://api.github.com/users/ericdrosado","html_url":"https://github.com/ericdrosado","followers_url":"https://api.github.com/users/ericdrosado/followers","following_url":"https://api.github.com/users/ericdrosado/following{/other_user}","gists_url":"https://api.github.com/users/ericdrosado/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdrosado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdrosado/subscriptions","organizations_url":"https://api.github.com/users/ericdrosado/orgs","repos_url":"https://api.github.com/users/ericdrosado/repos","events_url":"https://api.github.com/users/ericdrosado/events{/privacy}","received_events_url":"https://api.github.com/users/ericdrosado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ericdrosado/Swift-Server","description":"A simple server built from scratch using Swift and BlueSocket, socket framework. ","fork":false,"url":"https://api.github.com/repos/ericdrosado/Swift-Server","forks_url":"https://api.github.com/repos/ericdrosado/Swift-Server/forks","keys_url":"https://api.github.com/repos/ericdrosado/Swift-Server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ericdrosado/Swift-Server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ericdrosado/Swift-Server/teams","hooks_url":"https://api.github.com/repos/ericdrosado/Swift-Server/hooks","issue_events_url":"https://api.github.com/repos/ericdrosado/Swift-Server/issues/events{/number}","events_url":"https://api.github.com/repos/ericdrosado/Swift-Server/events","assignees_url":"https://api.github.com/repos/ericdrosado/Swift-Server/assignees{/user}","branches_url":"https://api.github.com/repos/ericdrosado/Swift-Server/branches{/branch}","tags_url":"https://api.github.com/repos/ericdrosado/Swift-Server/tags","blobs_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/refs{/sha}","trees_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ericdrosado/Swift-Server/statuses/{sha}","languages_url":"https://api.github.com/repos/ericdrosado/Swift-Server/languages","stargazers_url":"https://api.github.com/repos/ericdrosado/Swift-Server/stargazers","contributors_url":"https://api.github.com/repos/ericdrosado/Swift-Server/contributors","subscribers_url":"https://api.github.com/repos/ericdrosado/Swift-Server/subscribers","subscription_url":"https://api.github.com/repos/ericdrosado/Swift-Server/subscription","commits_url":"https://api.github.com/repos/ericdrosado/Swift-Server/commits{/sha}","git_commits_url":"https://api.github.com/repos/ericdrosado/Swift-Server/git/commits{/sha}","comments_url":"https://api.github.com/repos/ericdrosado/Swift-Server/comments{/number}","issue_comment_url":"https://api.github.com/repos/ericdrosado/Swift-Server/issues/comments{/number}","contents_url":"https://api.github.com/repos/ericdrosado/Swift-Server/contents/{+path}","compare_url":"https://api.github.com/repos/ericdrosado/Swift-Server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ericdrosado/Swift-Server/merges","archive_url":"https://api.github.com/repos/ericdrosado/Swift-Server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ericdrosado/Swift-Server/downloads","issues_url":"https://api.github.com/repos/ericdrosado/Swift-Server/issues{/number}","pulls_url":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls{/number}","milestones_url":"https://api.github.com/repos/ericdrosado/Swift-Server/milestones{/number}","notifications_url":"https://api.github.com/repos/ericdrosado/Swift-Server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ericdrosado/Swift-Server/labels{/name}","releases_url":"https://api.github.com/repos/ericdrosado/Swift-Server/releases{/id}","deployments_url":"https://api.github.com/repos/ericdrosado/Swift-Server/deployments","created_at":"2018-01-19T20:22:02Z","updated_at":"2018-06-14T17:09:00Z","pushed_at":"2018-06-17T04:15:50Z","git_url":"git://github.com/ericdrosado/Swift-Server.git","ssh_url":"git@github.com:ericdrosado/Swift-Server.git","clone_url":"https://github.com/ericdrosado/Swift-Server.git","svn_url":"https://github.com/ericdrosado/Swift-Server","homepage":"https://erosado-swift-server.herokuapp.com","size":208,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"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/ericdrosado/Swift-Server/pulls/41"},"html":{"href":"https://github.com/ericdrosado/Swift-Server/pull/41"},"issue":{"href":"https://api.github.com/repos/ericdrosado/Swift-Server/issues/41"},"comments":{"href":"https://api.github.com/repos/ericdrosado/Swift-Server/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ericdrosado/Swift-Server/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/ericdrosado/Swift-Server/statuses/8eb7828672b540535e506ee4bb7a7fc755caf568"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ericdrosado"}}