spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.59.0.beta.20170921010003 vs spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.59.0.beta.20170922010003

- old
+ new

@@ -66,9 +66,20 @@ req.headers['Content-Type'] = 'application/json' end handle_response(response) end + def expire_build(app_id: nil, build_id: nil, build: nil) + assert_required_params(__method__, binding) + + response = request(:post) do |req| + req.url "providers/#{team_id}/apps/#{app_id}/builds/#{build_id}/expire" + req.body = build.to_json + req.headers['Content-Type'] = 'application/json' + end + handle_response(response) + end + ## # @!group Groups API ## def get_groups(app_id: nil)