xcpretty-bb 0.1.12.bb2 → 0.1.12.bb3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcpretty/formatters/formatter.rb +4 -3
- data/lib/xcpretty/parser.rb +9 -9
- data/lib/xcpretty/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a478924a7e77d955cfd050a439f93afd9914d9a0
|
4
|
+
data.tar.gz: 156e3a474b751c146144b76adf4c9b2463410679
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60a8cdad35465d760fd91d5b883e52fc33b50bf2f956d4e8450f238b9ae4863617f4b380fbba00449271c3d892f2b10b17608fcaa47d756b9b762be9c13c9eec
|
7
|
+
data.tar.gz: 596ca0fdd3d232105ffc1681db794bfb150376bf1fb6dbdb9cdc084dae75f38aae43deff27595125fb25a471f1b2096111a0e09a72519c834bd915f5b367a6e1
|
@@ -35,7 +35,7 @@ module XCPretty
|
|
35
35
|
def format_process_pch_command(file_path); EMPTY; end
|
36
36
|
def format_phase_success(phase_name); EMPTY; end
|
37
37
|
def format_phase_script_execution(phase_name); EMPTY; end
|
38
|
-
def format_phase_script_error(error,
|
38
|
+
def format_phase_script_error(error, output) EMPTY; end
|
39
39
|
def format_process_info_plist(file_name, file_path); EMPTY; end
|
40
40
|
def format_codesign(file); EMPTY; end
|
41
41
|
def format_preprocess(file); EMPTY; end
|
@@ -115,8 +115,9 @@ module XCPretty
|
|
115
115
|
"\n#{red(error_symbol + " " + message)}\n\n"
|
116
116
|
end
|
117
117
|
|
118
|
-
def format_phase_script_error(error,
|
119
|
-
|
118
|
+
def format_phase_script_error(error, output)
|
119
|
+
indentedOutput = output.join(" ");
|
120
|
+
"\n#{red(error_symbol + " ")}#{error}: #{red(indentedOutput)}\n\n"
|
120
121
|
end
|
121
122
|
|
122
123
|
def format_compile_error(file, file_path, reason, line, cursor)
|
data/lib/xcpretty/parser.rb
CHANGED
@@ -395,16 +395,16 @@ module XCPretty
|
|
395
395
|
def update_phase_script_state(text)
|
396
396
|
case text
|
397
397
|
when PHASE_SCRIPT_EXECUTION_MATCHER
|
398
|
-
@
|
398
|
+
@current_phase_script_output = [text]
|
399
399
|
when PHASE_SCRIPT_COMMAND_FAILED_MATCHER, PHASE_SCRIPT_NO_SUCH_FILE_OR_DIRECTORY_MATCHER
|
400
|
-
unless @
|
401
|
-
@
|
402
|
-
current_phase_script_failure[:
|
400
|
+
unless @current_phase_script_output.nil?
|
401
|
+
@current_phase_script_output << text
|
402
|
+
current_phase_script_failure[:output] = @current_phase_script_output
|
403
403
|
current_phase_script_failure[:error] = text
|
404
404
|
end
|
405
405
|
else
|
406
|
-
unless @
|
407
|
-
@
|
406
|
+
unless @current_phase_script_output.nil?
|
407
|
+
@current_phase_script_output << text
|
408
408
|
end
|
409
409
|
end
|
410
410
|
end
|
@@ -483,7 +483,7 @@ module XCPretty
|
|
483
483
|
end
|
484
484
|
|
485
485
|
def should_format_phase_script_error?
|
486
|
-
current_phase_script_failure[:error] && current_phase_script_failure[:
|
486
|
+
current_phase_script_failure[:error] && current_phase_script_failure[:output]
|
487
487
|
end
|
488
488
|
|
489
489
|
def current_issue
|
@@ -541,7 +541,7 @@ module XCPretty
|
|
541
541
|
|
542
542
|
def format_phase_script_error
|
543
543
|
result = formatter.format_phase_script_error(current_phase_script_failure[:error],
|
544
|
-
current_phase_script_failure[:
|
544
|
+
current_phase_script_failure[:output]
|
545
545
|
)
|
546
546
|
|
547
547
|
reset_phase_script_state
|
@@ -550,7 +550,7 @@ module XCPretty
|
|
550
550
|
|
551
551
|
def reset_phase_script_state
|
552
552
|
@phase_script_failure = nil
|
553
|
-
@
|
553
|
+
@current_phase_script_output = nil
|
554
554
|
end
|
555
555
|
|
556
556
|
def reset_linker_format_state
|
data/lib/xcpretty/version.rb
CHANGED