looks_good 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/lib/looks_good/capture_element.rb +1 -1
- data/lib/looks_good/configuration.rb +3 -3
- data/lib/looks_good/version.rb +1 -1
- data/lib/looks_good.rb +1 -1
- data/spec/configuration_spec.rb +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: 6cd9455572edfef123a293aebd03502a4e815e510908fe133a91e9e9fccd972b
|
4
|
+
data.tar.gz: a1401f4eaad2474d9af5ec46a22bbed8c4262fbd5f3444500a28e19ff5c8657b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 515f1c537da45eaf7992e892484214ff8ddaecd0a970f39600be7dffb1502be020d2d08e7fdbbb152f448ebfc5e05b4ba452fc0037ab81a655132f51fcba31bd
|
7
|
+
data.tar.gz: e0e0db06a07aed3a2465e53064586fa8e774b330f564986f067f3fe71ff457eafea63a1f6f913bb9834dcad8e9c11dbc242a5c07f405d41e54f84fec523e06db
|
data/.DS_Store
CHANGED
Binary file
|
@@ -16,7 +16,7 @@ module LooksGood
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.take_screenshot
|
19
|
-
temp_dir = LooksGood::Configuration.path(:
|
19
|
+
temp_dir = LooksGood::Configuration.path(:tmp)
|
20
20
|
FileUtils.mkdir_p(temp_dir) unless File.exists?(temp_dir)
|
21
21
|
#captures the uncropped full screen
|
22
22
|
begin
|
@@ -33,9 +33,9 @@ module LooksGood
|
|
33
33
|
|
34
34
|
def path(type)
|
35
35
|
paths = {:reference => reference_image_path,
|
36
|
-
:
|
37
|
-
:candidate => File.join(reference_image_path, '
|
38
|
-
:diff => File.join(reference_image_path, '
|
36
|
+
:tmp => File.join(reference_image_path, 'tmp', 'tmp'),
|
37
|
+
:candidate => File.join(reference_image_path, 'tmp', 'candidate'),
|
38
|
+
:diff => File.join(reference_image_path, 'tmp', 'diff')
|
39
39
|
}
|
40
40
|
paths[type]
|
41
41
|
end
|
data/lib/looks_good/version.rb
CHANGED
data/lib/looks_good.rb
CHANGED
@@ -83,7 +83,7 @@ or
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def cleanup
|
86
|
-
FileUtils.remove_dir(LooksGood::Configuration.path(:
|
86
|
+
FileUtils.remove_dir(LooksGood::Configuration.path(:tmp)) if File.directory?(LooksGood::Configuration.path(:tmp))
|
87
87
|
FileUtils.remove_dir(LooksGood::Configuration.path(:diff)) if File.directory?(LooksGood::Configuration.path(:diff))
|
88
88
|
FileUtils.remove_dir(LooksGood::Configuration.path(:candidate)) if File.directory?(LooksGood::Configuration.path(:candidate))
|
89
89
|
end
|
data/spec/configuration_spec.rb
CHANGED