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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f241d48c633ac355c619504fcb3939ab2613739
4
- data.tar.gz: f766731b14cacaa37cb5fa11541d9198aedd9cbd
3
+ metadata.gz: 5be0ba502aa0e1d300b1f210f8e788f2c71c69c0
4
+ data.tar.gz: 263d65d06aa1d41e414c66d02eea594a96830ee5
5
5
  SHA512:
6
- metadata.gz: f4ab04f7e4e7c2c1d5c2e23f3a0fa3f4e788624df0b07c66afa3b006bb4d194289e4b0480ea83d67c75f99fd02e0728b995acd60db738ef6dd76df9e146f00de
7
- data.tar.gz: d10a6748cc1c58d6cefb77d9ad4fb9cb94f8d5b25a6f1c30736017bf54f52f55b9811829d71920cd5a32fd18fe79b1fc49649bc59815400cabb7b1e7a0b8cb80
6
+ metadata.gz: d66f3b9f7c488981054bae2ca1f1dd0c16bd2796da785e4ee22a75a95f9ed007d1cafddffa3d5d454722c55013c28995c9c0eace86b468155cfad8caa949102a
7
+ data.tar.gz: 5ebc1646dc06323a0665d1de46f4034eeb1e984e231d15d43dbbecac63a96bc642e3f5c9a4eec9104072af1b23c497fe0e5c0c0e09b2674d234841289debc065
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ === Release 0.10.1 / 2014-4-7
2
+ * Included handling for unknown files
3
+ * Removed unused code
4
+
1
5
  === Release 0.10 / 2014-2-4
2
6
  * Overrode cucumber option to expand set by RubyMine
3
7
 
@@ -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
- file = $1
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: 3px solid #E0E0E0;
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;
@@ -1,3 +1,3 @@
1
1
  module PrettyFace
2
- VERSION = "0.10"
2
+ VERSION = "0.10.1"
3
3
  end
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: '0.10'
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-02-05 00:00:00.000000000 Z
15
+ date: 2014-04-07 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: actionpack