xcpretty-yandex-money-formatter 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/yandex_money_formatter.rb +87 -51
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1a87cda1f0190c766bbd07151a11e7bc3271d232
|
4
|
+
data.tar.gz: 8e5b2688727fa2477c16443b303df77458779950
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2916983399004459625505514459d8110ffa80a63e947a9037a17ee6438361ee449c63417f85294520af82d4e0524488bdf591fc169643ac07de15ef29ca5830
|
7
|
+
data.tar.gz: 953ea6a98cbd2649e8bed6bd64f710a2e8d329e1fca4d562c37ec366f0cb7322391b505006120f7916d8f6d8eb0f4ac513e7384c235b86a35882c61b3fbfbb9a
|
@@ -1,55 +1,91 @@
|
|
1
|
-
|
2
1
|
class TeamCityFormatter < XCPretty::Simple
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
2
|
+
def initialize(use_unicode, colorize)
|
3
|
+
super
|
4
|
+
log compile_group(false)
|
5
|
+
at_exit do
|
6
|
+
log compile_group(true)
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
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
|
14
|
+
end
|
15
|
+
|
16
|
+
def format_error(message)
|
17
|
+
log compile_error('Error', super)
|
18
|
+
super
|
19
|
+
end
|
20
|
+
|
21
|
+
def format_file_missing_error(error, file_path)
|
22
|
+
log compile_error('Missing file', super)
|
23
|
+
super
|
24
|
+
end
|
25
|
+
|
26
|
+
def format_ld_warning(message)
|
27
|
+
log compile_error('LD warning', super)
|
28
|
+
super
|
29
|
+
end
|
30
|
+
|
31
|
+
def format_undefined_symbols(message, symbol, reference)
|
32
|
+
log compile_error('Undefined symbols', super)
|
33
|
+
super
|
34
|
+
end
|
35
|
+
|
36
|
+
def format_duplicate_symbols(message, file_paths)
|
37
|
+
log compile_error('Duplicate symbols', super)
|
38
|
+
super
|
39
|
+
end
|
40
|
+
|
41
|
+
def format_warning(message)
|
42
|
+
log compile_error('Warning', super)
|
43
|
+
super
|
44
|
+
end
|
45
|
+
|
46
|
+
def format_compile_warning(file_name, file_path, reason, line, cursor)
|
47
|
+
log compile_error('Compile warning', super)
|
48
|
+
super
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
|
53
|
+
# @param [String] str
|
54
|
+
def log(str)
|
55
|
+
STDOUT.puts str
|
56
|
+
end
|
57
|
+
|
58
|
+
# @param [String] message
|
59
|
+
# @param [String] unformatted_details
|
60
|
+
# @param [Bool] warning
|
61
|
+
# @return [String]
|
62
|
+
def compile_error(message, unformatted_details, warning = false)
|
63
|
+
status = if warning
|
64
|
+
'WARNING'
|
65
|
+
else
|
66
|
+
'ERROR'
|
67
|
+
end
|
68
|
+
str = "##teamcity[message text='#{message}' "
|
69
|
+
unless warning
|
70
|
+
error_details = format_error_details(unformatted_details)
|
71
|
+
str += "errorDetails='#{error_details} "
|
72
|
+
end
|
73
|
+
str += "status='#{status}']\n"
|
74
|
+
str
|
75
|
+
end
|
76
|
+
|
77
|
+
# @param [Bool] finished
|
78
|
+
# @return [String]
|
79
|
+
def compile_group(finished)
|
80
|
+
command = finished ? 'compilationStarted' : 'compilationFinished'
|
81
|
+
"##teamcity[#{command} compiler='xcodebuild']"
|
82
|
+
end
|
83
|
+
|
84
|
+
# @param [String] str
|
85
|
+
# @return [String]
|
86
|
+
def format_error_details(str)
|
87
|
+
str.tr("\n", '').tr("'", '')
|
88
|
+
end
|
53
89
|
end
|
54
90
|
|
55
91
|
TeamCityFormatter
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcpretty-yandex-money-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alxander Zalutskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcpretty
|
@@ -31,49 +31,49 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.0.7
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: bacon
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.2'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.2'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '1.3'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '1.3'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: rake
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
75
|
-
description: "\n
|
76
|
-
\
|
74
|
+
version: '0'
|
75
|
+
description: "\n Formatter for xcpretty customized to provide pretty output on
|
76
|
+
TeamCity\n "
|
77
77
|
email:
|
78
78
|
- zalutskii@yamoney.ru
|
79
79
|
executables:
|
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
requirements:
|
98
98
|
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: '2.
|
100
|
+
version: '2.2'
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - ">="
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.6.14
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: xcpretty custom formatter for TeamCity
|