{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/spaceship/pulls/comments/33934783","id":33934783,"diff_hunk":"@@ -0,0 +1,62 @@\n+module Spaceship\n+  module Tunes\n+    class Tester < TunesBase\n+\n+      attr_accessor :tester_id\n+\n+      attr_accessor :email\n+      \n+      attr_accessor :first_name\n+\n+      attr_accessor :last_name\n+\n+      attr_mapping(\n+        'testerId' => :tester_id,\n+        'emailAddress.value' => :email,\n+        'firstName.value' => :first_name,\n+        'lastName.value' => :last_name\n+      )\n+\n+      class << self\n+        # Create a new object based on a hash.\n+        # This is used to create a new object based on the server response.\n+        def factory(attrs)\n+          self.new(attrs)\n+        end\n+\n+        # @return (Array) Returns all beta testers available for this account\n+        def all\n+          client.testers.map { |tester| self.factory(tester) }\n+        end\n+\n+        # @return (Spaceship::Tunes::ExternalTester) Returns the external tester matching the parameter\n+        #   as either the Tester id or email\n+        def find(identifier)\n+          all.find do |tester|\n+            (tester.tester_id == identifier.to_s or tester.email == identifier)\n+          end\n+        end\n+\n+        def create!(email: nil, first_name: nil, last_name: nil) \n+          client.create_tester!(email: email,\n+                                    first_name: first_name,\n+                                     last_name: last_name)\n+        end\n+\n+        #####################################################\n+        # @!group App\n+        #####################################################\n+        def find_by_app(app_id) \n+          client.testers_by_app(app_id).map { |tester| self.factory(tester) }\n+        end\n+      end\n+\n+      #####################################################\n+      # @!group App\n+      #####################################################\n+      def remove_from_app(app_id)","path":"lib/spaceship/tunes/tester.rb","position":57,"original_position":57,"commit_id":"63d51684afd9477d07251ac8835ff3567fe9a1b8","original_commit_id":"63d51684afd9477d07251ac8835ff3567fe9a1b8","user":{"login":"mathcarignani","id":484756,"avatar_url":"https://avatars.githubusercontent.com/u/484756?v=3","gravatar_id":"","url":"https://api.github.com/users/mathcarignani","html_url":"https://github.com/mathcarignani","followers_url":"https://api.github.com/users/mathcarignani/followers","following_url":"https://api.github.com/users/mathcarignani/following{/other_user}","gists_url":"https://api.github.com/users/mathcarignani/gists{/gist_id}","starred_url":"https://api.github.com/users/mathcarignani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathcarignani/subscriptions","organizations_url":"https://api.github.com/users/mathcarignani/orgs","repos_url":"https://api.github.com/users/mathcarignani/repos","events_url":"https://api.github.com/users/mathcarignani/events{/privacy}","received_events_url":"https://api.github.com/users/mathcarignani/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-07-06T13:46:38Z","updated_at":"2015-07-06T13:46:38Z","html_url":"https://github.com/fastlane/spaceship/pull/61#discussion_r33934783","pull_request_url":"https://api.github.com/repos/fastlane/spaceship/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/fastlane/spaceship/pulls/comments/33934783"},"html":{"href":"https://github.com/fastlane/spaceship/pull/61#discussion_r33934783"},"pull_request":{"href":"https://api.github.com/repos/fastlane/spaceship/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/fastlane/spaceship/pulls/61","id":39223286,"html_url":"https://github.com/fastlane/spaceship/pull/61","diff_url":"https://github.com/fastlane/spaceship/pull/61.diff","patch_url":"https://github.com/fastlane/spaceship/pull/61.patch","issue_url":"https://api.github.com/repos/fastlane/spaceship/issues/61","number":61,"state":"open","locked":false,"title":"[WIP] ITC - External testers","user":{"login":"mathcarignani","id":484756,"avatar_url":"https://avatars.githubusercontent.com/u/484756?v=3","gravatar_id":"","url":"https://api.github.com/users/mathcarignani","html_url":"https://github.com/mathcarignani","followers_url":"https://api.github.com/users/mathcarignani/followers","following_url":"https://api.github.com/users/mathcarignani/following{/other_user}","gists_url":"https://api.github.com/users/mathcarignani/gists{/gist_id}","starred_url":"https://api.github.com/users/mathcarignani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathcarignani/subscriptions","organizations_url":"https://api.github.com/users/mathcarignani/orgs","repos_url":"https://api.github.com/users/mathcarignani/repos","events_url":"https://api.github.com/users/mathcarignani/events{/privacy}","received_events_url":"https://api.github.com/users/mathcarignani/received_events","type":"User","site_admin":false},"body":"Added support for external testers","created_at":"2015-07-05T16:36:55Z","updated_at":"2015-07-06T13:46:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fb7340355a8698b49807d9235d7257b217ac35e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/spaceship/pulls/61/commits","review_comments_url":"https://api.github.com/repos/fastlane/spaceship/pulls/61/comments","review_comment_url":"https://api.github.com/repos/fastlane/spaceship/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/spaceship/issues/61/comments","statuses_url":"https://api.github.com/repos/fastlane/spaceship/statuses/63d51684afd9477d07251ac8835ff3567fe9a1b8","head":{"label":"mathcarignani:feature/itc","ref":"feature/itc","sha":"63d51684afd9477d07251ac8835ff3567fe9a1b8","user":{"login":"mathcarignani","id":484756,"avatar_url":"https://avatars.githubusercontent.com/u/484756?v=3","gravatar_id":"","url":"https://api.github.com/users/mathcarignani","html_url":"https://github.com/mathcarignani","followers_url":"https://api.github.com/users/mathcarignani/followers","following_url":"https://api.github.com/users/mathcarignani/following{/other_user}","gists_url":"https://api.github.com/users/mathcarignani/gists{/gist_id}","starred_url":"https://api.github.com/users/mathcarignani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathcarignani/subscriptions","organizations_url":"https://api.github.com/users/mathcarignani/orgs","repos_url":"https://api.github.com/users/mathcarignani/repos","events_url":"https://api.github.com/users/mathcarignani/events{/privacy}","received_events_url":"https://api.github.com/users/mathcarignani/received_events","type":"User","site_admin":false},"repo":{"id":36890524,"name":"spaceship","full_name":"mathcarignani/spaceship","owner":{"login":"mathcarignani","id":484756,"avatar_url":"https://avatars.githubusercontent.com/u/484756?v=3","gravatar_id":"","url":"https://api.github.com/users/mathcarignani","html_url":"https://github.com/mathcarignani","followers_url":"https://api.github.com/users/mathcarignani/followers","following_url":"https://api.github.com/users/mathcarignani/following{/other_user}","gists_url":"https://api.github.com/users/mathcarignani/gists{/gist_id}","starred_url":"https://api.github.com/users/mathcarignani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathcarignani/subscriptions","organizations_url":"https://api.github.com/users/mathcarignani/orgs","repos_url":"https://api.github.com/users/mathcarignani/repos","events_url":"https://api.github.com/users/mathcarignani/events{/privacy}","received_events_url":"https://api.github.com/users/mathcarignani/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mathcarignani/spaceship","description":"Launching fastlane into the next generation","fork":true,"url":"https://api.github.com/repos/mathcarignani/spaceship","forks_url":"https://api.github.com/repos/mathcarignani/spaceship/forks","keys_url":"https://api.github.com/repos/mathcarignani/spaceship/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathcarignani/spaceship/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathcarignani/spaceship/teams","hooks_url":"https://api.github.com/repos/mathcarignani/spaceship/hooks","issue_events_url":"https://api.github.com/repos/mathcarignani/spaceship/issues/events{/number}","events_url":"https://api.github.com/repos/mathcarignani/spaceship/events","assignees_url":"https://api.github.com/repos/mathcarignani/spaceship/assignees{/user}","branches_url":"https://api.github.com/repos/mathcarignani/spaceship/branches{/branch}","tags_url":"https://api.github.com/repos/mathcarignani/spaceship/tags","blobs_url":"https://api.github.com/repos/mathcarignani/spaceship/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathcarignani/spaceship/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathcarignani/spaceship/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathcarignani/spaceship/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathcarignani/spaceship/statuses/{sha}","languages_url":"https://api.github.com/repos/mathcarignani/spaceship/languages","stargazers_url":"https://api.github.com/repos/mathcarignani/spaceship/stargazers","contributors_url":"https://api.github.com/repos/mathcarignani/spaceship/contributors","subscribers_url":"https://api.github.com/repos/mathcarignani/spaceship/subscribers","subscription_url":"https://api.github.com/repos/mathcarignani/spaceship/subscription","commits_url":"https://api.github.com/repos/mathcarignani/spaceship/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathcarignani/spaceship/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathcarignani/spaceship/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathcarignani/spaceship/issues/comments{/number}","contents_url":"https://api.github.com/repos/mathcarignani/spaceship/contents/{+path}","compare_url":"https://api.github.com/repos/mathcarignani/spaceship/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathcarignani/spaceship/merges","archive_url":"https://api.github.com/repos/mathcarignani/spaceship/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathcarignani/spaceship/downloads","issues_url":"https://api.github.com/repos/mathcarignani/spaceship/issues{/number}","pulls_url":"https://api.github.com/repos/mathcarignani/spaceship/pulls{/number}","milestones_url":"https://api.github.com/repos/mathcarignani/spaceship/milestones{/number}","notifications_url":"https://api.github.com/repos/mathcarignani/spaceship/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathcarignani/spaceship/labels{/name}","releases_url":"https://api.github.com/repos/mathcarignani/spaceship/releases{/id}","created_at":"2015-06-04T19:20:02Z","updated_at":"2015-06-04T19:20:03Z","pushed_at":"2015-07-06T02:10:24Z","git_url":"git://github.com/mathcarignani/spaceship.git","ssh_url":"git@github.com:mathcarignani/spaceship.git","clone_url":"https://github.com/mathcarignani/spaceship.git","svn_url":"https://github.com/mathcarignani/spaceship","homepage":"https://spaceship.airforce","size":621,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"fastlane:feature/itc","ref":"feature/itc","sha":"2c6f206b04db013125504095f76912b76d5f0a3c","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":33789738,"name":"spaceship","full_name":"fastlane/spaceship","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/spaceship","description":"Ruby library that exposes the Apple Developer Center API","fork":false,"url":"https://api.github.com/repos/fastlane/spaceship","forks_url":"https://api.github.com/repos/fastlane/spaceship/forks","keys_url":"https://api.github.com/repos/fastlane/spaceship/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/spaceship/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/spaceship/teams","hooks_url":"https://api.github.com/repos/fastlane/spaceship/hooks","issue_events_url":"https://api.github.com/repos/fastlane/spaceship/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/spaceship/events","assignees_url":"https://api.github.com/repos/fastlane/spaceship/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/spaceship/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/spaceship/tags","blobs_url":"https://api.github.com/repos/fastlane/spaceship/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/spaceship/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/spaceship/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/spaceship/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/spaceship/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/spaceship/languages","stargazers_url":"https://api.github.com/repos/fastlane/spaceship/stargazers","contributors_url":"https://api.github.com/repos/fastlane/spaceship/contributors","subscribers_url":"https://api.github.com/repos/fastlane/spaceship/subscribers","subscription_url":"https://api.github.com/repos/fastlane/spaceship/subscription","commits_url":"https://api.github.com/repos/fastlane/spaceship/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/spaceship/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/spaceship/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/spaceship/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/spaceship/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/spaceship/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/spaceship/merges","archive_url":"https://api.github.com/repos/fastlane/spaceship/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/spaceship/downloads","issues_url":"https://api.github.com/repos/fastlane/spaceship/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/spaceship/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/spaceship/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/spaceship/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/spaceship/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/spaceship/releases{/id}","created_at":"2015-04-11T19:44:23Z","updated_at":"2015-07-06T01:14:46Z","pushed_at":"2015-07-06T02:10:24Z","git_url":"git://github.com/fastlane/spaceship.git","ssh_url":"git@github.com:fastlane/spaceship.git","clone_url":"https://github.com/fastlane/spaceship.git","svn_url":"https://github.com/fastlane/spaceship","homepage":"https://spaceship.airforce","size":1171,"stargazers_count":367,"watchers_count":367,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":4,"forks":23,"open_issues":4,"watchers":367,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/spaceship/pulls/61"},"html":{"href":"https://github.com/fastlane/spaceship/pull/61"},"issue":{"href":"https://api.github.com/repos/fastlane/spaceship/issues/61"},"comments":{"href":"https://api.github.com/repos/fastlane/spaceship/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/spaceship/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/spaceship/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/spaceship/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/spaceship/statuses/63d51684afd9477d07251ac8835ff3567fe9a1b8"}}}}