lib/spaceship/tunes/application.rb in spaceship-0.3.0 vs lib/spaceship/tunes/application.rb in spaceship-0.3.1

- old
+ new

@@ -38,25 +38,21 @@ # "https://is1-ssl.mzstatic.com/image/thumb/Purple7/v4/cd/a3/e2/cda3e2ac-4034-c6af-ee0c-3e4d9a0bafaa/pr_source.png/340x340bb-80.png" # @example # nil attr_accessor :app_icon_preview_url - # @return [Array] A list of binaries which are not even yet processing based on the version - # Those builds are usually the ones that are just stuck on iTunes Connect... - attr_accessor :pre_processing_builds - attr_mapping( 'adamId' => :apple_id, 'name' => :name, 'appType' => :platform, 'vendorId' => :vendor_id, 'bundleId' => :bundle_id, 'lastModifiedDate' => :last_modified, 'issuesCount' => :issues_count, 'iconUrl' => :app_icon_preview_url ) - + class << self # Create a new object based on a hash. # This is used to create a new object based on the server response. def factory(attrs) self.new(attrs) @@ -160,11 +156,12 @@ # @return [Hash] a hash, the version number being the key def build_trains Tunes::BuildTrain.all(self, self.apple_id) end - # @return [Array] A list of all pre-processing builds + # @return [Array]A list of binaries which are not even yet processing based on the version # 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| attrs.merge!(build_train: self)