watchdoge 0.0.17 → 0.0.18
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 +7 -3
- 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: f1255a9fce4e99291b3fe8711ad2fbbc85591e8b55dbb7d178abc2d87b339414
|
4
|
+
data.tar.gz: bb3e38c2da5aec42d638fd1c915165d74d7bf85c13a48ce360bee1bc9b4ff9f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b279bd118d1056638ad6f7033af9addbd4369308147113bf7328c52af2685866a7e16715217754433251d7203ec7b24f4b220ad98eac19e9ae0a1a45514b66
|
7
|
+
data.tar.gz: 79162b0e6ca9950fa6cc4ec209e8134c14b70c2d57b515cbf4bcf560cbb1b7d54eec44c18711c61738081e9c2c413aea69903520c5918fec64eecfa76c4779ad
|
data/lib/watchdoge/compare.rb
CHANGED
@@ -42,9 +42,13 @@ module WatchDoge
|
|
42
42
|
reference_image = self.class.load_png self.reference_image
|
43
43
|
cycle_image = self.class.load_png worker.screenshot.png
|
44
44
|
diff = WatchDoge::ImageDiff.diff(cycle_image, reference_image)
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
if diff
|
46
|
+
if ENV['WATCHDOGE_DEBUG']
|
47
|
+
WatchDoge::Notification.push cycle_image
|
48
|
+
WatchDoge::Notification.push reference_image
|
49
|
+
end
|
50
|
+
WatchDoge::Notification.push diff
|
51
|
+
end
|
48
52
|
}
|
49
53
|
end
|
50
54
|
|
data/lib/watchdoge/version.rb
CHANGED
data/watchdoge.gemspec
CHANGED