lib/spaceship/tunes/tunes_client.rb in spaceship-0.14.1 vs lib/spaceship/tunes/tunes_client.rb in spaceship-0.14.2

- old
+ new

@@ -271,9 +271,11 @@ # We only support platforms that exist ATM platform = platforms.find do |p| ['ios', 'osx'].include? p['platformString'] end + raise "Could not find platform ios or osx for app #{app_id}" unless platform + version = platform[(is_live ? 'deliverableVersion' : 'inFlightVersion')] return nil unless version version_id = version['id'] version_platform = platform['platformString']