vivisector 0.1.1 → 0.1.2

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: 827d86481fa22672ed5271605778a7db702cc8e7
4
- data.tar.gz: a6f7f56e7b0760e5a220f671495a848057cd7c31
3
+ metadata.gz: 7f533915ed31821178af7ac9058e3e0538cd959d
4
+ data.tar.gz: 1d41bf36e652fff02c44a3e592049b652677c0bd
5
5
  SHA512:
6
- metadata.gz: de0e32eb9092c40c5ff3dafc447f0d51c19816c7773975be39fa55c68c8ab4b50247351e4964981c2d3ce0feba2097cb455d03e3ee2fc8b1518355d424dbe0d8
7
- data.tar.gz: 726bdf1d1525de3aec5c6cf0831b29e6b0b62d6259d788b6d4cf70f6e7f6051f074be9db86bc652dbce27903e06c83881c513956241ad6e43970960fd5413222
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
- img.masterimg :src => me.path_transform(design_image.path), :alt => design_image.description
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 { img.appimg :src => me.path_transform(app_image.path), :alt => app_image.description }
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
@@ -1,3 +1,3 @@
1
1
  module Vivisector
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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.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-05-29 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler