{"action":"created","comment":{"url":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments/51240881","id":51240881,"diff_hunk":"@@ -0,0 +1,64 @@\n+module Xcake\n+  class TargetFileReferenceGenerator < Generator\n+\n+    attr_accessor :root_node\n+    attr_accessor :installer_resolution\n+\n+    def initialize(context)\n+      @context = context\n+      @root_node = Node.new\n+\n+      repository = FileReferenceInstaller.repository\n+      puts \"Registered Generators #{repository}\"\n+\n+      dependency_provider = DependencyProvider.new(repository)\n+      resolver = Molinillo::Resolver.new(dependency_provider, UI.new)\n+      @installer_resolution = resolver.resolve(repository)\n+    end\n+\n+    def self.dependencies\n+      [TargetGenerator]\n+    end\n+\n+    def process_files_for_target(target)\n+\n+      native_target = @context.native_object_for(target)\n+\n+      Dir.glob(target.include_files).each do |file|\n+        @root_node.create_children_with_path(file, native_target)\n+      end if target.include_files\n+\n+      Dir.glob(target.exclude_files).each do |file|\n+        @root_node.remove_children_with_path(file, native_target)\n+      end if target.exclude_files\n+    end\n+\n+    def visit_project(project)\n+\n+      project.targets.each do |target|\n+        process_files_for_target(target)\n+      end\n+\n+      root_node.accept(self)\n+    end\n+\n+    def visit_node(node)\n+\n+        return unless node.path\n+        puts \"Adding #{node.path}...\"\n+\n+        #TODO: Don't use class as name","path":"lib/xcake/generator/target_file_reference_generator.rb","position":50,"original_position":50,"commit_id":"0453fa3553a6dc1e2ff8af0a7c5b004d9649609b","original_commit_id":"0453fa3553a6dc1e2ff8af0a7c5b004d9649609b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Missing space after #.","created_at":"2016-01-29T09:33:26Z","updated_at":"2016-01-29T09:33:26Z","html_url":"https://github.com/jcampbell05/xcake/pull/42#discussion_r51240881","pull_request_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments/51240881"},"html":{"href":"https://github.com/jcampbell05/xcake/pull/42#discussion_r51240881"},"pull_request":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/jcampbell05/xcake/pulls/42","id":57497075,"html_url":"https://github.com/jcampbell05/xcake/pull/42","diff_url":"https://github.com/jcampbell05/xcake/pull/42.diff","patch_url":"https://github.com/jcampbell05/xcake/pull/42.patch","issue_url":"https://api.github.com/repos/jcampbell05/xcake/issues/42","number":42,"state":"open","locked":false,"title":"New refactored generator system.","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":null,"created_at":"2016-01-28T12:46:28Z","updated_at":"2016-01-29T09:33:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22b5fda12c9bbcdc97b2c9fbe795675ed062d426","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/42/commits","review_comments_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/42/comments","review_comment_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jcampbell05/xcake/issues/42/comments","statuses_url":"https://api.github.com/repos/jcampbell05/xcake/statuses/0453fa3553a6dc1e2ff8af0a7c5b004d9649609b","head":{"label":"jcampbell05:f/GeneratorContext","ref":"f/GeneratorContext","sha":"0453fa3553a6dc1e2ff8af0a7c5b004d9649609b","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: Create your Xcode projects automatically using a stupid simple DSL.","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-01-28T02:29:47Z","pushed_at":"2016-01-29T09:33:16Z","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":5517,"stargazers_count":236,"watchers_count":236,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":236,"default_branch":"master"}},"base":{"label":"jcampbell05:master","ref":"master","sha":"fff077ab5f12056eaadcf7a334cf7823b714faec","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: Create your Xcode projects automatically using a stupid simple DSL.","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-01-28T02:29:47Z","pushed_at":"2016-01-29T09:33:16Z","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":5517,"stargazers_count":236,"watchers_count":236,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":236,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/42"},"html":{"href":"https://github.com/jcampbell05/xcake/pull/42"},"issue":{"href":"https://api.github.com/repos/jcampbell05/xcake/issues/42"},"comments":{"href":"https://api.github.com/repos/jcampbell05/xcake/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/jcampbell05/xcake/statuses/0453fa3553a6dc1e2ff8af0a7c5b004d9649609b"}}}}