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.
- checksums.yaml +4 -4
- data/lib/yandex_money_formatter.rb +13 -19
- 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: 010ae5a73457de48b3b234799a46a0b95af74def
|
4
|
+
data.tar.gz: cf2e26e4d36bc57378a6d456f659c6fb9c42ec09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
12
|
-
|
13
|
-
|
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
|
-
|
18
|
-
super
|
17
|
+
compile_error('Error', super)
|
19
18
|
end
|
20
19
|
|
21
20
|
def format_file_missing_error(error, file_path)
|
22
|
-
|
23
|
-
super
|
21
|
+
compile_error('Error', "#{file_path}: #{error}")
|
24
22
|
end
|
25
23
|
|
26
24
|
def format_ld_warning(message)
|
27
|
-
|
28
|
-
super
|
25
|
+
compile_error('LD warning', super)
|
29
26
|
end
|
30
27
|
|
31
28
|
def format_undefined_symbols(message, symbol, reference)
|
32
|
-
|
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
|
-
|
38
|
-
super
|
33
|
+
compile_error('Duplicate symbols', "#{file_paths}: #{message}")
|
39
34
|
end
|
40
35
|
|
41
36
|
def format_warning(message)
|
42
|
-
|
43
|
-
super
|
37
|
+
compile_error('Warning', message)
|
44
38
|
end
|
45
39
|
|
46
|
-
def format_compile_warning(
|
47
|
-
|
48
|
-
|
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.
|
76
|
+
str.gsub("\n", '|n').gsub("'", "|'")
|
83
77
|
end
|
84
78
|
end
|
85
79
|
|