pilot/lib/pilot/build_manager.rb in fastlane-2.74.1 vs pilot/lib/pilot/build_manager.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -67,20 +67,20 @@
app_test_info = Spaceship::TestFlight::AppTestInfo.find(app_id: build.app_id)
app_test_info.test_info.feedback_email = options[:beta_app_feedback_email] if options[:beta_app_feedback_email]
app_test_info.test_info.description = options[:beta_app_description] if options[:beta_app_description]
begin
app_test_info.save_for_app!(app_id: build.app_id)
- UI.success "Successfully set the beta_app_feedback_email and/or beta_app_description"
+ UI.success("Successfully set the beta_app_feedback_email and/or beta_app_description")
rescue => ex
UI.user_error!("Could not set beta_app_feedback_email and/or beta_app_description: #{ex}")
end
end
if should_update_build_information?(options)
begin
build.update_build_information!(whats_new: options[:changelog])
- UI.success "Successfully set the changelog for build"
+ UI.success("Successfully set the changelog for build")
rescue => ex
UI.user_error!("Could not set changelog: #{ex}")
end
end
@@ -100,23 +100,23 @@
builds = app.all_processing_builds(platform: platform) + app.builds(platform: platform)
# sort by upload_date
builds.sort! { |a, b| a.upload_date <=> b.upload_date }
rows = builds.collect { |build| describe_build(build) }
- puts Terminal::Table.new(
- title: "#{app.name} Builds".green,
- headings: ["Version #", "Build #", "Installs"],
- rows: FastlaneCore::PrintTable.transform_output(rows)
- )
+ puts(Terminal::Table.new(
+ title: "#{app.name} Builds".green,
+ headings: ["Version #", "Build #", "Installs"],
+ rows: FastlaneCore::PrintTable.transform_output(rows)
+ ))
end
def self.truncate_changelog(changelog)
max_changelog_length = 4000
if changelog && changelog.length > max_changelog_length
original_length = changelog.length
bottom_message = "..."
changelog = "#{changelog[0...max_changelog_length - bottom_message.length]}#{bottom_message}"
- UI.important "Changelog has been truncated since it exceeds Apple's #{max_changelog_length} character limit. It currently contains #{original_length} characters."
+ UI.important("Changelog has been truncated since it exceeds Apple's #{max_changelog_length} character limit. It currently contains #{original_length} characters.")
end
return changelog
end
private