wraith 2.3.4 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wraith/compare_images.rb +1 -1
- data/lib/wraith/save_images.rb +1 -1
- data/lib/wraith/version.rb +1 -1
- data/lib/wraith/wraith.rb +4 -0
- 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: e68eaaa29da4fa44372bd568498e9fc5e5f93982
|
4
|
+
data.tar.gz: dbac3ca706b5dea122d4518d639999d7c3ff9bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec1245b1fc997af5ab86b2cc11111677552ee04eabcb50b5c31abb09760dca4b0237c93154c7fad2b4dad156a88e98270336b70049c96c214e5e8a259ddb4d48
|
7
|
+
data.tar.gz: a677cafcbc001ac9ac8063cc26889539ba8a49e65f6430eb6714556292979312342ffccc5ed098da839802f4a73da9499e00cab400016291ad1264f7212a6f41
|
@@ -27,7 +27,7 @@ class Wraith::CompareImages
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def compare_task(base, compare, output, info)
|
30
|
-
cmdline = "compare -dissimilarity-threshold 1 -fuzz #{wraith.fuzz} -metric AE -highlight-color
|
30
|
+
cmdline = "compare -dissimilarity-threshold 1 -fuzz #{wraith.fuzz} -metric AE -highlight-color #{wraith.highlight_color} #{base} #{compare} #{output}"
|
31
31
|
px_value = Open3.popen3(cmdline) { |_stdin, _stdout, stderr, _wait_thr| stderr.read }.to_f
|
32
32
|
begin
|
33
33
|
img_size = ImageSize.path(output).size.inject(:*)
|
data/lib/wraith/save_images.rb
CHANGED
@@ -36,7 +36,7 @@ class Wraith::SaveImages
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def capture_page_image(browser, url, width, file_name, selector)
|
39
|
-
puts `"#{browser}"
|
39
|
+
puts `"#{browser}" #{wraith.phantomjs_options} "#{wraith.snap_file}" "#{url}" "#{width}" "#{file_name}" "#{selector}"`
|
40
40
|
end
|
41
41
|
|
42
42
|
private
|
data/lib/wraith/version.rb
CHANGED
data/lib/wraith/wraith.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wraith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Blooman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pry
|