lib/spaceship/tunes/build.rb in spaceship-0.3.4 vs lib/spaceship/tunes/build.rb in spaceship-0.4.0
- old
+ new
@@ -4,11 +4,11 @@
class Build < TunesBase
#####################################################
# @!group General metadata
#####################################################
-
+
# @return (Spaceship::Tunes::BuildTrain) A reference to the build train this build is contained in
attr_accessor :build_train
# @return (Integer) The ID generated by iTunes Connect
attr_accessor :id
@@ -42,15 +42,14 @@
# @return (Boolean): Is this build available for external beta testing
# this is only true after the build was approved by Apple
attr_accessor :external_testing_enabled
-
# @return (Bool) Does this build support WatchKit?
attr_accessor :watch_kit_enabled
- # @return (Bool):
+ # @return (Bool):
attr_accessor :ready_to_install
#####################################################
# @!group Analytics
#####################################################
@@ -86,11 +85,11 @@
'sessionCount' => :session_count,
'crashCount' => :crash_count,
'internalExpiry' => :internal_expiry_date,
'externalExpiry' => :external_expiry_date,
'watchKitEnabled' => :watch_kit_enabled,
- 'readyToInstall' => :ready_to_install,
+ 'readyToInstall' => :ready_to_install
)
class << self
# Create a new object based on a hash.
# This is used to create a new object based on the server response.
@@ -127,13 +126,13 @@
# encryption: false
# }
def submit_for_beta_review!(metadata)
# First, enable beta testing for this train (per iTC requirement)
self.build_train.update_testing_status!(true)
-
+
parameters = {
- app_id: self.build_train.application.apple_id,
+ app_id: self.build_train.application.apple_id,
train: self.build_train.version_string,
build_number: self.build_version,
# Required Metadata:
changelog: "No changelog provided",
@@ -180,10 +179,10 @@
return testing
end
# This will cancel the review process for this TestFlight build
def cancel_beta_review!
- client.remove_testflight_build_from_review!(app_id: self.build_train.application.apple_id,
+ client.remove_testflight_build_from_review!(app_id: self.build_train.application.apple_id,
train: self.build_train.version_string,
build_number: self.build_version)
end
end
end