looks_good 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/looks_good/configuration.rb +4 -0
- data/lib/looks_good/version.rb +1 -1
- data/lib/looks_good.rb +3 -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: b30259ff1ba4dca90e415d267de2041780a053a37b986a455b913eb7492cc5c6
|
|
4
|
+
data.tar.gz: 25bfe1e8a7547ce85166b2c9c59b4a644cf680a54743b850c33b559e251c3106
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2ea8affedd87911371b67726c9c96e14bdee69101f65f094287eda0c69687aeb5d8ffb219f2c8da109f27b8ffab128643a429f1af0efb6af8f45328c4be8ad2
|
|
7
|
+
data.tar.gz: 6ff0757d1ab5fc29ae8e60bafd74b1456c5f646871159da0010021d90c73b4ec9dc4261eef7f6e752de3483fc1e125455c7031110e79d7d0ffcfee3955014ac0
|
data/README.md
CHANGED
|
@@ -93,6 +93,8 @@ Also created are subfolders:
|
|
|
93
93
|
#### disable_scaling
|
|
94
94
|
set to true to disable the scaling behavior
|
|
95
95
|
|
|
96
|
+
#### custom_error_message
|
|
97
|
+
When the spec fails, this message will be appended to the failure.
|
|
96
98
|
|
|
97
99
|
#### Sleep_between_tries
|
|
98
100
|
- sets the sleep time (in seconds) between match tries (requires max_no_tries > 1). Defaults to 0.5
|
data/lib/looks_good/version.rb
CHANGED
data/lib/looks_good.rb
CHANGED
|
@@ -39,7 +39,9 @@ module LooksGood
|
|
|
39
39
|
HOW TO FIX:\n
|
|
40
40
|
- cp #{comparison.diff_image.path(:candidate)} #{@expected_reference_file}
|
|
41
41
|
or
|
|
42
|
-
- LOOKS_GOOD=true rspec ...
|
|
42
|
+
- LOOKS_GOOD=true rspec ...
|
|
43
|
+
--
|
|
44
|
+
#{LooksGood::LooksGood::Configuration.custom_failure_message}]
|
|
43
45
|
result_hash[:result] = false
|
|
44
46
|
result_hash
|
|
45
47
|
else
|