xcpretty-yandex-money-formatter 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yandex_money_formatter.rb +13 -19
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5050266fb38fd32129f6297edc8ace292edf345
4
- data.tar.gz: '038a6e3293d1b3cdfadcec23add4d7913a96af58'
3
+ metadata.gz: 010ae5a73457de48b3b234799a46a0b95af74def
4
+ data.tar.gz: cf2e26e4d36bc57378a6d456f659c6fb9c42ec09
5
5
  SHA512:
6
- metadata.gz: c38fa7d9056da19d318c4e190e6bece54c1f8b37503d4a6d8ba9040067da07868262cacc7f1e52bcee4c253ea2ee86a3739c86a928fc8b2d63ba0b6d2feeef6d
7
- data.tar.gz: 94d29da73d52faf76b85278f56cf1abc310fcf0e3bfbc3f133c3304bbb81e99dd1456da27690c3f7bddb98ec955c50cfa1f4d8e7ea19002f10fce94ef732bac5
6
+ metadata.gz: 281c1a83380045d8b6ecfd72c79cef2426d672f51b316238b2956bd8c160c05264ac5e043238d5ceb5645d4bc27e9b89703093233c608f12106d682236984cb0
7
+ data.tar.gz: 8df05845826f6f5a68c5009cbded04418b02f5278a446c2fc91cae98c8afc2e8d1354aa60f0bdb101749e96faa1b9f54ec5861c3ec03e18a1aed9432f66f5354
@@ -8,44 +8,38 @@ class TeamCityFormatter < XCPretty::Simple
8
8
  end
9
9
 
10
10
  # Errors and warnings.
11
- def format_compile_error(file_name, file_path, reason, line, cursor)
12
- log compile_error('Compile error', super)
13
- super
11
+ def format_compile_error(_, file_path, reason, line, cursor)
12
+ details = "#{file_path}: #{reason}\n#{line}\n#{cursor}"
13
+ compile_error('Compile error', details)
14
14
  end
15
15
 
16
16
  def format_error(message)
17
- log compile_error('Error', super)
18
- super
17
+ compile_error('Error', super)
19
18
  end
20
19
 
21
20
  def format_file_missing_error(error, file_path)
22
- log compile_error('Missing file', super)
23
- super
21
+ compile_error('Error', "#{file_path}: #{error}")
24
22
  end
25
23
 
26
24
  def format_ld_warning(message)
27
- log compile_error('LD warning', super)
28
- super
25
+ compile_error('LD warning', super)
29
26
  end
30
27
 
31
28
  def format_undefined_symbols(message, symbol, reference)
32
- log compile_error('Undefined symbols', super)
33
- super
29
+ compile_error('Undefined symbols', "#{symbol} #{reference} #{message}")
34
30
  end
35
31
 
36
32
  def format_duplicate_symbols(message, file_paths)
37
- log compile_error('Duplicate symbols', super)
38
- super
33
+ compile_error('Duplicate symbols', "#{file_paths}: #{message}")
39
34
  end
40
35
 
41
36
  def format_warning(message)
42
- log compile_error('Warning', super)
43
- super
37
+ compile_error('Warning', message)
44
38
  end
45
39
 
46
- def format_compile_warning(file_name, file_path, reason, line, cursor)
47
- log compile_error('Compile warning', super)
48
- super
40
+ def format_compile_warning(_, file_path, reason, line, cursor)
41
+ details = "#{file_path}: #{reason}\n#{line}\n#{cursor}"
42
+ compile_error('Compile warning', details)
49
43
  end
50
44
 
51
45
  private
@@ -79,7 +73,7 @@ class TeamCityFormatter < XCPretty::Simple
79
73
  # @param [String] str
80
74
  # @return [String]
81
75
  def format_error_details(str)
82
- str.tr("\n", '').tr("'", '')
76
+ str.gsub("\n", '|n').gsub("'", "|'")
83
77
  end
84
78
  end
85
79
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcpretty-yandex-money-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alxander Zalutskiy