watchdoge 0.0.4 → 0.0.5
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/dsl.rb +1 -1
- data/lib/watchdoge/compare.rb +2 -2
- data/lib/watchdoge/rails/generator.rb +2 -0
- 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: aee8700c423c23fd11ce125ab952bbc6aa36ed1ee2d117a70a8589647dc529c7
|
4
|
+
data.tar.gz: 7360e88647f218bb8a5212002355324f50341af3b9e6fc9a24ccfe4784550985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6105aedf88778678c10d0245d5857e77b25d549ddf1e221ebedca3d413f5a0308ec1feada8bbcaf9d97bb14cc9a2ba34c1320316940148d551a23dbdc706f460
|
7
|
+
data.tar.gz: 8295593058a1af4f4b66b25911551fbd9b1bd9bb9385b469335bf4b93e863832202ca0c9c44b10341b36415fc47a784bf00bd9647aa0a5302086a16f6fd21154
|
@@ -24,7 +24,7 @@ module WatchDoge
|
|
24
24
|
path.gsub(/^.*(\\|\/)/, '')
|
25
25
|
end
|
26
26
|
|
27
|
-
puts "[compare] #{path} #{'[with]'+ @reference_file_name if kwargs[:with] }"
|
27
|
+
puts "[compare] #{path} #{ ('[with]'+ @reference_file_name) if kwargs[:with] }"
|
28
28
|
|
29
29
|
@setup_proc.call if @setup_proc
|
30
30
|
|
data/lib/watchdoge/compare.rb
CHANGED
@@ -33,12 +33,12 @@ module WatchDoge
|
|
33
33
|
case @@compare_flag
|
34
34
|
when :make_reference
|
35
35
|
@compare_proc = -> (worker) {
|
36
|
-
puts " ->
|
36
|
+
puts " -> make reference images on worker #{worker}"
|
37
37
|
worker.fullpage_screenshot.save reference_image
|
38
38
|
}
|
39
39
|
when :compare_reference
|
40
40
|
@compare_proc = -> (worker) {
|
41
|
-
puts " ->
|
41
|
+
puts " -> compare reference images on worker #{worker}"
|
42
42
|
reference_image = self.class.load_png self.reference_image
|
43
43
|
cycle_image = self.class.load_png worker.fullpage_screenshot.png
|
44
44
|
diff = WatchDoge::ImageDiff.diff(cycle_image, reference_image)
|
data/lib/watchdoge/version.rb
CHANGED
data/watchdoge.gemspec
CHANGED