leifcr-capybara-screenshot 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/capybara-screenshot/version.rb +1 -1
- data/lib/capybara-screenshot.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2055c8c34096e3290fa3a825653f2899259aaeb5
|
4
|
+
data.tar.gz: 8bd41a0f9327e22c0c00f05a97e1f6312896459b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b230999d35973d596d03f347be9d6ec723a62c1e96d0d531be4631cae57c2e60bb698fca68fae09db34affcf6ac527ba32890df97998b6450127161f3b4231
|
7
|
+
data.tar.gz: 9b3f74ea94871096f492466fc2d9e1adf09c9fdbe30fe4b683feaa3e9562f08dbd732b5a3559dbffd09985ee4c60b4963427e8421334e4ec783b561a6066a9d6
|
data/README.md
CHANGED
@@ -190,6 +190,11 @@ Capybara.save_path = "/file/path"
|
|
190
190
|
```
|
191
191
|
|
192
192
|
|
193
|
+
Alternative root path
|
194
|
+
---------------------
|
195
|
+
This is used change the root path in the output logs. Useful when running in a docker env, to show e.g. the root path on the host instead.
|
196
|
+
|
197
|
+
|
193
198
|
Uploading screenshots to S3
|
194
199
|
--------------------------
|
195
200
|
You can configure capybara-screenshot to automatically save your screenshots to an AWS S3 bucket.
|
data/lib/capybara-screenshot.rb
CHANGED
@@ -58,7 +58,7 @@ module Capybara
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def self.capybara_alt_root
|
61
|
-
@
|
61
|
+
@capybara_alt_root ||= if !alternative_root.blank?
|
62
62
|
alternative_root
|
63
63
|
elsif defined?(::Rails) && ::Rails.root.present?
|
64
64
|
::Rails.root.join capybara_tmp_path
|