{"action":"created","comment":{"url":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments/50162325","id":50162325,"diff_hunk":"@@ -0,0 +1,243 @@\n+module Xcake\n+  # This class is used to describe a target for a\n+  # Xcode project; This forms part of the DSL\n+  # and is usally stored in files named `Cakefile`.\n+  #\n+  class Target\n+    include Configurable\n+    include Visitable\n+\n+    # @return [String] the name of the target.\n+    #\n+    attr_accessor :name\n+\n+    # @return [String] the type of the target.\n+    #                  Can be `:application`, `:dynamic_library`,\n+    #                  `framework` or `:static_library`.\n+    #\n+    attr_accessor :type\n+\n+    # @return [String] the platform for the target.\n+    #                  Can be `:ios`, `:osx`, `:tvos`, `:watchos`.\n+    #\n+    attr_accessor :platform\n+\n+    # @return [String] the minimum deployment version\n+    #                  for the target's platform.\n+    #\n+    attr_accessor :deployment_target\n+\n+    # @return [String] the language for the target.\n+    #                  Can be `:objc`, `:swift`.\n+    #\n+    attr_accessor :language\n+\n+    #TODO: Rename to test_target\n+\n+    # @return [Target] the testing target for this target\n+    #\n+    attr_accessor :testing_target\n+\n+    # @!group File patterns\n+\n+    #\n+    #   File patterns do not support traversing the parent directory ( `..` ).\n+    #   File patterns may contain the following wildcard patterns:\n+    #\n+    #   ---\n+    #\n+    #   ### Pattern: *\n+    #\n+    #   Matches any file. Can be restricted by other values in the glob.\n+    #\n+    #   * `*` will match all files\n+    #   * `c*` will match all files beginning with `c`\n+    #   * `*c` will match all files ending with `c`\n+    #   * `*c*` will match all files that have `c` in them (including at the\n+    #     beginning or end)\n+    #\n+    #   Equivalent to `/.*/x` in regexp.\n+    #\n+    #   **Note** this will not match Unix-like hidden files (dotfiles). In\n+    #   order to include those in the match results, you must use something\n+    #   like `{*,.*}`.\n+    #\n+    #   ---\n+    #\n+    #   ### Pattern: **\n+    #\n+    #   Matches directories recursively.\n+    #\n+    #   ---\n+    #\n+    #   ### Pattern: ?\n+    #\n+    #   Matches any one character. Equivalent to `/.{1}/` in regexp.\n+    #\n+    #   ---\n+    #\n+    #   ### Pattern: [set]\n+    #\n+    #   Matches any one character in set.\n+    #\n+    #   Behaves exactly like character sets in Regexp, including set negation\n+    #   (`[^a-z]`).\n+    #\n+    #   ---\n+    #\n+    #   ### Pattern: {p,q}\n+    #\n+    #   Matches either literal `p` or literal `q`.\n+    #\n+    #   Matching literals may be more than one character in length. More than\n+    #   two literals may be specified.\n+    #\n+    #   Equivalent to pattern alternation in regexp.\n+    #\n+    #   ---\n+    #\n+    #   ### Pattern: \\\n+    #\n+    #   Escapes the next meta-character.\n+    #\n+    #   ---\n+    #\n+    #   ### Examples\n+    #\n+    #   Consider these to be evaluated in the source root of\n+    #   [JSONKit](https://github.com/johnezang/JSONKit).\n+    #\n+    #       \"JSONKit.?\"    #=> [\"JSONKit.h\", \"JSONKit.m\"]\n+    #       \"*.[a-z][a-z]\" #=> [\"CHANGELOG.md\", \"README.md\"]\n+    #       \"*.[^m]*\"      #=> [\"JSONKit.h\"]\n+    #       \"*.{h,m}\"      #=> [\"JSONKit.h\", \"JSONKit.m\"]\n+    #       \"*\"            #=> [\"CHANGELOG.md\", \"JSONKit.h\"]\n+\n+    #-----------------------------------------------------------------------#\n+\n+    # @return [Array or String] files to include for the target.\n+    #                           Supports regular expressions,\n+    #                           Defaults to: [\"./<Target Name>/*\\*/\\*.*\"]\n+    #\n+    # @example\n+    #\n+    #     spec.include_files = \"Classes/**/*.{h,m}\"\n+    #\n+    attr_accessor :include_files\n+\n+    # @return [Array or String] files to exclude for the target.\n+    #                           Supports regular expressions\n+    #\n+    # @example\n+    #\n+    #    target.exclude_files = [\"Classes/**/unused.{h,m}\"]\n+    #\n+    attr_accessor :exclude_files\n+\n+    # @!group Frameworks\n+\n+    # @return [Array<String>] system frameworks to include for the target\n+    #                         Defaults to:\n+    #                          - [\"Foundation\", \"UIKit\"] for iOS\n+    #                          - [\"Cocoa\"] for OSX\n+    #\n+    # @example\n+    #\n+    #    target.system_frameworks = [\"Foundation\"]\n+    #\n+    attr_accessor :system_frameworks\n+\n+    # @return [Array<Target>] targets to use as dependencies\n+    #\n+    attr_accessor :target_dependencies\n+\n+    # @param    [Proc] block\n+    #           an optional block that configures the project through the DSL.\n+    #\n+    # @example  Creating a Target.\n+    #\n+    #           Target.new do |t|\n+    #             t.name \"test\"\n+    #           end\n+    #\n+    def initialize(&block)\n+      block.call(self) if block_given?\n+    end\n+\n+    # @!group Default Values\n+\n+    def include_files\n+      @include_files ||= [\"./#{@name}/**/*.*\"]\n+    end\n+\n+    def exclude_files\n+      @exclude_files ||= []\n+    end\n+\n+    def system_frameworks\n+      @system_frameworks ||= default_system_frameworks_for self.platform","path":"spec/generator/target.rb","position":178,"original_position":178,"commit_id":"8baadb1503a0d61707e228bef5a6c888bd3867fc","original_commit_id":"8baadb1503a0d61707e228bef5a6c888bd3867fc","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":"Redundant `self` detected.","created_at":"2016-01-19T19:33:04Z","updated_at":"2016-01-19T19:33:04Z","html_url":"https://github.com/jcampbell05/xcake/pull/32#discussion_r50162325","pull_request_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments/50162325"},"html":{"href":"https://github.com/jcampbell05/xcake/pull/32#discussion_r50162325"},"pull_request":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/jcampbell05/xcake/pulls/32","id":56513730,"html_url":"https://github.com/jcampbell05/xcake/pull/32","diff_url":"https://github.com/jcampbell05/xcake/pull/32.diff","patch_url":"https://github.com/jcampbell05/xcake/pull/32.patch","issue_url":"https://api.github.com/repos/jcampbell05/xcake/issues/32","number":32,"state":"open","locked":false,"title":"Refactoring to improve support for watch application.","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-19T19:32:55Z","updated_at":"2016-01-19T19:33:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcdc3bc5494687565308d5f1e236132e5139c077","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/32/commits","review_comments_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/32/comments","review_comment_url":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jcampbell05/xcake/issues/32/comments","statuses_url":"https://api.github.com/repos/jcampbell05/xcake/statuses/8baadb1503a0d61707e228bef5a6c888bd3867fc","head":{"label":"jcampbell05:f/ImplementDependencies","ref":"f/ImplementDependencies","sha":"8baadb1503a0d61707e228bef5a6c888bd3867fc","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":"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}","created_at":"2015-10-11T08:11:50Z","updated_at":"2016-01-18T14:27:40Z","pushed_at":"2016-01-19T19:32:55Z","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":845,"stargazers_count":101,"watchers_count":101,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":101,"default_branch":"master"}},"base":{"label":"jcampbell05:master","ref":"master","sha":"485790c8c0ca5b42c61d80c8844abecca35f0282","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":"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}","created_at":"2015-10-11T08:11:50Z","updated_at":"2016-01-18T14:27:40Z","pushed_at":"2016-01-19T19:32:55Z","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":845,"stargazers_count":101,"watchers_count":101,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/32"},"html":{"href":"https://github.com/jcampbell05/xcake/pull/32"},"issue":{"href":"https://api.github.com/repos/jcampbell05/xcake/issues/32"},"comments":{"href":"https://api.github.com/repos/jcampbell05/xcake/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jcampbell05/xcake/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/jcampbell05/xcake/statuses/8baadb1503a0d61707e228bef5a6c888bd3867fc"}}}}