{"action":"created","comment":{"url":"https://api.github.com/repos/wheely/Bunnyhop/pulls/comments/115981222","pull_request_review_id":37565927,"id":115981222,"diff_hunk":"@@ -6,173 +6,194 @@\n //  Copyright (c) 2015 Wheely. All rights reserved.\n //\n \n-import Foundation\n-\n+public enum JSON {\n+    case boolValue(Bool)\n+    case numberValue(Number)\n+    case stringValue(String)\n+    case arrayValue([JSON?])\n+    case dictionaryValue([String: JSON?])\n+}\n \n-public enum JSON: Equatable {\n-    public enum Number: Equatable {\n-        case IntValue(Int)\n-        case FloatValue(Float)\n-        case DoubleValue(Double)\n+extension JSON {\n+    public enum Number {\n+        case intValue(Int)\n+        case floatValue(Float)\n+        case doubleValue(Double)\n     }\n-    \n-    case BoolValue(Bool)\n-    case NumberValue(Number)\n-    case StringValue(String)\n-    case ArrayValue([JSON?])\n-    case DictionaryValue([String: JSON?])\n }\n \n \n-public func ==(lhs: JSON.Number, rhs: JSON.Number) -> Bool {\n-    switch (lhs, rhs) {\n-    case let (.IntValue(l),    .IntValue(r))    where l == r:         return true\n-    case let (.IntValue(l),    .FloatValue(r))  where Float(l) == r:  return true\n-    case let (.IntValue(l),    .DoubleValue(r)) where Double(l) == r: return true\n-    \n-    case let (.FloatValue(l),  .IntValue(r))    where l == Float(r):  return true\n-    case let (.FloatValue(l),  .FloatValue(r))  where l == r:         return true\n-    case let (.FloatValue(l),  .DoubleValue(r)) where Double(l) == r: return true\n-    \n-    case let (.DoubleValue(l), .IntValue(r))    where l == Double(r): return true\n-    case let (.DoubleValue(l), .FloatValue(r))  where l == Double(r): return true\n-    case let (.DoubleValue(l), .DoubleValue(r)) where l == r:         return true\n-        \n-    default: return false\n+// MARK: - Equatable\n+\n+extension JSON.Number: Equatable {\n+\n+    private static var decimalComparissonPrecision: Double {\n+        return 10e-6 // 0.000_001\n+    }\n+\n+    private static func areEqualWithPrecision(_ lhs: Double, _ rhs: Double) -> Bool {","path":"Bunnyhop/Bunnyhop.swift","position":57,"original_position":57,"commit_id":"28f518214766e032143c19ce444872300f3392e8","original_commit_id":"300ccc284b9339cbb355677a8f44cbc504595fee","user":{"login":"nkukushkin","id":1783104,"avatar_url":"https://avatars2.githubusercontent.com/u/1783104?v=3","gravatar_id":"","url":"https://api.github.com/users/nkukushkin","html_url":"https://github.com/nkukushkin","followers_url":"https://api.github.com/users/nkukushkin/followers","following_url":"https://api.github.com/users/nkukushkin/following{/other_user}","gists_url":"https://api.github.com/users/nkukushkin/gists{/gist_id}","starred_url":"https://api.github.com/users/nkukushkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkukushkin/subscriptions","organizations_url":"https://api.github.com/users/nkukushkin/orgs","repos_url":"https://api.github.com/users/nkukushkin/repos","events_url":"https://api.github.com/users/nkukushkin/events{/privacy}","received_events_url":"https://api.github.com/users/nkukushkin/received_events","type":"User","site_admin":false},"body":"[PR в master](https://github.com/wheely/Bunnyhop/pull/12) после мержа продублирую изменения здесь","created_at":"2017-05-11T12:53:09Z","updated_at":"2017-05-11T12:53:09Z","html_url":"https://github.com/wheely/Bunnyhop/pull/11#discussion_r115981222","pull_request_url":"https://api.github.com/repos/wheely/Bunnyhop/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/wheely/Bunnyhop/pulls/comments/115981222"},"html":{"href":"https://github.com/wheely/Bunnyhop/pull/11#discussion_r115981222"},"pull_request":{"href":"https://api.github.com/repos/wheely/Bunnyhop/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/wheely/Bunnyhop/pulls/11","id":119159626,"html_url":"https://github.com/wheely/Bunnyhop/pull/11","diff_url":"https://github.com/wheely/Bunnyhop/pull/11.diff","patch_url":"https://github.com/wheely/Bunnyhop/pull/11.patch","issue_url":"https://api.github.com/repos/wheely/Bunnyhop/issues/11","number":11,"state":"open","locked":false,"title":"Swift 3 for Driver's branch","user":{"login":"nkukushkin","id":1783104,"avatar_url":"https://avatars2.githubusercontent.com/u/1783104?v=3","gravatar_id":"","url":"https://api.github.com/users/nkukushkin","html_url":"https://github.com/nkukushkin","followers_url":"https://api.github.com/users/nkukushkin/followers","following_url":"https://api.github.com/users/nkukushkin/following{/other_user}","gists_url":"https://api.github.com/users/nkukushkin/gists{/gist_id}","starred_url":"https://api.github.com/users/nkukushkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkukushkin/subscriptions","organizations_url":"https://api.github.com/users/nkukushkin/orgs","repos_url":"https://api.github.com/users/nkukushkin/repos","events_url":"https://api.github.com/users/nkukushkin/events{/privacy}","received_events_url":"https://api.github.com/users/nkukushkin/received_events","type":"User","site_admin":false},"body":"Эта ветка — временное решение для перевода WheelyDriver на Swift 3.\r\n\r\nЧасть изменений было взято из ветки master, которую уже мигрировали на новый Swift.\r\n\r\nМинимальное количество изменений API, скорее всего после миграции WheelyDriver мы добавим поддержку thows в master и наконец-то будем иметь одинаковый Bunnyhop на оба приложения.","created_at":"2017-05-05T11:51:31Z","updated_at":"2017-05-11T12:53:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20e52a817aa3ea890b902a7429c33be4619255b8","assignee":{"login":"nkukushkin","id":1783104,"avatar_url":"https://avatars2.githubusercontent.com/u/1783104?v=3","gravatar_id":"","url":"https://api.github.com/users/nkukushkin","html_url":"https://github.com/nkukushkin","followers_url":"https://api.github.com/users/nkukushkin/followers","following_url":"https://api.github.com/users/nkukushkin/following{/other_user}","gists_url":"https://api.github.com/users/nkukushkin/gists{/gist_id}","starred_url":"https://api.github.com/users/nkukushkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkukushkin/subscriptions","organizations_url":"https://api.github.com/users/nkukushkin/orgs","repos_url":"https://api.github.com/users/nkukushkin/repos","events_url":"https://api.github.com/users/nkukushkin/events{/privacy}","received_events_url":"https://api.github.com/users/nkukushkin/received_events","type":"User","site_admin":false},"assignees":[{"login":"nkukushkin","id":1783104,"avatar_url":"https://avatars2.githubusercontent.com/u/1783104?v=3","gravatar_id":"","url":"https://api.github.com/users/nkukushkin","html_url":"https://github.com/nkukushkin","followers_url":"https://api.github.com/users/nkukushkin/followers","following_url":"https://api.github.com/users/nkukushkin/following{/other_user}","gists_url":"https://api.github.com/users/nkukushkin/gists{/gist_id}","starred_url":"https://api.github.com/users/nkukushkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkukushkin/subscriptions","organizations_url":"https://api.github.com/users/nkukushkin/orgs","repos_url":"https://api.github.com/users/nkukushkin/repos","events_url":"https://api.github.com/users/nkukushkin/events{/privacy}","received_events_url":"https://api.github.com/users/nkukushkin/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/wheely/Bunnyhop/pulls/11/commits","review_comments_url":"https://api.github.com/repos/wheely/Bunnyhop/pulls/11/comments","review_comment_url":"https://api.github.com/repos/wheely/Bunnyhop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wheely/Bunnyhop/issues/11/comments","statuses_url":"https://api.github.com/repos/wheely/Bunnyhop/statuses/28f518214766e032143c19ce444872300f3392e8","head":{"label":"wheely:driver-swift-3","ref":"driver-swift-3","sha":"28f518214766e032143c19ce444872300f3392e8","user":{"login":"wheely","id":255694,"avatar_url":"https://avatars0.githubusercontent.com/u/255694?v=3","gravatar_id":"","url":"https://api.github.com/users/wheely","html_url":"https://github.com/wheely","followers_url":"https://api.github.com/users/wheely/followers","following_url":"https://api.github.com/users/wheely/following{/other_user}","gists_url":"https://api.github.com/users/wheely/gists{/gist_id}","starred_url":"https://api.github.com/users/wheely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheely/subscriptions","organizations_url":"https://api.github.com/users/wheely/orgs","repos_url":"https://api.github.com/users/wheely/repos","events_url":"https://api.github.com/users/wheely/events{/privacy}","received_events_url":"https://api.github.com/users/wheely/received_events","type":"Organization","site_admin":false},"repo":{"id":40963333,"name":"Bunnyhop","full_name":"wheely/Bunnyhop","owner":{"login":"wheely","id":255694,"avatar_url":"https://avatars0.githubusercontent.com/u/255694?v=3","gravatar_id":"","url":"https://api.github.com/users/wheely","html_url":"https://github.com/wheely","followers_url":"https://api.github.com/users/wheely/followers","following_url":"https://api.github.com/users/wheely/following{/other_user}","gists_url":"https://api.github.com/users/wheely/gists{/gist_id}","starred_url":"https://api.github.com/users/wheely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheely/subscriptions","organizations_url":"https://api.github.com/users/wheely/orgs","repos_url":"https://api.github.com/users/wheely/repos","events_url":"https://api.github.com/users/wheely/events{/privacy}","received_events_url":"https://api.github.com/users/wheely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wheely/Bunnyhop","description":"Simple and clean JSON for Swift","fork":false,"url":"https://api.github.com/repos/wheely/Bunnyhop","forks_url":"https://api.github.com/repos/wheely/Bunnyhop/forks","keys_url":"https://api.github.com/repos/wheely/Bunnyhop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wheely/Bunnyhop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wheely/Bunnyhop/teams","hooks_url":"https://api.github.com/repos/wheely/Bunnyhop/hooks","issue_events_url":"https://api.github.com/repos/wheely/Bunnyhop/issues/events{/number}","events_url":"https://api.github.com/repos/wheely/Bunnyhop/events","assignees_url":"https://api.github.com/repos/wheely/Bunnyhop/assignees{/user}","branches_url":"https://api.github.com/repos/wheely/Bunnyhop/branches{/branch}","tags_url":"https://api.github.com/repos/wheely/Bunnyhop/tags","blobs_url":"https://api.github.com/repos/wheely/Bunnyhop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wheely/Bunnyhop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wheely/Bunnyhop/git/refs{/sha}","trees_url":"https://api.github.com/repos/wheely/Bunnyhop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wheely/Bunnyhop/statuses/{sha}","languages_url":"https://api.github.com/repos/wheely/Bunnyhop/languages","stargazers_url":"https://api.github.com/repos/wheely/Bunnyhop/stargazers","contributors_url":"https://api.github.com/repos/wheely/Bunnyhop/contributors","subscribers_url":"https://api.github.com/repos/wheely/Bunnyhop/subscribers","subscription_url":"https://api.github.com/repos/wheely/Bunnyhop/subscription","commits_url":"https://api.github.com/repos/wheely/Bunnyhop/commits{/sha}","git_commits_url":"https://api.github.com/repos/wheely/Bunnyhop/git/commits{/sha}","comments_url":"https://api.github.com/repos/wheely/Bunnyhop/comments{/number}","issue_comment_url":"https://api.github.com/repos/wheely/Bunnyhop/issues/comments{/number}","contents_url":"https://api.github.com/repos/wheely/Bunnyhop/contents/{+path}","compare_url":"https://api.github.com/repos/wheely/Bunnyhop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wheely/Bunnyhop/merges","archive_url":"https://api.github.com/repos/wheely/Bunnyhop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wheely/Bunnyhop/downloads","issues_url":"https://api.github.com/repos/wheely/Bunnyhop/issues{/number}","pulls_url":"https://api.github.com/repos/wheely/Bunnyhop/pulls{/number}","milestones_url":"https://api.github.com/repos/wheely/Bunnyhop/milestones{/number}","notifications_url":"https://api.github.com/repos/wheely/Bunnyhop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wheely/Bunnyhop/labels{/name}","releases_url":"https://api.github.com/repos/wheely/Bunnyhop/releases{/id}","deployments_url":"https://api.github.com/repos/wheely/Bunnyhop/deployments","created_at":"2015-08-18T09:34:59Z","updated_at":"2017-03-20T20:47:38Z","pushed_at":"2017-05-11T12:50:35Z","git_url":"git://github.com/wheely/Bunnyhop.git","ssh_url":"git@github.com:wheely/Bunnyhop.git","clone_url":"https://github.com/wheely/Bunnyhop.git","svn_url":"https://github.com/wheely/Bunnyhop","homepage":null,"size":137,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"wheely:driver","ref":"driver","sha":"3a8fbd9a46a2e743bdfaf962cf143b9edc96b417","user":{"login":"wheely","id":255694,"avatar_url":"https://avatars0.githubusercontent.com/u/255694?v=3","gravatar_id":"","url":"https://api.github.com/users/wheely","html_url":"https://github.com/wheely","followers_url":"https://api.github.com/users/wheely/followers","following_url":"https://api.github.com/users/wheely/following{/other_user}","gists_url":"https://api.github.com/users/wheely/gists{/gist_id}","starred_url":"https://api.github.com/users/wheely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheely/subscriptions","organizations_url":"https://api.github.com/users/wheely/orgs","repos_url":"https://api.github.com/users/wheely/repos","events_url":"https://api.github.com/users/wheely/events{/privacy}","received_events_url":"https://api.github.com/users/wheely/received_events","type":"Organization","site_admin":false},"repo":{"id":40963333,"name":"Bunnyhop","full_name":"wheely/Bunnyhop","owner":{"login":"wheely","id":255694,"avatar_url":"https://avatars0.githubusercontent.com/u/255694?v=3","gravatar_id":"","url":"https://api.github.com/users/wheely","html_url":"https://github.com/wheely","followers_url":"https://api.github.com/users/wheely/followers","following_url":"https://api.github.com/users/wheely/following{/other_user}","gists_url":"https://api.github.com/users/wheely/gists{/gist_id}","starred_url":"https://api.github.com/users/wheely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheely/subscriptions","organizations_url":"https://api.github.com/users/wheely/orgs","repos_url":"https://api.github.com/users/wheely/repos","events_url":"https://api.github.com/users/wheely/events{/privacy}","received_events_url":"https://api.github.com/users/wheely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wheely/Bunnyhop","description":"Simple and clean JSON for Swift","fork":false,"url":"https://api.github.com/repos/wheely/Bunnyhop","forks_url":"https://api.github.com/repos/wheely/Bunnyhop/forks","keys_url":"https://api.github.com/repos/wheely/Bunnyhop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wheely/Bunnyhop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wheely/Bunnyhop/teams","hooks_url":"https://api.github.com/repos/wheely/Bunnyhop/hooks","issue_events_url":"https://api.github.com/repos/wheely/Bunnyhop/issues/events{/number}","events_url":"https://api.github.com/repos/wheely/Bunnyhop/events","assignees_url":"https://api.github.com/repos/wheely/Bunnyhop/assignees{/user}","branches_url":"https://api.github.com/repos/wheely/Bunnyhop/branches{/branch}","tags_url":"https://api.github.com/repos/wheely/Bunnyhop/tags","blobs_url":"https://api.github.com/repos/wheely/Bunnyhop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wheely/Bunnyhop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wheely/Bunnyhop/git/refs{/sha}","trees_url":"https://api.github.com/repos/wheely/Bunnyhop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wheely/Bunnyhop/statuses/{sha}","languages_url":"https://api.github.com/repos/wheely/Bunnyhop/languages","stargazers_url":"https://api.github.com/repos/wheely/Bunnyhop/stargazers","contributors_url":"https://api.github.com/repos/wheely/Bunnyhop/contributors","subscribers_url":"https://api.github.com/repos/wheely/Bunnyhop/subscribers","subscription_url":"https://api.github.com/repos/wheely/Bunnyhop/subscription","commits_url":"https://api.github.com/repos/wheely/Bunnyhop/commits{/sha}","git_commits_url":"https://api.github.com/repos/wheely/Bunnyhop/git/commits{/sha}","comments_url":"https://api.github.com/repos/wheely/Bunnyhop/comments{/number}","issue_comment_url":"https://api.github.com/repos/wheely/Bunnyhop/issues/comments{/number}","contents_url":"https://api.github.com/repos/wheely/Bunnyhop/contents/{+path}","compare_url":"https://api.github.com/repos/wheely/Bunnyhop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wheely/Bunnyhop/merges","archive_url":"https://api.github.com/repos/wheely/Bunnyhop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wheely/Bunnyhop/downloads","issues_url":"https://api.github.com/repos/wheely/Bunnyhop/issues{/number}","pulls_url":"https://api.github.com/repos/wheely/Bunnyhop/pulls{/number}","milestones_url":"https://api.github.com/repos/wheely/Bunnyhop/milestones{/number}","notifications_url":"https://api.github.com/repos/wheely/Bunnyhop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wheely/Bunnyhop/labels{/name}","releases_url":"https://api.github.com/repos/wheely/Bunnyhop/releases{/id}","deployments_url":"https://api.github.com/repos/wheely/Bunnyhop/deployments","created_at":"2015-08-18T09:34:59Z","updated_at":"2017-03-20T20:47:38Z","pushed_at":"2017-05-11T12:50:35Z","git_url":"git://github.com/wheely/Bunnyhop.git","ssh_url":"git@github.com:wheely/Bunnyhop.git","clone_url":"https://github.com/wheely/Bunnyhop.git","svn_url":"https://github.com/wheely/Bunnyhop","homepage":null,"size":137,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wheely/Bunnyhop/pulls/11"},"html":{"href":"https://github.com/wheely/Bunnyhop/pull/11"},"issue":{"href":"https://api.github.com/repos/wheely/Bunnyhop/issues/11"},"comments":{"href":"https://api.github.com/repos/wheely/Bunnyhop/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/wheely/Bunnyhop/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/wheely/Bunnyhop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wheely/Bunnyhop/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/wheely/Bunnyhop/statuses/28f518214766e032143c19ce444872300f3392e8"}}}}
{"actor":{"display_login":"nkukushkin"}}