{"action":"created","comment":{"url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/comments/43877086","id":43877086,"diff_hunk":"@@ -14,3 +14,39 @@ var fiber = Fiber(() => {\n });\n \n fiber.run();\n+\n+global.publicApi = {};\n+\n+Object.defineProperty(global.publicApi, \"getRunningSimulator\", {\n+\tget: () => {\n+\t\treturn (...args: any[]) => {\n+\t\t\tlet future = new Future<any>();\n+\t\t\tlet timer = setInterval(() => {\n+\t\t\t\tFiber(() => {\n+\t\t\t\t\tlet libraryPath = require(\"./iphone-simulator-xcode-7\");\n+\t\t\t\t\tlet obj = new libraryPath.XCode7Simulator()\n+\t\t\t\t\tlet result = obj.getBootedDevice.apply(obj, args).wait();\n+\t\t\t\t\tif(result && !future.isResolved()) {","path":"lib/ios-sim.ts","position":16,"original_position":16,"commit_id":"9a5dc3e34f8d18b4e396cd55ce1cb657d181f940","original_commit_id":"9a5dc3e34f8d18b4e396cd55ce1cb657d181f940","user":{"login":"rosen-vladimirov","id":8351653,"avatar_url":"https://avatars.githubusercontent.com/u/8351653?v=3","gravatar_id":"","url":"https://api.github.com/users/rosen-vladimirov","html_url":"https://github.com/rosen-vladimirov","followers_url":"https://api.github.com/users/rosen-vladimirov/followers","following_url":"https://api.github.com/users/rosen-vladimirov/following{/other_user}","gists_url":"https://api.github.com/users/rosen-vladimirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rosen-vladimirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosen-vladimirov/subscriptions","organizations_url":"https://api.github.com/users/rosen-vladimirov/orgs","repos_url":"https://api.github.com/users/rosen-vladimirov/repos","events_url":"https://api.github.com/users/rosen-vladimirov/events{/privacy}","received_events_url":"https://api.github.com/users/rosen-vladimirov/received_events","type":"User","site_admin":false},"body":"in case device is never booted, we'll go in endless loop","created_at":"2015-11-04T12:58:43Z","updated_at":"2015-11-04T12:58:43Z","html_url":"https://github.com/telerik/ios-sim-portable/pull/42#discussion_r43877086","pull_request_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/comments/43877086"},"html":{"href":"https://github.com/telerik/ios-sim-portable/pull/42#discussion_r43877086"},"pull_request":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/42","id":49682651,"html_url":"https://github.com/telerik/ios-sim-portable/pull/42","diff_url":"https://github.com/telerik/ios-sim-portable/pull/42.diff","patch_url":"https://github.com/telerik/ios-sim-portable/pull/42.patch","issue_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/42","number":42,"state":"open","locked":false,"title":"Expose public api","user":{"login":"Fatme","id":760518,"avatar_url":"https://avatars.githubusercontent.com/u/760518?v=3","gravatar_id":"","url":"https://api.github.com/users/Fatme","html_url":"https://github.com/Fatme","followers_url":"https://api.github.com/users/Fatme/followers","following_url":"https://api.github.com/users/Fatme/following{/other_user}","gists_url":"https://api.github.com/users/Fatme/gists{/gist_id}","starred_url":"https://api.github.com/users/Fatme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fatme/subscriptions","organizations_url":"https://api.github.com/users/Fatme/orgs","repos_url":"https://api.github.com/users/Fatme/repos","events_url":"https://api.github.com/users/Fatme/events{/privacy}","received_events_url":"https://api.github.com/users/Fatme/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-04T12:29:30Z","updated_at":"2015-11-04T12:58:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"846438cc0a4ca59a020d8a6b43a064a0cc476a58","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/42/commits","review_comments_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/42/comments","review_comment_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/42/comments","statuses_url":"https://api.github.com/repos/telerik/ios-sim-portable/statuses/9a5dc3e34f8d18b4e396cd55ce1cb657d181f940","head":{"label":"telerik:fatme/expose-publicApi","ref":"fatme/expose-publicApi","sha":"9a5dc3e34f8d18b4e396cd55ce1cb657d181f940","user":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"repo":{"id":26213988,"name":"ios-sim-portable","full_name":"telerik/ios-sim-portable","owner":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telerik/ios-sim-portable","description":"A Node.js command-line utility to launch an iOS application bundle (.app) in the Xcode iOS Simulator","fork":false,"url":"https://api.github.com/repos/telerik/ios-sim-portable","forks_url":"https://api.github.com/repos/telerik/ios-sim-portable/forks","keys_url":"https://api.github.com/repos/telerik/ios-sim-portable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telerik/ios-sim-portable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telerik/ios-sim-portable/teams","hooks_url":"https://api.github.com/repos/telerik/ios-sim-portable/hooks","issue_events_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/events{/number}","events_url":"https://api.github.com/repos/telerik/ios-sim-portable/events","assignees_url":"https://api.github.com/repos/telerik/ios-sim-portable/assignees{/user}","branches_url":"https://api.github.com/repos/telerik/ios-sim-portable/branches{/branch}","tags_url":"https://api.github.com/repos/telerik/ios-sim-portable/tags","blobs_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/refs{/sha}","trees_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telerik/ios-sim-portable/statuses/{sha}","languages_url":"https://api.github.com/repos/telerik/ios-sim-portable/languages","stargazers_url":"https://api.github.com/repos/telerik/ios-sim-portable/stargazers","contributors_url":"https://api.github.com/repos/telerik/ios-sim-portable/contributors","subscribers_url":"https://api.github.com/repos/telerik/ios-sim-portable/subscribers","subscription_url":"https://api.github.com/repos/telerik/ios-sim-portable/subscription","commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/commits{/sha}","git_commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/commits{/sha}","comments_url":"https://api.github.com/repos/telerik/ios-sim-portable/comments{/number}","issue_comment_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/comments{/number}","contents_url":"https://api.github.com/repos/telerik/ios-sim-portable/contents/{+path}","compare_url":"https://api.github.com/repos/telerik/ios-sim-portable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telerik/ios-sim-portable/merges","archive_url":"https://api.github.com/repos/telerik/ios-sim-portable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telerik/ios-sim-portable/downloads","issues_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues{/number}","pulls_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls{/number}","milestones_url":"https://api.github.com/repos/telerik/ios-sim-portable/milestones{/number}","notifications_url":"https://api.github.com/repos/telerik/ios-sim-portable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telerik/ios-sim-portable/labels{/name}","releases_url":"https://api.github.com/repos/telerik/ios-sim-portable/releases{/id}","created_at":"2014-11-05T10:09:32Z","updated_at":"2015-10-28T07:50:27Z","pushed_at":"2015-11-04T12:29:31Z","git_url":"git://github.com/telerik/ios-sim-portable.git","ssh_url":"git@github.com:telerik/ios-sim-portable.git","clone_url":"https://github.com/telerik/ios-sim-portable.git","svn_url":"https://github.com/telerik/ios-sim-portable","homepage":"","size":747,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"telerik:master","ref":"master","sha":"73a36d511a3eb5f510f18af9f78b2d496376e6cb","user":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"repo":{"id":26213988,"name":"ios-sim-portable","full_name":"telerik/ios-sim-portable","owner":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telerik/ios-sim-portable","description":"A Node.js command-line utility to launch an iOS application bundle (.app) in the Xcode iOS Simulator","fork":false,"url":"https://api.github.com/repos/telerik/ios-sim-portable","forks_url":"https://api.github.com/repos/telerik/ios-sim-portable/forks","keys_url":"https://api.github.com/repos/telerik/ios-sim-portable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telerik/ios-sim-portable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telerik/ios-sim-portable/teams","hooks_url":"https://api.github.com/repos/telerik/ios-sim-portable/hooks","issue_events_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/events{/number}","events_url":"https://api.github.com/repos/telerik/ios-sim-portable/events","assignees_url":"https://api.github.com/repos/telerik/ios-sim-portable/assignees{/user}","branches_url":"https://api.github.com/repos/telerik/ios-sim-portable/branches{/branch}","tags_url":"https://api.github.com/repos/telerik/ios-sim-portable/tags","blobs_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/refs{/sha}","trees_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telerik/ios-sim-portable/statuses/{sha}","languages_url":"https://api.github.com/repos/telerik/ios-sim-portable/languages","stargazers_url":"https://api.github.com/repos/telerik/ios-sim-portable/stargazers","contributors_url":"https://api.github.com/repos/telerik/ios-sim-portable/contributors","subscribers_url":"https://api.github.com/repos/telerik/ios-sim-portable/subscribers","subscription_url":"https://api.github.com/repos/telerik/ios-sim-portable/subscription","commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/commits{/sha}","git_commits_url":"https://api.github.com/repos/telerik/ios-sim-portable/git/commits{/sha}","comments_url":"https://api.github.com/repos/telerik/ios-sim-portable/comments{/number}","issue_comment_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues/comments{/number}","contents_url":"https://api.github.com/repos/telerik/ios-sim-portable/contents/{+path}","compare_url":"https://api.github.com/repos/telerik/ios-sim-portable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telerik/ios-sim-portable/merges","archive_url":"https://api.github.com/repos/telerik/ios-sim-portable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telerik/ios-sim-portable/downloads","issues_url":"https://api.github.com/repos/telerik/ios-sim-portable/issues{/number}","pulls_url":"https://api.github.com/repos/telerik/ios-sim-portable/pulls{/number}","milestones_url":"https://api.github.com/repos/telerik/ios-sim-portable/milestones{/number}","notifications_url":"https://api.github.com/repos/telerik/ios-sim-portable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telerik/ios-sim-portable/labels{/name}","releases_url":"https://api.github.com/repos/telerik/ios-sim-portable/releases{/id}","created_at":"2014-11-05T10:09:32Z","updated_at":"2015-10-28T07:50:27Z","pushed_at":"2015-11-04T12:29:31Z","git_url":"git://github.com/telerik/ios-sim-portable.git","ssh_url":"git@github.com:telerik/ios-sim-portable.git","clone_url":"https://github.com/telerik/ios-sim-portable.git","svn_url":"https://github.com/telerik/ios-sim-portable","homepage":"","size":747,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/42"},"html":{"href":"https://github.com/telerik/ios-sim-portable/pull/42"},"issue":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/issues/42"},"comments":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/telerik/ios-sim-portable/statuses/9a5dc3e34f8d18b4e396cd55ce1cb657d181f940"}}}}