xcpretty-bb 0.1.12.bb1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.hound.yml +2 -0
- data/.kick +17 -0
- data/.rubocop.yml +239 -0
- data/.travis.yml +11 -0
- data/CHANGELOG.md +200 -0
- data/CONTRIBUTING.md +64 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +61 -0
- data/README.md +93 -0
- data/Rakefile +26 -0
- data/assets/report.html.erb +172 -0
- data/bin/xcpretty +85 -0
- data/features/assets/RACCommandSpec, line 80, hello xcpretty.png +0 -0
- data/features/assets/apple_raw.png +0 -0
- data/features/custom_formatter.feature +15 -0
- data/features/fixtures/xcodebuild.log +5963 -0
- data/features/html_report.feature +54 -0
- data/features/json_compilation_database_report.feature +21 -0
- data/features/junit_report.feature +44 -0
- data/features/knock_format.feature +11 -0
- data/features/simple_format.feature +204 -0
- data/features/steps/formatting_steps.rb +330 -0
- data/features/steps/html_steps.rb +32 -0
- data/features/steps/json_steps.rb +37 -0
- data/features/steps/junit_steps.rb +39 -0
- data/features/steps/report_steps.rb +22 -0
- data/features/steps/xcpretty_steps.rb +31 -0
- data/features/support/env.rb +117 -0
- data/features/tap_format.feature +31 -0
- data/features/test_format.feature +49 -0
- data/features/xcpretty.feature +14 -0
- data/lib/xcpretty/ansi.rb +72 -0
- data/lib/xcpretty/formatters/formatter.rb +177 -0
- data/lib/xcpretty/formatters/knock.rb +35 -0
- data/lib/xcpretty/formatters/rspec.rb +33 -0
- data/lib/xcpretty/formatters/simple.rb +200 -0
- data/lib/xcpretty/formatters/tap.rb +40 -0
- data/lib/xcpretty/parser.rb +591 -0
- data/lib/xcpretty/printer.rb +24 -0
- data/lib/xcpretty/reporters/html.rb +98 -0
- data/lib/xcpretty/reporters/json_compilation_database.rb +62 -0
- data/lib/xcpretty/reporters/junit.rb +102 -0
- data/lib/xcpretty/snippet.rb +38 -0
- data/lib/xcpretty/syntax.rb +51 -0
- data/lib/xcpretty/term.rb +14 -0
- data/lib/xcpretty/version.rb +4 -0
- data/lib/xcpretty.rb +37 -0
- data/spec/fixtures/NSStringTests.m +64 -0
- data/spec/fixtures/constants.rb +600 -0
- data/spec/fixtures/custom_formatter.rb +18 -0
- data/spec/fixtures/oneliner.m +1 -0
- data/spec/fixtures/raw_kiwi_compilation_fail.txt +24 -0
- data/spec/fixtures/raw_kiwi_fail.txt +1896 -0
- data/spec/fixtures/raw_specta_fail.txt +3110 -0
- data/spec/spec_helper.rb +7 -0
- data/spec/support/matchers/colors.rb +21 -0
- data/spec/xcpretty/ansi_spec.rb +47 -0
- data/spec/xcpretty/formatters/formatter_spec.rb +140 -0
- data/spec/xcpretty/formatters/rspec_spec.rb +56 -0
- data/spec/xcpretty/formatters/simple_spec.rb +173 -0
- data/spec/xcpretty/parser_spec.rb +542 -0
- data/spec/xcpretty/printer_spec.rb +55 -0
- data/spec/xcpretty/snippet_spec.rb +46 -0
- data/spec/xcpretty/syntax_spec.rb +39 -0
- data/spec/xcpretty/term_spec.rb +26 -0
- data/xcpretty.gemspec +37 -0
- metadata +237 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'xcpretty/term'
|
2
|
+
|
3
|
+
module XCPretty
|
4
|
+
describe Term do
|
5
|
+
it "marks unicode as unavailable" do
|
6
|
+
Encoding.stub(:default_external).and_return(Encoding::ASCII)
|
7
|
+
Term.unicode?.should be false
|
8
|
+
end
|
9
|
+
|
10
|
+
it "marks unicode as available" do
|
11
|
+
Encoding.stub(:default_external).and_return(Encoding::UTF_8)
|
12
|
+
Term.unicode?.should be true
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'marks color as unavailable' do
|
16
|
+
STDOUT.stub(:tty?).and_return(false)
|
17
|
+
Term.color?.should be false
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'marks color as available' do
|
21
|
+
STDOUT.stub(:tty?).and_return(true)
|
22
|
+
Term.color?.should be true
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
data/xcpretty.gemspec
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'xcpretty/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "xcpretty-bb"
|
8
|
+
spec.version = XCPretty::VERSION
|
9
|
+
spec.authors = ["Marin Usalj", "Delisa Mason"]
|
10
|
+
spec.email = ["marin2211@gmail.com", "iskanamagus@gmail.com"]
|
11
|
+
spec.required_ruby_version = '>= 2.0.0'
|
12
|
+
spec.description =
|
13
|
+
%q{
|
14
|
+
Xcodebuild formatter designed to be piped with `xcodebuild`,
|
15
|
+
and thus keeping 100% compatibility.
|
16
|
+
|
17
|
+
It has modes for CI, running tests (RSpec dot-style),
|
18
|
+
and it can also mine Bitcoins.
|
19
|
+
}
|
20
|
+
spec.summary = %q(xcodebuild formatter done right)
|
21
|
+
spec.homepage = "https://github.com/supermarin/xcpretty"
|
22
|
+
spec.license = "MIT"
|
23
|
+
|
24
|
+
spec.files = `git ls-files`.split($/)
|
25
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
26
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
27
|
+
spec.require_paths = ["lib"]
|
28
|
+
|
29
|
+
spec.add_dependency 'rouge', '~> 1.8'
|
30
|
+
|
31
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
32
|
+
spec.add_development_dependency "rake"
|
33
|
+
spec.add_development_dependency "rubocop", "~> 0.34.0"
|
34
|
+
spec.add_development_dependency "rspec", "~> 2.0"
|
35
|
+
spec.add_development_dependency "cucumber", "~> 1.0"
|
36
|
+
end
|
37
|
+
|
metadata
ADDED
@@ -0,0 +1,237 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: xcpretty-bb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.12.bb1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marin Usalj
|
8
|
+
- Delisa Mason
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rouge
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.8'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.8'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.3'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.3'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rubocop
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.34.0
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.34.0
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rspec
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '2.0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '2.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: cucumber
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '1.0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '1.0'
|
98
|
+
description: "\n Xcodebuild formatter designed to be piped with `xcodebuild`,\n
|
99
|
+
\ and thus keeping 100% compatibility.\n\n It has modes for CI, running tests
|
100
|
+
(RSpec dot-style),\n and it can also mine Bitcoins.\n "
|
101
|
+
email:
|
102
|
+
- marin2211@gmail.com
|
103
|
+
- iskanamagus@gmail.com
|
104
|
+
executables:
|
105
|
+
- xcpretty
|
106
|
+
extensions: []
|
107
|
+
extra_rdoc_files: []
|
108
|
+
files:
|
109
|
+
- ".gitignore"
|
110
|
+
- ".hound.yml"
|
111
|
+
- ".kick"
|
112
|
+
- ".rubocop.yml"
|
113
|
+
- ".travis.yml"
|
114
|
+
- CHANGELOG.md
|
115
|
+
- CONTRIBUTING.md
|
116
|
+
- Gemfile
|
117
|
+
- LICENSE.txt
|
118
|
+
- README.md
|
119
|
+
- Rakefile
|
120
|
+
- assets/report.html.erb
|
121
|
+
- bin/xcpretty
|
122
|
+
- features/assets/RACCommandSpec, line 80, hello xcpretty.png
|
123
|
+
- features/assets/apple_raw.png
|
124
|
+
- features/custom_formatter.feature
|
125
|
+
- features/fixtures/xcodebuild.log
|
126
|
+
- features/html_report.feature
|
127
|
+
- features/json_compilation_database_report.feature
|
128
|
+
- features/junit_report.feature
|
129
|
+
- features/knock_format.feature
|
130
|
+
- features/simple_format.feature
|
131
|
+
- features/steps/formatting_steps.rb
|
132
|
+
- features/steps/html_steps.rb
|
133
|
+
- features/steps/json_steps.rb
|
134
|
+
- features/steps/junit_steps.rb
|
135
|
+
- features/steps/report_steps.rb
|
136
|
+
- features/steps/xcpretty_steps.rb
|
137
|
+
- features/support/env.rb
|
138
|
+
- features/tap_format.feature
|
139
|
+
- features/test_format.feature
|
140
|
+
- features/xcpretty.feature
|
141
|
+
- lib/xcpretty.rb
|
142
|
+
- lib/xcpretty/ansi.rb
|
143
|
+
- lib/xcpretty/formatters/formatter.rb
|
144
|
+
- lib/xcpretty/formatters/knock.rb
|
145
|
+
- lib/xcpretty/formatters/rspec.rb
|
146
|
+
- lib/xcpretty/formatters/simple.rb
|
147
|
+
- lib/xcpretty/formatters/tap.rb
|
148
|
+
- lib/xcpretty/parser.rb
|
149
|
+
- lib/xcpretty/printer.rb
|
150
|
+
- lib/xcpretty/reporters/html.rb
|
151
|
+
- lib/xcpretty/reporters/json_compilation_database.rb
|
152
|
+
- lib/xcpretty/reporters/junit.rb
|
153
|
+
- lib/xcpretty/snippet.rb
|
154
|
+
- lib/xcpretty/syntax.rb
|
155
|
+
- lib/xcpretty/term.rb
|
156
|
+
- lib/xcpretty/version.rb
|
157
|
+
- spec/fixtures/NSStringTests.m
|
158
|
+
- spec/fixtures/constants.rb
|
159
|
+
- spec/fixtures/custom_formatter.rb
|
160
|
+
- spec/fixtures/oneliner.m
|
161
|
+
- spec/fixtures/raw_kiwi_compilation_fail.txt
|
162
|
+
- spec/fixtures/raw_kiwi_fail.txt
|
163
|
+
- spec/fixtures/raw_specta_fail.txt
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
- spec/support/matchers/colors.rb
|
166
|
+
- spec/xcpretty/ansi_spec.rb
|
167
|
+
- spec/xcpretty/formatters/formatter_spec.rb
|
168
|
+
- spec/xcpretty/formatters/rspec_spec.rb
|
169
|
+
- spec/xcpretty/formatters/simple_spec.rb
|
170
|
+
- spec/xcpretty/parser_spec.rb
|
171
|
+
- spec/xcpretty/printer_spec.rb
|
172
|
+
- spec/xcpretty/snippet_spec.rb
|
173
|
+
- spec/xcpretty/syntax_spec.rb
|
174
|
+
- spec/xcpretty/term_spec.rb
|
175
|
+
- xcpretty.gemspec
|
176
|
+
homepage: https://github.com/supermarin/xcpretty
|
177
|
+
licenses:
|
178
|
+
- MIT
|
179
|
+
metadata: {}
|
180
|
+
post_install_message:
|
181
|
+
rdoc_options: []
|
182
|
+
require_paths:
|
183
|
+
- lib
|
184
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: 2.0.0
|
189
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 1.3.1
|
194
|
+
requirements: []
|
195
|
+
rubyforge_project:
|
196
|
+
rubygems_version: 2.4.6
|
197
|
+
signing_key:
|
198
|
+
specification_version: 4
|
199
|
+
summary: xcodebuild formatter done right
|
200
|
+
test_files:
|
201
|
+
- features/assets/RACCommandSpec, line 80, hello xcpretty.png
|
202
|
+
- features/assets/apple_raw.png
|
203
|
+
- features/custom_formatter.feature
|
204
|
+
- features/fixtures/xcodebuild.log
|
205
|
+
- features/html_report.feature
|
206
|
+
- features/json_compilation_database_report.feature
|
207
|
+
- features/junit_report.feature
|
208
|
+
- features/knock_format.feature
|
209
|
+
- features/simple_format.feature
|
210
|
+
- features/steps/formatting_steps.rb
|
211
|
+
- features/steps/html_steps.rb
|
212
|
+
- features/steps/json_steps.rb
|
213
|
+
- features/steps/junit_steps.rb
|
214
|
+
- features/steps/report_steps.rb
|
215
|
+
- features/steps/xcpretty_steps.rb
|
216
|
+
- features/support/env.rb
|
217
|
+
- features/tap_format.feature
|
218
|
+
- features/test_format.feature
|
219
|
+
- features/xcpretty.feature
|
220
|
+
- spec/fixtures/NSStringTests.m
|
221
|
+
- spec/fixtures/constants.rb
|
222
|
+
- spec/fixtures/custom_formatter.rb
|
223
|
+
- spec/fixtures/oneliner.m
|
224
|
+
- spec/fixtures/raw_kiwi_compilation_fail.txt
|
225
|
+
- spec/fixtures/raw_kiwi_fail.txt
|
226
|
+
- spec/fixtures/raw_specta_fail.txt
|
227
|
+
- spec/spec_helper.rb
|
228
|
+
- spec/support/matchers/colors.rb
|
229
|
+
- spec/xcpretty/ansi_spec.rb
|
230
|
+
- spec/xcpretty/formatters/formatter_spec.rb
|
231
|
+
- spec/xcpretty/formatters/rspec_spec.rb
|
232
|
+
- spec/xcpretty/formatters/simple_spec.rb
|
233
|
+
- spec/xcpretty/parser_spec.rb
|
234
|
+
- spec/xcpretty/printer_spec.rb
|
235
|
+
- spec/xcpretty/snippet_spec.rb
|
236
|
+
- spec/xcpretty/syntax_spec.rb
|
237
|
+
- spec/xcpretty/term_spec.rb
|