spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.74.1 vs spaceship/lib/spaceship/test_flight/client.rb in fastlane-2.75.0.beta.20180109010003

- old
+ new

@@ -52,33 +52,33 @@ def put_build(app_id: nil, build_id: nil, build: nil) assert_required_params(__method__, binding) response = request(:put) do |req| - req.url "providers/#{team_id}/apps/#{app_id}/builds/#{build_id}" + req.url("providers/#{team_id}/apps/#{app_id}/builds/#{build_id}") req.body = build.to_json req.headers['Content-Type'] = 'application/json' end handle_response(response) end def post_for_testflight_review(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}/review" + req.url("providers/#{team_id}/apps/#{app_id}/builds/#{build_id}/review") req.body = build.to_json 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.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 @@ -104,11 +104,11 @@ body = { 'name' => group_name } response = request(:post) do |req| - req.url "providers/#{team_id}/apps/#{app_id}/groups" + req.url("providers/#{team_id}/apps/#{app_id}/groups") req.body = body.to_json req.headers['Content-Type'] = 'application/json' end handle_response(response) end @@ -119,11 +119,11 @@ body = { 'groupId' => group_id, 'buildId' => build_id } response = request(:put) do |req| - req.url "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/builds/#{build_id}" + req.url("providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/builds/#{build_id}") req.body = body.to_json req.headers['Content-Type'] = 'application/json' end handle_response(response) end @@ -210,11 +210,11 @@ def create_app_level_tester(app_id: nil, first_name: nil, last_name: nil, email: nil) assert_required_params(__method__, binding) url = "providers/#{team_id}/apps/#{app_id}/testers" response = request(:post) do |req| - req.url url + req.url(url) req.body = { "email" => email, "firstName" => first_name, "lastName" => last_name }.to_json @@ -228,11 +228,11 @@ # Then we can add the tester to the group that allows the app to test # This is easy enough, we already have all this data. We don't need any response from the previous request url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/testers" response = request(:post) do |req| - req.url url + req.url(url) req.body = [{ "email" => email, "firstName" => first_name, "lastName" => last_name }].to_json @@ -244,11 +244,11 @@ def delete_tester_from_group(group_id: nil, tester_id: nil, app_id: nil) assert_required_params(__method__, binding) url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/testers/#{tester_id}" response = request(:delete) do |req| - req.url url + req.url(url) req.headers['Content-Type'] = 'application/json' end handle_response(response) end @@ -265,10 +265,10 @@ def put_app_test_info(app_id: nil, app_test_info: nil) assert_required_params(__method__, binding) response = request(:put) do |req| - req.url "providers/#{team_id}/apps/#{app_id}/testInfo" + req.url("providers/#{team_id}/apps/#{app_id}/testInfo") req.body = app_test_info.to_json req.headers['Content-Type'] = 'application/json' end handle_response(response) end