{"action":"created","comment":{"url":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/comments/65724941","id":65724941,"diff_hunk":"@@ -416,6 +416,19 @@ class PBXNativeTarget < AbstractTarget\n         # @!group Helpers\n         #--------------------------------------#\n \n+        # Checks product_type to determine whether or not the recevier is a\n+        # an app extension\n+        #\n+        # @return True if the target would be an extension embedded in an\n+        #         app target, otherwise false\n+        #\n+        # @note watchOS 2 extensions are extensions of a watch target, not\n+        #       an app target, whereas this is not the case for watchOS 1\n+        def app_extension?","path":"lib/xcodeproj/project/object/native_target.rb","position":12,"original_position":12,"commit_id":"8c246f363c4e66ccc9297aed651f49bd482fdf21","original_commit_id":"8c246f363c4e66ccc9297aed651f49bd482fdf21","user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"body":"I believe there's already a helper for this?","created_at":"2016-06-03T15:18:09Z","updated_at":"2016-06-03T15:18:09Z","html_url":"https://github.com/CocoaPods/Xcodeproj/pull/382#discussion_r65724941","pull_request_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/382","_links":{"self":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/comments/65724941"},"html":{"href":"https://github.com/CocoaPods/Xcodeproj/pull/382#discussion_r65724941"},"pull_request":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/382"}}},"pull_request":{"url":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/382","id":72522628,"html_url":"https://github.com/CocoaPods/Xcodeproj/pull/382","diff_url":"https://github.com/CocoaPods/Xcodeproj/pull/382.diff","patch_url":"https://github.com/CocoaPods/Xcodeproj/pull/382.patch","issue_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/382","number":382,"state":"open","locked":false,"title":"Add capabilities for detecting app extensions and host targets","user":{"login":"benasher44","id":1120429,"avatar_url":"https://avatars.githubusercontent.com/u/1120429?v=3","gravatar_id":"","url":"https://api.github.com/users/benasher44","html_url":"https://github.com/benasher44","followers_url":"https://api.github.com/users/benasher44/followers","following_url":"https://api.github.com/users/benasher44/following{/other_user}","gists_url":"https://api.github.com/users/benasher44/gists{/gist_id}","starred_url":"https://api.github.com/users/benasher44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benasher44/subscriptions","organizations_url":"https://api.github.com/users/benasher44/orgs","repos_url":"https://api.github.com/users/benasher44/repos","events_url":"https://api.github.com/users/benasher44/events{/privacy}","received_events_url":"https://api.github.com/users/benasher44/received_events","type":"User","site_admin":false},"body":"This is step 1 towards fixing CocoaPods/CocoaPods#4203. This provides a few new bits of functionality:\r\n\r\n- Ability to determine if a target extends an app target\r\n- Ability to determine which targets an app extension target extension\r\n- Ability to determine a host target's app extension targets","created_at":"2016-06-03T15:10:09Z","updated_at":"2016-06-03T15:18:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9db762b3b31e6d4703619ffa0a765c085bcd395e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/382/commits","review_comments_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/382/comments","review_comment_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/382/comments","statuses_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/statuses/8c246f363c4e66ccc9297aed651f49bd482fdf21","head":{"label":"benasher44:basher_embedded_targets","ref":"basher_embedded_targets","sha":"8c246f363c4e66ccc9297aed651f49bd482fdf21","user":{"login":"benasher44","id":1120429,"avatar_url":"https://avatars.githubusercontent.com/u/1120429?v=3","gravatar_id":"","url":"https://api.github.com/users/benasher44","html_url":"https://github.com/benasher44","followers_url":"https://api.github.com/users/benasher44/followers","following_url":"https://api.github.com/users/benasher44/following{/other_user}","gists_url":"https://api.github.com/users/benasher44/gists{/gist_id}","starred_url":"https://api.github.com/users/benasher44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benasher44/subscriptions","organizations_url":"https://api.github.com/users/benasher44/orgs","repos_url":"https://api.github.com/users/benasher44/repos","events_url":"https://api.github.com/users/benasher44/events{/privacy}","received_events_url":"https://api.github.com/users/benasher44/received_events","type":"User","site_admin":false},"repo":{"id":55698310,"name":"Xcodeproj","full_name":"benasher44/Xcodeproj","owner":{"login":"benasher44","id":1120429,"avatar_url":"https://avatars.githubusercontent.com/u/1120429?v=3","gravatar_id":"","url":"https://api.github.com/users/benasher44","html_url":"https://github.com/benasher44","followers_url":"https://api.github.com/users/benasher44/followers","following_url":"https://api.github.com/users/benasher44/following{/other_user}","gists_url":"https://api.github.com/users/benasher44/gists{/gist_id}","starred_url":"https://api.github.com/users/benasher44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benasher44/subscriptions","organizations_url":"https://api.github.com/users/benasher44/orgs","repos_url":"https://api.github.com/users/benasher44/repos","events_url":"https://api.github.com/users/benasher44/events{/privacy}","received_events_url":"https://api.github.com/users/benasher44/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benasher44/Xcodeproj","description":"Create and modify Xcode projects from Ruby.","fork":true,"url":"https://api.github.com/repos/benasher44/Xcodeproj","forks_url":"https://api.github.com/repos/benasher44/Xcodeproj/forks","keys_url":"https://api.github.com/repos/benasher44/Xcodeproj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benasher44/Xcodeproj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benasher44/Xcodeproj/teams","hooks_url":"https://api.github.com/repos/benasher44/Xcodeproj/hooks","issue_events_url":"https://api.github.com/repos/benasher44/Xcodeproj/issues/events{/number}","events_url":"https://api.github.com/repos/benasher44/Xcodeproj/events","assignees_url":"https://api.github.com/repos/benasher44/Xcodeproj/assignees{/user}","branches_url":"https://api.github.com/repos/benasher44/Xcodeproj/branches{/branch}","tags_url":"https://api.github.com/repos/benasher44/Xcodeproj/tags","blobs_url":"https://api.github.com/repos/benasher44/Xcodeproj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benasher44/Xcodeproj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benasher44/Xcodeproj/git/refs{/sha}","trees_url":"https://api.github.com/repos/benasher44/Xcodeproj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benasher44/Xcodeproj/statuses/{sha}","languages_url":"https://api.github.com/repos/benasher44/Xcodeproj/languages","stargazers_url":"https://api.github.com/repos/benasher44/Xcodeproj/stargazers","contributors_url":"https://api.github.com/repos/benasher44/Xcodeproj/contributors","subscribers_url":"https://api.github.com/repos/benasher44/Xcodeproj/subscribers","subscription_url":"https://api.github.com/repos/benasher44/Xcodeproj/subscription","commits_url":"https://api.github.com/repos/benasher44/Xcodeproj/commits{/sha}","git_commits_url":"https://api.github.com/repos/benasher44/Xcodeproj/git/commits{/sha}","comments_url":"https://api.github.com/repos/benasher44/Xcodeproj/comments{/number}","issue_comment_url":"https://api.github.com/repos/benasher44/Xcodeproj/issues/comments{/number}","contents_url":"https://api.github.com/repos/benasher44/Xcodeproj/contents/{+path}","compare_url":"https://api.github.com/repos/benasher44/Xcodeproj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benasher44/Xcodeproj/merges","archive_url":"https://api.github.com/repos/benasher44/Xcodeproj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benasher44/Xcodeproj/downloads","issues_url":"https://api.github.com/repos/benasher44/Xcodeproj/issues{/number}","pulls_url":"https://api.github.com/repos/benasher44/Xcodeproj/pulls{/number}","milestones_url":"https://api.github.com/repos/benasher44/Xcodeproj/milestones{/number}","notifications_url":"https://api.github.com/repos/benasher44/Xcodeproj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benasher44/Xcodeproj/labels{/name}","releases_url":"https://api.github.com/repos/benasher44/Xcodeproj/releases{/id}","deployments_url":"https://api.github.com/repos/benasher44/Xcodeproj/deployments","created_at":"2016-04-07T13:49:32Z","updated_at":"2016-04-07T13:49:33Z","pushed_at":"2016-06-03T15:06:57Z","git_url":"git://github.com/benasher44/Xcodeproj.git","ssh_url":"git@github.com:benasher44/Xcodeproj.git","clone_url":"https://github.com/benasher44/Xcodeproj.git","svn_url":"https://github.com/benasher44/Xcodeproj","homepage":"http://rubygems.org/gems/xcodeproj","size":3215,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"CocoaPods:master","ref":"master","sha":"d574c9924a3a5243f0f23c6f4301261ac57c8f56","user":{"login":"CocoaPods","id":1189714,"avatar_url":"https://avatars.githubusercontent.com/u/1189714?v=3","gravatar_id":"","url":"https://api.github.com/users/CocoaPods","html_url":"https://github.com/CocoaPods","followers_url":"https://api.github.com/users/CocoaPods/followers","following_url":"https://api.github.com/users/CocoaPods/following{/other_user}","gists_url":"https://api.github.com/users/CocoaPods/gists{/gist_id}","starred_url":"https://api.github.com/users/CocoaPods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CocoaPods/subscriptions","organizations_url":"https://api.github.com/users/CocoaPods/orgs","repos_url":"https://api.github.com/users/CocoaPods/repos","events_url":"https://api.github.com/users/CocoaPods/events{/privacy}","received_events_url":"https://api.github.com/users/CocoaPods/received_events","type":"Organization","site_admin":false},"repo":{"id":2725544,"name":"Xcodeproj","full_name":"CocoaPods/Xcodeproj","owner":{"login":"CocoaPods","id":1189714,"avatar_url":"https://avatars.githubusercontent.com/u/1189714?v=3","gravatar_id":"","url":"https://api.github.com/users/CocoaPods","html_url":"https://github.com/CocoaPods","followers_url":"https://api.github.com/users/CocoaPods/followers","following_url":"https://api.github.com/users/CocoaPods/following{/other_user}","gists_url":"https://api.github.com/users/CocoaPods/gists{/gist_id}","starred_url":"https://api.github.com/users/CocoaPods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CocoaPods/subscriptions","organizations_url":"https://api.github.com/users/CocoaPods/orgs","repos_url":"https://api.github.com/users/CocoaPods/repos","events_url":"https://api.github.com/users/CocoaPods/events{/privacy}","received_events_url":"https://api.github.com/users/CocoaPods/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CocoaPods/Xcodeproj","description":"Create and modify Xcode projects from Ruby.","fork":false,"url":"https://api.github.com/repos/CocoaPods/Xcodeproj","forks_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/forks","keys_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/teams","hooks_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/hooks","issue_events_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/events{/number}","events_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/events","assignees_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/assignees{/user}","branches_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/branches{/branch}","tags_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/tags","blobs_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/git/refs{/sha}","trees_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/statuses/{sha}","languages_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/languages","stargazers_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/stargazers","contributors_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/contributors","subscribers_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/subscribers","subscription_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/subscription","commits_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/commits{/sha}","git_commits_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/git/commits{/sha}","comments_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/comments{/number}","issue_comment_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/comments{/number}","contents_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/contents/{+path}","compare_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/merges","archive_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/downloads","issues_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues{/number}","pulls_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls{/number}","milestones_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/milestones{/number}","notifications_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/labels{/name}","releases_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/releases{/id}","deployments_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/deployments","created_at":"2011-11-07T10:59:27Z","updated_at":"2016-06-02T08:46:22Z","pushed_at":"2016-06-03T15:10:09Z","git_url":"git://github.com/CocoaPods/Xcodeproj.git","ssh_url":"git@github.com:CocoaPods/Xcodeproj.git","clone_url":"https://github.com/CocoaPods/Xcodeproj.git","svn_url":"https://github.com/CocoaPods/Xcodeproj","homepage":"http://rubygems.org/gems/xcodeproj","size":3660,"stargazers_count":547,"watchers_count":547,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":168,"mirror_url":null,"open_issues_count":36,"forks":168,"open_issues":36,"watchers":547,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/382"},"html":{"href":"https://github.com/CocoaPods/Xcodeproj/pull/382"},"issue":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/382"},"comments":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/382/comments"},"review_comments":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/382/comments"},"review_comment":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/pulls/382/commits"},"statuses":{"href":"https://api.github.com/repos/CocoaPods/Xcodeproj/statuses/8c246f363c4e66ccc9297aed651f49bd482fdf21"}}}}
{"actor":{"display_login":"segiddins"}}