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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ac6daf0d690d86b5ae6f30a956cff2fd788d0e5
4
- data.tar.gz: 67f5e90bf221e138da38b5adc1b9a754da096c57
3
+ metadata.gz: 2b7368728b076365bef87db885d73b90465a23a4
4
+ data.tar.gz: 5bbe03b0ee50223db849389300ba6c16330062bb
5
5
  SHA512:
6
- metadata.gz: afa4cee7b23ff3689234a2b5c239f1a56e9a2629274db07ebc8a2292f4b7ba7198922d15d3219c2af89d49c27b2e87fd60aa4b46f845f8e072deb539f1940ca3
7
- data.tar.gz: d3bf6cad58425d84ec0400259cd202bac4dfdb26f1bf0fa03b4340997d5a7fdf9482ef9c1159476cd7c4dc990a2999122bbdcb59fb256f8acd3c3e0ac1c68838
6
+ metadata.gz: b1fb7fde8c74de2c749941f7c9f94c51cfde6a52b28ef69aa7732abe0af98bc19a6d309d96c66d8ec0ebb96f47277881fb88fa68c3f41e931cd2f36baa7b903f
7
+ data.tar.gz: 22755e98af73c4e25cb4f1f7fb2f587a29e41e5f155ede81904e76f0af8e6d90fa794f530717cb55644673fbb9109b217c2ee457a75ee58cc97d4937fc6613f7
@@ -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[:diffs], gallery_info[:path])
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
- return gallery_info[:diffs].empty?
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
- <div class="col-lg-3">
117
- <a href="<%=diff_image[:image]%>">
118
- <img class="short-screenshot img-thumbnail" src="<%=diff_image[:thumb]%>">
119
- </a>
120
- </div>
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
- <div class="col-lg-3">
192
- <a href="<%=diff_image[:image]%>">
193
- <img class="short-screenshot img-thumbnail" src="<%=diff_image[:thumb]%>">
194
- </a>
195
- </div>
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>
@@ -1,3 +1,3 @@
1
1
  module Kontrast
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.0
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-05-19 00:00:00.000000000 Z
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.13.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.13.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.4.5.1
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