lib/spaceship/client.rb in spaceship-0.0.9 vs lib/spaceship/client.rb in spaceship-0.0.10
- old
+ new
@@ -49,13 +49,13 @@
end
end
def initialize
@client = Faraday.new("https://developer.apple.com/services-account/#{PROTOCOL_VERSION}/") do |c|
- c.response :json, :content_type => /\bjson$/
- c.response :xml, :content_type => /\bxml$/
- c.response :plist, :content_type => /\bplist$/
+ c.response :json, content_type: /\bjson$/
+ c.response :xml, content_type: /\bxml$/
+ c.response :plist, content_type: /\bplist$/
c.adapter Faraday.default_adapter
if ENV['DEBUG']
# for debugging only
# This enables tracking of networking requests using Charles Web Proxy
@@ -399,10 +399,10 @@
teamId: team_id,
provisioningProfileId: profile_id,
provisioningProfileName: name,
appIdId: app_id,
distributionType: distribution_method,
- certificateIds: certificate_ids,
+ certificateIds: certificate_ids.first, # we are most of the times only allowed to pass one
deviceIds: device_ids
})
parse_response(r, 'provisioningProfile')
end