spaceship/lib/spaceship/test_flight/build.rb in fastlane-2.65.0.beta.20171113010004 vs spaceship/lib/spaceship/test_flight/build.rb in fastlane-2.65.0.beta.20171114010003

- old
+ new

@@ -67,11 +67,12 @@ BUILD_STATES = { processing: 'testflight.build.state.processing', active: 'testflight.build.state.testing.active', ready_to_submit: 'testflight.build.state.submit.ready', ready_to_test: 'testflight.build.state.testing.ready', - export_compliance_missing: 'testflight.build.state.export.compliance.missing' + export_compliance_missing: 'testflight.build.state.export.compliance.missing', + review_rejected: 'testflight.build.state.review.rejected' } # Find a Build by `build_id`. # # @return (Spaceship::TestFlight::Build) @@ -128,11 +129,15 @@ def export_compliance_missing? external_state == BUILD_STATES[:export_compliance_missing] end + def review_rejected? + external_state == BUILD_STATES[:review_rejected] + end + def processed? - active? || ready_to_submit? || export_compliance_missing? + active? || ready_to_submit? || export_compliance_missing? || review_rejected? end # Getting builds from BuildTrains only gets a partial Build object # We are then requesting the full build from iTC when we need to access # any of the variables below, because they are not included in the partial Build objects