xcpretty-bb 0.1.12.bb4 → 0.1.12.bb5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48165ab74fa10573e1ab84d4e9130f13f8f6940d
4
- data.tar.gz: 7d24fe784c594f4d86ba1289a1bae7982a72ef0a
3
+ metadata.gz: ac8db8c314cde643fbe2f4d672af8a34aa82e57e
4
+ data.tar.gz: 49a9f99738d7a21800d70188f93746e58fae13f3
5
5
  SHA512:
6
- metadata.gz: 82ca034935f7dbd1ea470d3b02a81bf0b1b2f225ca189ec0114f85344be4db09ff6a96df4538e13c047f3860ed483cbf4a76f256a6fbea0f40c425eb03211658
7
- data.tar.gz: 7c9d978b128d66c22a4d7b9524a55bdcbffd0add6dfa98c4b37953dede44f4a348253c80bfc8a325a0d3dfa99133d82d3c3430f53ad459c250613c6dacf5a7b9
6
+ metadata.gz: b55bd35f731dc08836522a53c1f445c7dbd0f12573096444aafd0dc8fa28caa6d238a2a5a1407df71674a73c931eacf927d92fd8c6debc7f2409c51974ab9441
7
+ data.tar.gz: cf175c49845e8f03f6abf5949add212da856550247fa64affd55a20e51c4e30d1c43c62e56e928da6d5eecff035c1ac927b3d71e9d48d88c1f6fafbba92c59d4
@@ -168,10 +168,19 @@ module XCPretty
168
168
  end
169
169
 
170
170
  def format_failure(f)
171
- " #{f[:test_case]}, #{red(f[:reason])}\n #{cyan(f[:file_path])}\n" \
172
- " ```\n" +
173
- Syntax.highlight(Snippet.from_filepath(f[:file_path])) +
174
- " ```"
171
+ snippet = Snippet.from_filepath(f[:file_path])
172
+
173
+ output = " #{f[:test_case]}, #{red(f[:reason])}\n " \
174
+ "#{cyan(f[:file_path])}\n ```\n"
175
+
176
+ if @colorize
177
+ output += Syntax.highlight(snippet)
178
+ else
179
+ output += snippet.contents
180
+ end
181
+
182
+ output += " ```"
183
+ output
175
184
  end
176
185
 
177
186
  def error_symbol
@@ -1,4 +1,4 @@
1
1
  module XCPretty
2
- VERSION = "0.1.12.bb4"
2
+ VERSION = "0.1.12.bb5"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcpretty-bb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12.bb4
4
+ version: 0.1.12.bb5
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: 2015-10-15 00:00:00.000000000 Z
12
+ date: 2015-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rouge