vivisector 0.1.1 → 0.1.2
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/gem/lib/vivisector/imageset.rb +2 -2
- data/gem/lib/vivisector/report.rb +11 -2
- data/gem/lib/vivisector/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: 7f533915ed31821178af7ac9058e3e0538cd959d
|
|
4
|
+
data.tar.gz: 1d41bf36e652fff02c44a3e592049b652677c0bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e515a4bd62824659682c5e18a659c33c50a4c1ebab06377469b20108f5622ff463e02f8eff1c25aa336eb7c47feb70880d8146d9231620471608d6676801b7fc
|
|
7
|
+
data.tar.gz: 8b928c63b71340eef13bbf38b7171a17fcad4ad3d8d87b8f6e42771974f8532007bed91c12210d237fff527ddf83f79acf7085fde6916903584af151705cefd0
|
|
@@ -37,7 +37,7 @@ module Vivisector
|
|
|
37
37
|
|
|
38
38
|
# no duplicates allowed
|
|
39
39
|
if (@images.map { |i| [i.id, i.attribute] }).include? [image.id, image.attribute]
|
|
40
|
-
raise OperationalError, "Tried to add an image with duplicate ID and attribute"
|
|
40
|
+
raise OperationalError, "Tried to add an image with duplicate ID '#{image.id}' and attribute '#{image.attribute}'"
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -90,7 +90,7 @@ module Vivisector
|
|
|
90
90
|
def allow image
|
|
91
91
|
# no duplicates
|
|
92
92
|
if (@images.map { |i| i.id}).include? image.id
|
|
93
|
-
raise OperationalError, "Tried to add an image with duplicate ID"
|
|
93
|
+
raise OperationalError, "Tried to add an image with duplicate ID '#{image.id}'"
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
# App image sets don't need to worry about specific fields, but we keep it clean and symmetric.
|
|
@@ -20,6 +20,7 @@ module Vivisector
|
|
|
20
20
|
table.comparison th {border-top: 1px solid #ccc;}
|
|
21
21
|
table.comparison td {padding-bottom:1ex; text-align:center;}
|
|
22
22
|
.masterimg, .appimg {background-color:white; #{width_string}}
|
|
23
|
+
.img {border:0;}
|
|
23
24
|
.missing {text-align:center; #{width_string}}
|
|
24
25
|
)
|
|
25
26
|
end
|
|
@@ -83,7 +84,10 @@ module Vivisector
|
|
|
83
84
|
# images
|
|
84
85
|
tr do
|
|
85
86
|
td :align => "right", :valign => "top" do
|
|
86
|
-
|
|
87
|
+
src = me.path_transform(design_image.path)
|
|
88
|
+
a :href => src do
|
|
89
|
+
img.masterimg :src => src, :alt => design_image.description
|
|
90
|
+
end
|
|
87
91
|
end
|
|
88
92
|
|
|
89
93
|
candidates.each do |candidate|
|
|
@@ -92,7 +96,12 @@ module Vivisector
|
|
|
92
96
|
td { div.missing "#{design_image.description} on #{candidate.image_set.target.name}" }
|
|
93
97
|
else
|
|
94
98
|
td :align => "left", :valign => "top" do
|
|
95
|
-
div.holder
|
|
99
|
+
div.holder do
|
|
100
|
+
src = me.path_transform(app_image.path)
|
|
101
|
+
a :href => src do
|
|
102
|
+
img.appimg :src => src, :alt => app_image.description
|
|
103
|
+
end
|
|
104
|
+
end
|
|
96
105
|
end
|
|
97
106
|
end
|
|
98
107
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vivisector
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ian Katz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|