spaceship/lib/spaceship/tunes/tester.rb in fastlane-2.28.0.beta.20170420010017 vs spaceship/lib/spaceship/tunes/tester.rb in fastlane-2.28.0

- old
+ new

@@ -99,16 +99,17 @@ # @param groups (Array) (option): Names/IDs of existing groups for the new tester # @example # Spaceship::Tunes::Tester.external.create!(email: "tester@mathiascarignani.com", first_name: "Cary", last_name: "Bennett", groups: ["Testers"]) # @return (Tester): The newly created tester def create!(email: nil, first_name: nil, last_name: nil, groups: nil) - data = client.create_tester!(tester: self, - email: email, - first_name: first_name, - last_name: last_name, - groups: groups) - self.factory(data) + client.create_tester!(tester: self, + email: email, + first_name: first_name, + last_name: last_name, + groups: groups) + # We don't need to do additional parsing here, as `create_tester!` automatically + # re-fetches the newly created tester end ##################################################### # @!group App ##################################################### @@ -188,16 +189,16 @@ ##################################################### # Add current tester to list of the app testers # @param app_id (String) (required): The id of the application to which want to modify the list def add_to_app!(app_id) - client.add_tester_to_app!(self, app_id) + raise "`[tester].add_to_app!` got removed from spaceship as the TestFlight API changed, please use `app.default_external_group.add_tester!(tester)` instead" end # Remove current tester from list of the app testers # @param app_id (String) (required): The id of the application to which want to modify the list def remove_from_app!(app_id) - client.remove_tester_from_app!(self, app_id) + raise "`[tester].remove_from_app!` got removed from spaceship as the TestFlight API changed, please use `app.default_external_group.remove_tester!(tester)` instead" end ##################################################### # @!group Helpers #####################################################