lib/deliver/submit_for_review.rb in deliver-1.0.0.beta2 vs lib/deliver/submit_for_review.rb in deliver-1.0.0.beta3
- old
+ new
@@ -6,12 +6,22 @@
Helper.log.info "Submitting the app for review..."
submission = app.create_submission
# Set app submission information
+ # Default Values
submission.content_rights_contains_third_party_content = false
submission.content_rights_has_rights = true
submission.add_id_info_uses_idfa = false
+
+ # User Values
+ if options[:submission_information]
+ raise "`submission_information` must be a hash" unless options[:submission_information].kind_of?(Hash)
+ options[:submission_information].each do |key, value|
+ Helper.log.info "Setting '#{key}' to '#{value}'..."
+ submission.send("#{key}=", value)
+ end
+ end
# Finalize app submission
submission.complete!
Helper.log.info "Successfully submitted the app for review!".green