{"action":"created","comment":{"url":"https://api.github.com/repos/Uberchord/ParseZero/pulls/comments/45906990","id":45906990,"diff_hunk":"@@ -0,0 +1,75 @@\n+//\n+//  Importer.swift\n+//  ParseZero\n+//\n+//  Created by Florent Vilmart on 15-11-23.\n+//  Copyright © 2015 flovilmart. All rights reserved.\n+//\n+\n+import Foundation\n+import Bolts\n+\n+let kJSONPathExtension = \"json\"\n+\n+internal protocol Importer {\n+  \n+  static func importFiles(files: [NSURL]) -> BFTask\n+  static func importFileAtURL(path: NSURL) -> BFTask\n+  static func loadFileAtURL(path: NSURL) -> (String, [JSONObject])?\n+  static func importAll(_: [(String, [JSONObject])]) -> BFTask\n+  static func importOnKeyName(_: String, _: [JSONObject]) -> BFTask\n+  \n+}\n+\n+internal extension Importer {\n+  \n+  internal static func importFiles(files: [NSURL]) -> BFTask {\n+    \n+    return files.map {\n+      importFileAtURL($0)\n+    }.taskForCompletionOfAll()\n+    \n+  }\n+  \n+  internal static func importAll(tuples: [(String,[JSONObject])]) -> BFTask","path":"ParseZero/Importer.swift","position":34,"original_position":34,"commit_id":"a6b41c6f4ad4d567c03bd2d16e96f4edfd93a604","original_commit_id":"a6b41c6f4ad4d567c03bd2d16e96f4edfd93a604","user":{"login":"azimin","id":2693139,"avatar_url":"https://avatars.githubusercontent.com/u/2693139?v=3","gravatar_id":"","url":"https://api.github.com/users/azimin","html_url":"https://github.com/azimin","followers_url":"https://api.github.com/users/azimin/followers","following_url":"https://api.github.com/users/azimin/following{/other_user}","gists_url":"https://api.github.com/users/azimin/gists{/gist_id}","starred_url":"https://api.github.com/users/azimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azimin/subscriptions","organizations_url":"https://api.github.com/users/azimin/orgs","repos_url":"https://api.github.com/users/azimin/repos","events_url":"https://api.github.com/users/azimin/events{/privacy}","received_events_url":"https://api.github.com/users/azimin/received_events","type":"User","site_admin":false},"body":"Space between `String,` and `[JSONObject]`. Also I recommend to add typealias for `(String, [JSONObject])` tuple.","created_at":"2015-11-25T19:07:32Z","updated_at":"2015-11-25T19:07:32Z","html_url":"https://github.com/Uberchord/ParseZero/pull/1#discussion_r45906990","pull_request_url":"https://api.github.com/repos/Uberchord/ParseZero/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Uberchord/ParseZero/pulls/comments/45906990"},"html":{"href":"https://github.com/Uberchord/ParseZero/pull/1#discussion_r45906990"},"pull_request":{"href":"https://api.github.com/repos/Uberchord/ParseZero/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Uberchord/ParseZero/pulls/1","id":51606135,"html_url":"https://github.com/Uberchord/ParseZero/pull/1","diff_url":"https://github.com/Uberchord/ParseZero/pull/1.diff","patch_url":"https://github.com/Uberchord/ParseZero/pull/1.patch","issue_url":"https://api.github.com/repos/Uberchord/ParseZero/issues/1","number":1,"state":"open","locked":false,"title":"First iteration","user":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"body":"- Initial version of Parse Zero","created_at":"2015-11-24T01:35:03Z","updated_at":"2015-11-25T19:07:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7123216c24d3b06887df9b143d7c812fc91ef4a4","assignee":{"login":"azimin","id":2693139,"avatar_url":"https://avatars.githubusercontent.com/u/2693139?v=3","gravatar_id":"","url":"https://api.github.com/users/azimin","html_url":"https://github.com/azimin","followers_url":"https://api.github.com/users/azimin/followers","following_url":"https://api.github.com/users/azimin/following{/other_user}","gists_url":"https://api.github.com/users/azimin/gists{/gist_id}","starred_url":"https://api.github.com/users/azimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azimin/subscriptions","organizations_url":"https://api.github.com/users/azimin/orgs","repos_url":"https://api.github.com/users/azimin/repos","events_url":"https://api.github.com/users/azimin/events{/privacy}","received_events_url":"https://api.github.com/users/azimin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Uberchord/ParseZero/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Uberchord/ParseZero/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Uberchord/ParseZero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Uberchord/ParseZero/issues/1/comments","statuses_url":"https://api.github.com/repos/Uberchord/ParseZero/statuses/a6b41c6f4ad4d567c03bd2d16e96f4edfd93a604","head":{"label":"flovilmart:master","ref":"master","sha":"a6b41c6f4ad4d567c03bd2d16e96f4edfd93a604","user":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"repo":{"id":46736068,"name":"ParseZero","full_name":"flovilmart/ParseZero","owner":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flovilmart/ParseZero","description":"Preload data from your parse app onto you iOS app","fork":false,"url":"https://api.github.com/repos/flovilmart/ParseZero","forks_url":"https://api.github.com/repos/flovilmart/ParseZero/forks","keys_url":"https://api.github.com/repos/flovilmart/ParseZero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flovilmart/ParseZero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flovilmart/ParseZero/teams","hooks_url":"https://api.github.com/repos/flovilmart/ParseZero/hooks","issue_events_url":"https://api.github.com/repos/flovilmart/ParseZero/issues/events{/number}","events_url":"https://api.github.com/repos/flovilmart/ParseZero/events","assignees_url":"https://api.github.com/repos/flovilmart/ParseZero/assignees{/user}","branches_url":"https://api.github.com/repos/flovilmart/ParseZero/branches{/branch}","tags_url":"https://api.github.com/repos/flovilmart/ParseZero/tags","blobs_url":"https://api.github.com/repos/flovilmart/ParseZero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flovilmart/ParseZero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flovilmart/ParseZero/git/refs{/sha}","trees_url":"https://api.github.com/repos/flovilmart/ParseZero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flovilmart/ParseZero/statuses/{sha}","languages_url":"https://api.github.com/repos/flovilmart/ParseZero/languages","stargazers_url":"https://api.github.com/repos/flovilmart/ParseZero/stargazers","contributors_url":"https://api.github.com/repos/flovilmart/ParseZero/contributors","subscribers_url":"https://api.github.com/repos/flovilmart/ParseZero/subscribers","subscription_url":"https://api.github.com/repos/flovilmart/ParseZero/subscription","commits_url":"https://api.github.com/repos/flovilmart/ParseZero/commits{/sha}","git_commits_url":"https://api.github.com/repos/flovilmart/ParseZero/git/commits{/sha}","comments_url":"https://api.github.com/repos/flovilmart/ParseZero/comments{/number}","issue_comment_url":"https://api.github.com/repos/flovilmart/ParseZero/issues/comments{/number}","contents_url":"https://api.github.com/repos/flovilmart/ParseZero/contents/{+path}","compare_url":"https://api.github.com/repos/flovilmart/ParseZero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flovilmart/ParseZero/merges","archive_url":"https://api.github.com/repos/flovilmart/ParseZero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flovilmart/ParseZero/downloads","issues_url":"https://api.github.com/repos/flovilmart/ParseZero/issues{/number}","pulls_url":"https://api.github.com/repos/flovilmart/ParseZero/pulls{/number}","milestones_url":"https://api.github.com/repos/flovilmart/ParseZero/milestones{/number}","notifications_url":"https://api.github.com/repos/flovilmart/ParseZero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flovilmart/ParseZero/labels{/name}","releases_url":"https://api.github.com/repos/flovilmart/ParseZero/releases{/id}","created_at":"2015-11-23T17:16:49Z","updated_at":"2015-11-24T00:40:29Z","pushed_at":"2015-11-25T13:25:21Z","git_url":"git://github.com/flovilmart/ParseZero.git","ssh_url":"git@github.com:flovilmart/ParseZero.git","clone_url":"https://github.com/flovilmart/ParseZero.git","svn_url":"https://github.com/flovilmart/ParseZero","homepage":null,"size":31345,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Uberchord:master","ref":"master","sha":"368c79012d3bbcddfec4a37a21e413e3717ac89d","user":{"login":"Uberchord","id":9084146,"avatar_url":"https://avatars.githubusercontent.com/u/9084146?v=3","gravatar_id":"","url":"https://api.github.com/users/Uberchord","html_url":"https://github.com/Uberchord","followers_url":"https://api.github.com/users/Uberchord/followers","following_url":"https://api.github.com/users/Uberchord/following{/other_user}","gists_url":"https://api.github.com/users/Uberchord/gists{/gist_id}","starred_url":"https://api.github.com/users/Uberchord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uberchord/subscriptions","organizations_url":"https://api.github.com/users/Uberchord/orgs","repos_url":"https://api.github.com/users/Uberchord/repos","events_url":"https://api.github.com/users/Uberchord/events{/privacy}","received_events_url":"https://api.github.com/users/Uberchord/received_events","type":"Organization","site_admin":false},"repo":{"id":46757071,"name":"ParseZero","full_name":"Uberchord/ParseZero","owner":{"login":"Uberchord","id":9084146,"avatar_url":"https://avatars.githubusercontent.com/u/9084146?v=3","gravatar_id":"","url":"https://api.github.com/users/Uberchord","html_url":"https://github.com/Uberchord","followers_url":"https://api.github.com/users/Uberchord/followers","following_url":"https://api.github.com/users/Uberchord/following{/other_user}","gists_url":"https://api.github.com/users/Uberchord/gists{/gist_id}","starred_url":"https://api.github.com/users/Uberchord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uberchord/subscriptions","organizations_url":"https://api.github.com/users/Uberchord/orgs","repos_url":"https://api.github.com/users/Uberchord/repos","events_url":"https://api.github.com/users/Uberchord/events{/privacy}","received_events_url":"https://api.github.com/users/Uberchord/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Uberchord/ParseZero","description":"Preload data from your parse app onto you iOS app","fork":true,"url":"https://api.github.com/repos/Uberchord/ParseZero","forks_url":"https://api.github.com/repos/Uberchord/ParseZero/forks","keys_url":"https://api.github.com/repos/Uberchord/ParseZero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Uberchord/ParseZero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Uberchord/ParseZero/teams","hooks_url":"https://api.github.com/repos/Uberchord/ParseZero/hooks","issue_events_url":"https://api.github.com/repos/Uberchord/ParseZero/issues/events{/number}","events_url":"https://api.github.com/repos/Uberchord/ParseZero/events","assignees_url":"https://api.github.com/repos/Uberchord/ParseZero/assignees{/user}","branches_url":"https://api.github.com/repos/Uberchord/ParseZero/branches{/branch}","tags_url":"https://api.github.com/repos/Uberchord/ParseZero/tags","blobs_url":"https://api.github.com/repos/Uberchord/ParseZero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Uberchord/ParseZero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Uberchord/ParseZero/git/refs{/sha}","trees_url":"https://api.github.com/repos/Uberchord/ParseZero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Uberchord/ParseZero/statuses/{sha}","languages_url":"https://api.github.com/repos/Uberchord/ParseZero/languages","stargazers_url":"https://api.github.com/repos/Uberchord/ParseZero/stargazers","contributors_url":"https://api.github.com/repos/Uberchord/ParseZero/contributors","subscribers_url":"https://api.github.com/repos/Uberchord/ParseZero/subscribers","subscription_url":"https://api.github.com/repos/Uberchord/ParseZero/subscription","commits_url":"https://api.github.com/repos/Uberchord/ParseZero/commits{/sha}","git_commits_url":"https://api.github.com/repos/Uberchord/ParseZero/git/commits{/sha}","comments_url":"https://api.github.com/repos/Uberchord/ParseZero/comments{/number}","issue_comment_url":"https://api.github.com/repos/Uberchord/ParseZero/issues/comments{/number}","contents_url":"https://api.github.com/repos/Uberchord/ParseZero/contents/{+path}","compare_url":"https://api.github.com/repos/Uberchord/ParseZero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Uberchord/ParseZero/merges","archive_url":"https://api.github.com/repos/Uberchord/ParseZero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Uberchord/ParseZero/downloads","issues_url":"https://api.github.com/repos/Uberchord/ParseZero/issues{/number}","pulls_url":"https://api.github.com/repos/Uberchord/ParseZero/pulls{/number}","milestones_url":"https://api.github.com/repos/Uberchord/ParseZero/milestones{/number}","notifications_url":"https://api.github.com/repos/Uberchord/ParseZero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Uberchord/ParseZero/labels{/name}","releases_url":"https://api.github.com/repos/Uberchord/ParseZero/releases{/id}","created_at":"2015-11-24T00:39:21Z","updated_at":"2015-11-24T00:39:22Z","pushed_at":"2015-11-25T13:25:22Z","git_url":"git://github.com/Uberchord/ParseZero.git","ssh_url":"git@github.com:Uberchord/ParseZero.git","clone_url":"https://github.com/Uberchord/ParseZero.git","svn_url":"https://github.com/Uberchord/ParseZero","homepage":null,"size":6,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Uberchord/ParseZero/pulls/1"},"html":{"href":"https://github.com/Uberchord/ParseZero/pull/1"},"issue":{"href":"https://api.github.com/repos/Uberchord/ParseZero/issues/1"},"comments":{"href":"https://api.github.com/repos/Uberchord/ParseZero/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Uberchord/ParseZero/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Uberchord/ParseZero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Uberchord/ParseZero/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Uberchord/ParseZero/statuses/a6b41c6f4ad4d567c03bd2d16e96f4edfd93a604"}}}}