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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6070a60f3349e8d059b551a8d898dc6838927b56b1792cee04ec6a1d25096258
4
- data.tar.gz: f4e0784493862fc08ed9349955e94888dcabb0e2547c19fe532dcbe6d4621d5b
3
+ metadata.gz: 6f9b0436a8151fc249b4f8733dd61312bfba7dea73bfb2ff87bb24ed49283542
4
+ data.tar.gz: 70380653de5c429c7368cbbde574cfa0c567a3c1beef3cffe35f7119b8432d5f
5
5
  SHA512:
6
- metadata.gz: d0dcdc09a60d2b231adf271533de8c281344fdd7337085883730a133af965d7f3fe98f450ab462875cb83310822f1f14f5f96613801dc1b5311353ce9b6e6e77
7
- data.tar.gz: 8119cbda28866d2059061361a6ecec27a7ee1c064259979d0754996c835c52cb6f6cd65363dfa8ffd6a70db8ecd27fac4b2110d10e063dce61d2a9907eac0a6e
6
+ metadata.gz: e9132e40e0edf36bd4480f28e9dde3f5c278824992387e6b57bdf5a14c2e7ebdd026d959e7a26e2e2e3c1ebbea81785c0b64e6b31b560fd0eb80b30b5f3a1d25
7
+ data.tar.gz: cf61fc18f1ef328ee43c0ab77abeaf9c3cfe07ddd6fb6b28e952c0ed9d7a4247f2315c66c200105cad5dfcb03d859d1cf6de4e03d44b9c74e6a636f3d2309d66
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.14.0
2
+ Release Date: 2024-12-24
3
+ * change headless is false by default
4
+
1
5
  # 0.13.4
2
6
  Release Date: 2024-12-24
3
7
  * add --no-tablespaces option to mysqldump
data/lib/closer/config.rb CHANGED
@@ -12,6 +12,10 @@ class Closer::Config
12
12
  true_value?(ENV['REMOTE'])
13
13
  end
14
14
 
15
+ def headless?
16
+ true_value?(ENV['HEADLESS'])
17
+ end
18
+
15
19
  private
16
20
 
17
21
  def true_value?(value)
@@ -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 ENV['HEADLESS']
10
- boottype = 'remote' if ENV['REMOTE'] # always headless
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
@@ -1,3 +1,3 @@
1
1
  module Closer
2
- VERSION = '0.13.4'
2
+ VERSION = '0.14.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.4
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy