xcpretty 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/features/fixtures/xcodebuild.log +5963 -0
- data/features/steps/xcpretty_steps.rb +11 -0
- data/features/xcpretty.feature +4 -0
- data/lib/xcpretty/parser.rb +3 -2
- data/lib/xcpretty/version.rb +1 -1
- metadata +4 -2
|
@@ -10,6 +10,12 @@ When(/^I run xcpretty with (.*)$/) do |flags|
|
|
|
10
10
|
@output = `bin/xcpretty #{flags}`
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
When(/^I run xcpretty over a big file$/) do
|
|
14
|
+
start_time = Time.now
|
|
15
|
+
@output = `cat features/fixtures/xcodebuild.log | bin/xcpretty -c`
|
|
16
|
+
@xcpretty_run_time = Time.now - start_time
|
|
17
|
+
end
|
|
18
|
+
|
|
13
19
|
Then(/^I should see the help banner$/) do
|
|
14
20
|
run_output.should include("Usage: xcodebuild [options] | xcpretty")
|
|
15
21
|
end
|
|
@@ -22,3 +28,8 @@ Then(/^the exit status code should be (\d)$/) do |numbah|
|
|
|
22
28
|
$?.exitstatus.should == numbah.to_i
|
|
23
29
|
end
|
|
24
30
|
|
|
31
|
+
Then(/^the performance should be way faster than running cat$/) do
|
|
32
|
+
puts "XCPretty run time: #{@xcpretty_run_time}"
|
|
33
|
+
@xcpretty_run_time.should < 2
|
|
34
|
+
end
|
|
35
|
+
|
data/features/xcpretty.feature
CHANGED
data/lib/xcpretty/parser.rb
CHANGED
|
@@ -42,7 +42,7 @@ module XCPretty
|
|
|
42
42
|
# $1 = file_path
|
|
43
43
|
# $2 = file_name
|
|
44
44
|
# $3 = reason
|
|
45
|
-
COMPILE_ERROR_MATCHER = /^(
|
|
45
|
+
COMPILE_ERROR_MATCHER = /^(\/.+\/(.*):.*:.*):(?:\sfatal)?\serror:\s(.*)$/
|
|
46
46
|
|
|
47
47
|
# @regex Captured groups
|
|
48
48
|
# $1 file_path
|
|
@@ -121,7 +121,7 @@ module XCPretty
|
|
|
121
121
|
|
|
122
122
|
# @regex Captured groups
|
|
123
123
|
# $1 = reference
|
|
124
|
-
SYMBOL_REFERENCED_FROM_MATCHER = /\s
|
|
124
|
+
SYMBOL_REFERENCED_FROM_MATCHER = /\s+"(.*)", referenced from:$/
|
|
125
125
|
|
|
126
126
|
# @regex Captured groups
|
|
127
127
|
# $1 = suite
|
|
@@ -322,3 +322,4 @@ module XCPretty
|
|
|
322
322
|
|
|
323
323
|
end
|
|
324
324
|
end
|
|
325
|
+
|
data/lib/xcpretty/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xcpretty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marin Usalj
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-12-
|
|
12
|
+
date: 2013-12-31 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -89,6 +89,7 @@ files:
|
|
|
89
89
|
- Rakefile
|
|
90
90
|
- bin/xcpretty
|
|
91
91
|
- features/custom_formatter.feature
|
|
92
|
+
- features/fixtures/xcodebuild.log
|
|
92
93
|
- features/junit_report.feature
|
|
93
94
|
- features/simple_format.feature
|
|
94
95
|
- features/steps/formatting_steps.rb
|
|
@@ -148,6 +149,7 @@ specification_version: 4
|
|
|
148
149
|
summary: xcodebuild formatter done right
|
|
149
150
|
test_files:
|
|
150
151
|
- features/custom_formatter.feature
|
|
152
|
+
- features/fixtures/xcodebuild.log
|
|
151
153
|
- features/junit_report.feature
|
|
152
154
|
- features/simple_format.feature
|
|
153
155
|
- features/steps/formatting_steps.rb
|