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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71714f5bc076271d8af037b38803c0cf9a9c7cd6e5c175797f745dc2fd252a23
4
- data.tar.gz: ec97e6dc2ee067065bc421381494053f60a8cee1b2045555149638f1dc1c5da9
3
+ metadata.gz: aee8700c423c23fd11ce125ab952bbc6aa36ed1ee2d117a70a8589647dc529c7
4
+ data.tar.gz: 7360e88647f218bb8a5212002355324f50341af3b9e6fc9a24ccfe4784550985
5
5
  SHA512:
6
- metadata.gz: 3aef4519d9442b54a1bf4f80ac7bb18423e65989be58007bcc591fe8db556676423c4c14e834f05c80bab2aac8eeda360ef70e1f0a3102912d2d027b34ba77ad
7
- data.tar.gz: 8710792cc8b2d9cad0bd75be198dfda0c87a16d754a31abd4bffaed3bbc811149bea92b7b566136debec686d60ac2c1039e69f0ac8cc9f353fed44f6a254cab0
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
 
@@ -33,12 +33,12 @@ module WatchDoge
33
33
  case @@compare_flag
34
34
  when :make_reference
35
35
  @compare_proc = -> (worker) {
36
- puts " -> with make reference on worker #{worker}"
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 " -> with co,pare reference on worker #{worker}"
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)
@@ -8,6 +8,8 @@ module WatchDoge
8
8
  create_file "#{configuration.cookie_pool}/.placeholder"
9
9
 
10
10
  create_file "#{configuration.compare_dir}/scenarios/#{secenario}.rb", <<~DSL
11
+ # use :chrome
12
+
11
13
  # compare 'some url'
12
14
  # compare 'some url', with: 'some'
13
15
 
@@ -1,3 +1,3 @@
1
1
  module WatchDoge
2
- Version = '0.0.4'
2
+ Version = '0.0.5'
3
3
  end
data/watchdoge.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'watchdoge'
3
- s.version = '0.0.4'
3
+ s.version = '0.0.5'
4
4
  s.date = '2019-07-22'
5
5
  s.summary = "dogi"
6
6
  s.description = "A collection of web test tools"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watchdoge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shen Lee