lib/spaceship/tunes/application.rb in spaceship-0.5.0 vs lib/spaceship/tunes/application.rb in spaceship-0.5.1
- old
+ new
@@ -165,13 +165,17 @@
# These are all build that have no information except the upload date
# Those builds can also be the builds that are stuck on iTC.
def pre_processing_builds
data = client.build_trains(apple_id) # we need to fetch all trains here to get the builds
- data.fetch('processingBuilds', []).collect do |attrs|
+ builds = data.fetch('processingBuilds', []).collect do |attrs|
attrs.merge!(build_train: self)
Tunes::ProcessingBuild.factory(attrs)
end
+
+ builds.delete_if { |a| a.state == "ITC.apps.betaProcessingStatus.InvalidBinary" }
+
+ builds
end
# @return [Array] This will return an array of *all* processing builds
# this include pre-processing or standard processing
def all_processing_builds