pretty_face 0.10 → 0.10.1
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/ChangeLog +4 -0
- data/lib/pretty_face/formatter/html.rb +1 -1
- data/lib/pretty_face/formatter/report.rb +2 -6
- data/lib/pretty_face/templates/style.css +7 -1
- data/lib/pretty_face/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5be0ba502aa0e1d300b1f210f8e788f2c71c69c0
|
4
|
+
data.tar.gz: 263d65d06aa1d41e414c66d02eea594a96830ee5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d66f3b9f7c488981054bae2ca1f1dd0c16bd2796da785e4ee22a75a95f9ed007d1cafddffa3d5d454722c55013c28995c9c0eace86b468155cfad8caa949102a
|
7
|
+
data.tar.gz: 5ebc1646dc06323a0665d1de46f4034eeb1e984e231d15d43dbbecac63a96bc642e3f5c9a4eec9104072af1b23c497fe0e5c0c0e09b2674d234841289debc065
|
data/ChangeLog
CHANGED
@@ -26,7 +26,7 @@ module PrettyFace
|
|
26
26
|
@options = options
|
27
27
|
# The expand option is set to true by RubyMine and cannot be turned off using the IDE. This option causes
|
28
28
|
# a test run while using this gem to terminate.
|
29
|
-
@options[:expand] = false
|
29
|
+
@options[:expand] = false unless @options.nil?
|
30
30
|
@report = Report.new
|
31
31
|
@img_id = 0
|
32
32
|
@logo = 'face.png'
|
@@ -234,9 +234,7 @@ module PrettyFace
|
|
234
234
|
|
235
235
|
def file_name_and_line(error_line)
|
236
236
|
if error_line =~ /(.*):(\d+)/
|
237
|
-
|
238
|
-
line = $2.to_i
|
239
|
-
[file, line]
|
237
|
+
[$1, $2.to_i]
|
240
238
|
end
|
241
239
|
end
|
242
240
|
|
@@ -252,7 +250,7 @@ module PrettyFace
|
|
252
250
|
if file
|
253
251
|
[lines_around(file, line), line, file]
|
254
252
|
else
|
255
|
-
["# Couldn't get snippet for #{error_line}", 1]
|
253
|
+
["# Couldn't get snippet for #{error_line}", 1, 'File Unknown']
|
256
254
|
end
|
257
255
|
end
|
258
256
|
|
@@ -261,8 +259,6 @@ module PrettyFace
|
|
261
259
|
lines = File.open(file).read.split("\n")
|
262
260
|
min = [0, line-3].max
|
263
261
|
max = [line+1, lines.length-1].min
|
264
|
-
selected_lines = []
|
265
|
-
selected_lines.join("\n")
|
266
262
|
lines[min..max].join("\n")
|
267
263
|
else
|
268
264
|
"# Couldn't get snippet for #{file}"
|
@@ -226,11 +226,17 @@ td.image_tag {
|
|
226
226
|
.failures tr:last-child td:last-child {
|
227
227
|
border-radius: 0px 0px 18px 0px;
|
228
228
|
}
|
229
|
+
|
230
|
+
table.param_table {
|
231
|
+
border-collapse: collapse;
|
232
|
+
text-align: center;
|
233
|
+
}
|
229
234
|
.param_table th,.param_table td {
|
230
|
-
border:
|
235
|
+
border: 1px solid #E0E0E0;
|
231
236
|
padding-left: 10px;
|
232
237
|
padding-right: 10px;
|
233
238
|
}
|
239
|
+
|
234
240
|
.multiline_arg {
|
235
241
|
padding-left: 15px;
|
236
242
|
padding-right: 15px;
|
data/lib/pretty_face/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretty_face
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey S. Morgan
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-
|
15
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: actionpack
|