{"action":"created","comment":{"url":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments/70146942","id":70146942,"diff_hunk":"@@ -0,0 +1,70 @@\n+require 'spec_helper'\n+\n+module Xcodeproj\n+  class Project\n+    module Object\n+      #   def child_for_path(path)\n+      #     path = path.split('/').keep_if do |c|\n+      #       c != '.'\n+      #     end unless path.is_a?(Array)\n+      #\n+      #     child_name = path.shift\n+      #     child = children.find { |c| c.display_name == child_name }\n+      #\n+      #     if child.nil?\n+      #       child = new_group(child_name)\n+      #       child.path = child_name\n+      #     end\n+      #\n+      #     if path.empty?\n+      #       child\n+      #     else\n+      #       child.child_for_path(path)\n+      #     end\n+      #  end\n+      #\n+      #   def dirname\n+      #     return '.' if parent.is_a? PBXProject\n+      #     return parent.dirname.to_s if is_a? PBXVariantGroup\n+      #     \"#{parent.dirname}/#{display_name}\"\n+      #   end\n+\n+        describe PBXGroup do\n+\n+          it 'should return correct dirname when parent is project' do\n+            group = PBXGroup.new\n+            group.parent = PBXProject.new\n+\n+            expect(group.dirname).to eq('.')\n+          end\n+\n+          it 'should return correct dirname when parent is group' do\n+            parent = PBXGroup.new\n+            parent.path = 'Hello'\n+\n+            group = PBXGroup.new\n+            group.path = 'World'\n+            group.parent = parent\n+\n+            expect(group.dirname).to eq('Hello/World')\n+          end\n+\n+          it 'should return correct dirname when parent is variant group' do\n+            parent = PBXGroup.new\n+            parent.path = 'Hello'","path":"spec/xcodeproj_ext/PBXGroup.rb","position":54,"original_position":54,"commit_id":"1a948afb23aa705429d632f7038bfcac281e747b","original_commit_id":"1a948afb23aa705429d632f7038bfcac281e747b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-07-08T21:56:50Z","updated_at":"2016-07-08T21:56:50Z","html_url":"https://github.com/jcampbell05/xcake/pull/95#discussion_r70146942","pull_request_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments/70146942"},"html":{"href":"https://github.com/jcampbell05/xcake/pull/95#discussion_r70146942"},"pull_request":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/jcampbell05/xcake/pulls/95","id":76655990,"html_url":"https://github.com/jcampbell05/xcake/pull/95","diff_url":"https://github.com/jcampbell05/xcake/pull/95.diff","patch_url":"https://github.com/jcampbell05/xcake/pull/95.patch","issue_url":"https://api.github.com/repos/jcampbell05/xcake/issues/95","number":95,"state":"open","locked":false,"title":"New File Reference Generator.","user":{"login":"jcampbell05","id":1484989,"avatar_url":"https://avatars.githubusercontent.com/u/1484989?v=3","gravatar_id":"","url":"https://api.github.com/users/jcampbell05","html_url":"https://github.com/jcampbell05","followers_url":"https://api.github.com/users/jcampbell05/followers","following_url":"https://api.github.com/users/jcampbell05/following{/other_user}","gists_url":"https://api.github.com/users/jcampbell05/gists{/gist_id}","starred_url":"https://api.github.com/users/jcampbell05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcampbell05/subscriptions","organizations_url":"https://api.github.com/users/jcampbell05/orgs","repos_url":"https://api.github.com/users/jcampbell05/repos","events_url":"https://api.github.com/users/jcampbell05/events{/privacy}","received_events_url":"https://api.github.com/users/jcampbell05/received_events","type":"User","site_admin":false},"body":"Phase 1 of https://github.com/jcampbell05/xcake/issues/94\r\n\r\nTODO:\r\n- Add new unit tests.","created_at":"2016-07-07T20:01:39Z","updated_at":"2016-07-08T21:56:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5adf0041d3fa0e38ee42faeb5b08b1e72839dab","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/95/commits","review_comments_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/95/comments","review_comment_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jcampbell05/xcake/issues/95/comments","statuses_url":"https://api.github.com/repos/jcampbell05/xcake/statuses/1a948afb23aa705429d632f7038bfcac281e747b","head":{"label":"jcampbell05:f/NewFileReferenceGenerator","ref":"f/NewFileReferenceGenerator","sha":"1a948afb23aa705429d632f7038bfcac281e747b","user":{"login":"jcampbell05","id":1484989,"avatar_url":"https://avatars.githubusercontent.com/u/1484989?v=3","gravatar_id":"","url":"https://api.github.com/users/jcampbell05","html_url":"https://github.com/jcampbell05","followers_url":"https://api.github.com/users/jcampbell05/followers","following_url":"https://api.github.com/users/jcampbell05/following{/other_user}","gists_url":"https://api.github.com/users/jcampbell05/gists{/gist_id}","starred_url":"https://api.github.com/users/jcampbell05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcampbell05/subscriptions","organizations_url":"https://api.github.com/users/jcampbell05/orgs","repos_url":"https://api.github.com/users/jcampbell05/repos","events_url":"https://api.github.com/users/jcampbell05/events{/privacy}","received_events_url":"https://api.github.com/users/jcampbell05/received_events","type":"User","site_admin":false},"repo":{"id":44044198,"name":"xcake","full_name":"jcampbell05/xcake","owner":{"login":"jcampbell05","id":1484989,"avatar_url":"https://avatars.githubusercontent.com/u/1484989?v=3","gravatar_id":"","url":"https://api.github.com/users/jcampbell05","html_url":"https://github.com/jcampbell05","followers_url":"https://api.github.com/users/jcampbell05/followers","following_url":"https://api.github.com/users/jcampbell05/following{/other_user}","gists_url":"https://api.github.com/users/jcampbell05/gists{/gist_id}","starred_url":"https://api.github.com/users/jcampbell05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcampbell05/subscriptions","organizations_url":"https://api.github.com/users/jcampbell05/orgs","repos_url":"https://api.github.com/users/jcampbell05/repos","events_url":"https://api.github.com/users/jcampbell05/events{/privacy}","received_events_url":"https://api.github.com/users/jcampbell05/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcampbell05/xcake","description":":cake: Describe and generate Xcode projects in a human readable format.","fork":false,"url":"https://api.github.com/repos/jcampbell05/xcake","forks_url":"https://api.github.com/repos/jcampbell05/xcake/forks","keys_url":"https://api.github.com/repos/jcampbell05/xcake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcampbell05/xcake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcampbell05/xcake/teams","hooks_url":"https://api.github.com/repos/jcampbell05/xcake/hooks","issue_events_url":"https://api.github.com/repos/jcampbell05/xcake/issues/events{/number}","events_url":"https://api.github.com/repos/jcampbell05/xcake/events","assignees_url":"https://api.github.com/repos/jcampbell05/xcake/assignees{/user}","branches_url":"https://api.github.com/repos/jcampbell05/xcake/branches{/branch}","tags_url":"https://api.github.com/repos/jcampbell05/xcake/tags","blobs_url":"https://api.github.com/repos/jcampbell05/xcake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcampbell05/xcake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcampbell05/xcake/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcampbell05/xcake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcampbell05/xcake/statuses/{sha}","languages_url":"https://api.github.com/repos/jcampbell05/xcake/languages","stargazers_url":"https://api.github.com/repos/jcampbell05/xcake/stargazers","contributors_url":"https://api.github.com/repos/jcampbell05/xcake/contributors","subscribers_url":"https://api.github.com/repos/jcampbell05/xcake/subscribers","subscription_url":"https://api.github.com/repos/jcampbell05/xcake/subscription","commits_url":"https://api.github.com/repos/jcampbell05/xcake/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcampbell05/xcake/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcampbell05/xcake/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcampbell05/xcake/issues/comments{/number}","contents_url":"https://api.github.com/repos/jcampbell05/xcake/contents/{+path}","compare_url":"https://api.github.com/repos/jcampbell05/xcake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcampbell05/xcake/merges","archive_url":"https://api.github.com/repos/jcampbell05/xcake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcampbell05/xcake/downloads","issues_url":"https://api.github.com/repos/jcampbell05/xcake/issues{/number}","pulls_url":"https://api.github.com/repos/jcampbell05/xcake/pulls{/number}","milestones_url":"https://api.github.com/repos/jcampbell05/xcake/milestones{/number}","notifications_url":"https://api.github.com/repos/jcampbell05/xcake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcampbell05/xcake/labels{/name}","releases_url":"https://api.github.com/repos/jcampbell05/xcake/releases{/id}","deployments_url":"https://api.github.com/repos/jcampbell05/xcake/deployments","created_at":"2015-10-11T08:11:50Z","updated_at":"2016-07-05T16:45:34Z","pushed_at":"2016-07-08T21:56:38Z","git_url":"git://github.com/jcampbell05/xcake.git","ssh_url":"git@github.com:jcampbell05/xcake.git","clone_url":"https://github.com/jcampbell05/xcake.git","svn_url":"https://github.com/jcampbell05/xcake","homepage":"","size":1130,"stargazers_count":272,"watchers_count":272,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":10,"forks":16,"open_issues":10,"watchers":272,"default_branch":"master"}},"base":{"label":"jcampbell05:master","ref":"master","sha":"1a62956aafddfdf8a937515b4760c01cd2789eb7","user":{"login":"jcampbell05","id":1484989,"avatar_url":"https://avatars.githubusercontent.com/u/1484989?v=3","gravatar_id":"","url":"https://api.github.com/users/jcampbell05","html_url":"https://github.com/jcampbell05","followers_url":"https://api.github.com/users/jcampbell05/followers","following_url":"https://api.github.com/users/jcampbell05/following{/other_user}","gists_url":"https://api.github.com/users/jcampbell05/gists{/gist_id}","starred_url":"https://api.github.com/users/jcampbell05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcampbell05/subscriptions","organizations_url":"https://api.github.com/users/jcampbell05/orgs","repos_url":"https://api.github.com/users/jcampbell05/repos","events_url":"https://api.github.com/users/jcampbell05/events{/privacy}","received_events_url":"https://api.github.com/users/jcampbell05/received_events","type":"User","site_admin":false},"repo":{"id":44044198,"name":"xcake","full_name":"jcampbell05/xcake","owner":{"login":"jcampbell05","id":1484989,"avatar_url":"https://avatars.githubusercontent.com/u/1484989?v=3","gravatar_id":"","url":"https://api.github.com/users/jcampbell05","html_url":"https://github.com/jcampbell05","followers_url":"https://api.github.com/users/jcampbell05/followers","following_url":"https://api.github.com/users/jcampbell05/following{/other_user}","gists_url":"https://api.github.com/users/jcampbell05/gists{/gist_id}","starred_url":"https://api.github.com/users/jcampbell05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcampbell05/subscriptions","organizations_url":"https://api.github.com/users/jcampbell05/orgs","repos_url":"https://api.github.com/users/jcampbell05/repos","events_url":"https://api.github.com/users/jcampbell05/events{/privacy}","received_events_url":"https://api.github.com/users/jcampbell05/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcampbell05/xcake","description":":cake: Describe and generate Xcode projects in a human readable format.","fork":false,"url":"https://api.github.com/repos/jcampbell05/xcake","forks_url":"https://api.github.com/repos/jcampbell05/xcake/forks","keys_url":"https://api.github.com/repos/jcampbell05/xcake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcampbell05/xcake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcampbell05/xcake/teams","hooks_url":"https://api.github.com/repos/jcampbell05/xcake/hooks","issue_events_url":"https://api.github.com/repos/jcampbell05/xcake/issues/events{/number}","events_url":"https://api.github.com/repos/jcampbell05/xcake/events","assignees_url":"https://api.github.com/repos/jcampbell05/xcake/assignees{/user}","branches_url":"https://api.github.com/repos/jcampbell05/xcake/branches{/branch}","tags_url":"https://api.github.com/repos/jcampbell05/xcake/tags","blobs_url":"https://api.github.com/repos/jcampbell05/xcake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcampbell05/xcake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcampbell05/xcake/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcampbell05/xcake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcampbell05/xcake/statuses/{sha}","languages_url":"https://api.github.com/repos/jcampbell05/xcake/languages","stargazers_url":"https://api.github.com/repos/jcampbell05/xcake/stargazers","contributors_url":"https://api.github.com/repos/jcampbell05/xcake/contributors","subscribers_url":"https://api.github.com/repos/jcampbell05/xcake/subscribers","subscription_url":"https://api.github.com/repos/jcampbell05/xcake/subscription","commits_url":"https://api.github.com/repos/jcampbell05/xcake/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcampbell05/xcake/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcampbell05/xcake/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcampbell05/xcake/issues/comments{/number}","contents_url":"https://api.github.com/repos/jcampbell05/xcake/contents/{+path}","compare_url":"https://api.github.com/repos/jcampbell05/xcake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcampbell05/xcake/merges","archive_url":"https://api.github.com/repos/jcampbell05/xcake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcampbell05/xcake/downloads","issues_url":"https://api.github.com/repos/jcampbell05/xcake/issues{/number}","pulls_url":"https://api.github.com/repos/jcampbell05/xcake/pulls{/number}","milestones_url":"https://api.github.com/repos/jcampbell05/xcake/milestones{/number}","notifications_url":"https://api.github.com/repos/jcampbell05/xcake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcampbell05/xcake/labels{/name}","releases_url":"https://api.github.com/repos/jcampbell05/xcake/releases{/id}","deployments_url":"https://api.github.com/repos/jcampbell05/xcake/deployments","created_at":"2015-10-11T08:11:50Z","updated_at":"2016-07-05T16:45:34Z","pushed_at":"2016-07-08T21:56:38Z","git_url":"git://github.com/jcampbell05/xcake.git","ssh_url":"git@github.com:jcampbell05/xcake.git","clone_url":"https://github.com/jcampbell05/xcake.git","svn_url":"https://github.com/jcampbell05/xcake","homepage":"","size":1130,"stargazers_count":272,"watchers_count":272,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":10,"forks":16,"open_issues":10,"watchers":272,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/95"},"html":{"href":"https://github.com/jcampbell05/xcake/pull/95"},"issue":{"href":"https://api.github.com/repos/jcampbell05/xcake/issues/95"},"comments":{"href":"https://api.github.com/repos/jcampbell05/xcake/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/jcampbell05/xcake/statuses/1a948afb23aa705429d632f7038bfcac281e747b"}}}}
{"actor":{"display_login":"houndci-bot"}}