watchdoge 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watchdoge/compare.rb +2 -2
- data/lib/watchdoge/version.rb +1 -1
- data/watchdoge.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7e1be951153dcc56e0c3a4932a1429e33e3c1569ece2b3a8e0f5b8ce876ce70
|
4
|
+
data.tar.gz: 8b1aee985d16bb349ca81fab4836e5af4363e9ce6311554415013fe1298496d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 025bc1db4d22c0fa6a190d5ce7d4f8cb7e81c8c2eb8191269bc4db3ea87d28e90902ebc470d12be9b7ad3ad9e5263a406ce1d279c6a4e7055c9bfe6d3e6b92ee
|
7
|
+
data.tar.gz: 988085ef97efc7fcd176132d60286adfe520bb880d6c5cacd2e47b78a9fcfa596885dff012a38445a6bd5b89015cee70092e1b31050ca1797543d0ba565aebb7
|
data/lib/watchdoge/compare.rb
CHANGED
@@ -34,13 +34,13 @@ module WatchDoge
|
|
34
34
|
when :make_reference
|
35
35
|
@compare_proc = -> (worker) {
|
36
36
|
puts " -> make reference images on worker #{worker}"
|
37
|
-
worker.
|
37
|
+
worker.screenshot.save reference_image
|
38
38
|
}
|
39
39
|
when :compare_reference
|
40
40
|
@compare_proc = -> (worker) {
|
41
41
|
puts " -> compare reference images on worker #{worker}"
|
42
42
|
reference_image = self.class.load_png self.reference_image
|
43
|
-
cycle_image = self.class.load_png worker.
|
43
|
+
cycle_image = self.class.load_png worker.screenshot.png
|
44
44
|
diff = WatchDoge::ImageDiff.diff(cycle_image, reference_image)
|
45
45
|
WatchDoge::Notification.push diff if diff
|
46
46
|
}
|
data/lib/watchdoge/version.rb
CHANGED
data/watchdoge.gemspec
CHANGED