lib/xcpretty/formatters/formatter.rb in xcpretty-bb-0.1.12.bb3 vs lib/xcpretty/formatters/formatter.rb in xcpretty-bb-0.1.12.bb4
- old
+ new
@@ -17,10 +17,11 @@
def format_clean_target(target, project, configuration); EMPTY; end
def format_clean_remove; EMPTY; end
def format_compile(file_name, file_path); EMPTY; end
def format_compile_command(compiler_command, file_path); EMPTY; end
def format_compile_storyboard(file_name, file_path); EMPTY; end
+ def format_compile_storyboard_error(file_name, error); EMPTY; end
def format_compile_xib(file_name, file_path); EMPTY; end
def format_copy_header_file(source, target); EMPTY; end
def format_copy_plist_file(source, target); EMPTY; end
def format_copy_strings_file(file_name); EMPTY; end
def format_cpresource(file); EMPTY; end
@@ -114,16 +115,20 @@
def format_error(message)
"\n#{red(error_symbol + " " + message)}\n\n"
end
def format_phase_script_error(error, output)
- indentedOutput = output.join(" ");
- "\n#{red(error_symbol + " ")}#{error}: #{red(indentedOutput)}\n\n"
+ indented_output = output.join(" ")
+ "\n#{red(error_symbol + " ")}#{error}: #{red(indented_output)}\n\n"
end
def format_compile_error(file, file_path, reason, line, cursor)
"\n#{red(error_symbol + " ")}#{file_path}: #{red(reason)}\n\n" \
"#{line}\n#{cyan(cursor)}\n\n"
+ end
+
+ def format_compile_storyboard_error(file_name, error)
+ format_error(file_name + ": " + error)
end
def format_file_missing_error(reason, file_path)
"\n#{red(error_symbol + " " + reason)} #{file_path}\n\n"
end