kontrast 0.6.0 → 0.6.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/lib/kontrast.rb +6 -2
- data/lib/kontrast/gallery/template.erb +14 -10
- data/lib/kontrast/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b7368728b076365bef87db885d73b90465a23a4
|
|
4
|
+
data.tar.gz: 5bbe03b0ee50223db849389300ba6c16330062bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1fb7fde8c74de2c749941f7c9f94c51cfde6a52b28ef69aa7732abe0af98bc19a6d309d96c66d8ec0ebb96f47277881fb88fa68c3f41e931cd2f36baa7b903f
|
|
7
|
+
data.tar.gz: 22755e98af73c4e25cb4f1f7fb2f587a29e41e5f155ede81904e76f0af8e6d90fa794f530717cb55644673fbb9109b217c2ee457a75ee58cc97d4937fc6613f7
|
data/lib/kontrast.rb
CHANGED
|
@@ -97,13 +97,17 @@ module Kontrast
|
|
|
97
97
|
else
|
|
98
98
|
gallery_info = gallery_creator.create_gallery(result_path)
|
|
99
99
|
end
|
|
100
|
+
rescue StandardError => e
|
|
101
|
+
puts e.class
|
|
102
|
+
puts e.message
|
|
103
|
+
puts e.backtrace
|
|
100
104
|
ensure
|
|
101
105
|
# Call "after" hook
|
|
102
|
-
Kontrast.configuration.after_gallery(gallery_info
|
|
106
|
+
Kontrast.configuration.after_gallery(gallery_info.fetch(:diffs, {}), gallery_info[:path])
|
|
103
107
|
end
|
|
104
108
|
|
|
105
109
|
# Return based on if we have diffs or not
|
|
106
|
-
|
|
110
|
+
gallery_info.fetch(:diffs, {}).empty?
|
|
107
111
|
end
|
|
108
112
|
end
|
|
109
113
|
end
|
|
@@ -113,11 +113,13 @@
|
|
|
113
113
|
<img class="short-screenshot img-thumbnail" src="<%=second_image[:thumb]%>">
|
|
114
114
|
</a>
|
|
115
115
|
</div>
|
|
116
|
-
|
|
117
|
-
<
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
<% if diff_image %>
|
|
117
|
+
<div class="col-lg-3">
|
|
118
|
+
<a href="<%=diff_image[:image]%>">
|
|
119
|
+
<img class="short-screenshot img-thumbnail" src="<%=diff_image[:thumb]%>">
|
|
120
|
+
</a>
|
|
121
|
+
</div>
|
|
122
|
+
<% end %>
|
|
121
123
|
</div>
|
|
122
124
|
<% end %>
|
|
123
125
|
</div>
|
|
@@ -188,11 +190,13 @@
|
|
|
188
190
|
<img class="short-screenshot img-thumbnail" src="<%=second_image[:thumb]%>">
|
|
189
191
|
</a>
|
|
190
192
|
</div>
|
|
191
|
-
|
|
192
|
-
<
|
|
193
|
-
<
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
<% if diff_image %>
|
|
194
|
+
<div class="col-lg-3">
|
|
195
|
+
<a href="<%=diff_image[:image]%>">
|
|
196
|
+
<img class="short-screenshot img-thumbnail" src="<%=diff_image[:thumb]%>">
|
|
197
|
+
</a>
|
|
198
|
+
</div>
|
|
199
|
+
<% end %>
|
|
196
200
|
</div>
|
|
197
201
|
<% end %>
|
|
198
202
|
</div>
|
data/lib/kontrast/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kontrast
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilya Rubnich
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -114,14 +114,14 @@ dependencies:
|
|
|
114
114
|
requirements:
|
|
115
115
|
- - '='
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 2.
|
|
117
|
+
version: 2.16.0
|
|
118
118
|
type: :runtime
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - '='
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 2.
|
|
124
|
+
version: 2.16.0
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: fog-aws
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
239
239
|
version: '0'
|
|
240
240
|
requirements: []
|
|
241
241
|
rubyforge_project:
|
|
242
|
-
rubygems_version: 2.
|
|
242
|
+
rubygems_version: 2.5.1
|
|
243
243
|
signing_key:
|
|
244
244
|
specification_version: 4
|
|
245
245
|
summary: An automated testing tool for comparing visual differences between two versions
|