closer 0.13.4 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +4 -0
- data/lib/closer/config.rb +4 -0
- data/lib/closer/helpers/driver.rb +3 -2
- data/lib/closer/version.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: 6f9b0436a8151fc249b4f8733dd61312bfba7dea73bfb2ff87bb24ed49283542
|
4
|
+
data.tar.gz: 70380653de5c429c7368cbbde574cfa0c567a3c1beef3cffe35f7119b8432d5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9132e40e0edf36bd4480f28e9dde3f5c278824992387e6b57bdf5a14c2e7ebdd026d959e7a26e2e2e3c1ebbea81785c0b64e6b31b560fd0eb80b30b5f3a1d25
|
7
|
+
data.tar.gz: cf61fc18f1ef328ee43c0ab77abeaf9c3cfe07ddd6fb6b28e952c0ed9d7a4247f2315c66c200105cad5dfcb03d859d1cf6de4e03d44b9c74e6a636f3d2309d66
|
data/HISTORY.md
CHANGED
data/lib/closer/config.rb
CHANGED
@@ -5,9 +5,10 @@ Dir::glob(File.join(File.dirname(__FILE__), 'drivers', '*.rb')).each do |file|
|
|
5
5
|
require_relative "drivers/#{File.basename(file)}"
|
6
6
|
end
|
7
7
|
|
8
|
+
config = Closer::Config.new
|
8
9
|
browser = ENV['DRIVER']
|
9
|
-
boottype = 'headless' if
|
10
|
-
boottype = 'remote' if
|
10
|
+
boottype = 'headless' if config.headless?
|
11
|
+
boottype = 'remote' if config.remote?
|
11
12
|
Capybara.default_driver = [boottype, browser].compact.join('_').to_sym
|
12
13
|
|
13
14
|
case browser
|
data/lib/closer/version.rb
CHANGED