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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e98c1acf957464113bd8b0ae61271f4492bb28e
4
- data.tar.gz: 9c171a85da32af6e2ec0cde275c9f70ce74bfe3b
3
+ metadata.gz: a478924a7e77d955cfd050a439f93afd9914d9a0
4
+ data.tar.gz: 156e3a474b751c146144b76adf4c9b2463410679
5
5
  SHA512:
6
- metadata.gz: b2597b9f5417e55c412f76ec8267e066e5164bd50079f337180a7c5c2e06e0037265ee999efa1e4c973de89a3b2df6ea7ad4ebbc66078a153320c0275d888033
7
- data.tar.gz: eef643c76640e9c010bb50bdff14318f16e0d3d1396ea512697b8f18e20361ed0b18e90d634dfb81888bd72d1eb9c525c2e21c746f560250d6b62d7d56c3f0f8
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, text); EMPTY; end
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, text)
119
- "\n#{red(error_symbol + " ")}#{error}: #{red(text)}\n\n"
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)
@@ -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
- @current_phase_script_text = text
398
+ @current_phase_script_output = [text]
399
399
  when PHASE_SCRIPT_COMMAND_FAILED_MATCHER, PHASE_SCRIPT_NO_SUCH_FILE_OR_DIRECTORY_MATCHER
400
- unless @current_phase_script_text.nil?
401
- @current_phase_script_text += text
402
- current_phase_script_failure[:text] = @current_phase_script_text
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 @current_phase_script_text.nil?
407
- @current_phase_script_text += text
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[:text]
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[:text]
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
- @current_phase_script_text = nil
553
+ @current_phase_script_output = nil
554
554
  end
555
555
 
556
556
  def reset_linker_format_state
@@ -1,4 +1,4 @@
1
1
  module XCPretty
2
- VERSION = "0.1.12.bb2"
2
+ VERSION = "0.1.12.bb3"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcpretty-bb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12.bb2
4
+ version: 0.1.12.bb3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marin Usalj