capybara-box 1.1.1 → 1.1.2

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: c54efaf584a97b56cf010bfc51f0918afc4fa4ce5f941c8e9764a3491fea4304
4
- data.tar.gz: d85dbef571a1e84526256590c4b4e048ba193385018d60fcc2027d127cbe0d8e
3
+ metadata.gz: 6eb43822ce3b518d701a86c67a72908953c0c49e699b3b29ba263e3b8b4f17f7
4
+ data.tar.gz: e35c51b8daa7efc62aa182d2f3280227d59413d674921f9ce9fe0209b7a326a7
5
5
  SHA512:
6
- metadata.gz: 4458ccb41d1de7286146df9e225510558087a0f783fd4beb2347b9796bfa4e46dcfb14cfb3644f990d5094c3b6e2de4fa068f992c1106c2e97c2346b4a9a4cb2
7
- data.tar.gz: 4f27d41793664e67e9b649056985df69b8f0f1688edab7a7734acc9773c98987a29e949a5ad3ec6e76915b3037979ac89fac4fdcf3956a456b238f42fbc706ad
6
+ metadata.gz: d2992956c71d654754f4c1098fe474cc8df6dcac9516926782f9c8a3876bdccabea3d860d59362451ffe17f08c09f8e40495137d6668c405002455cdf81e6e56
7
+ data.tar.gz: c15d8442bce49d012f6e7f92094619c5afb3d59ae039745a991aeab7b18544778a3715dd5466c90de080fdf1d2f1196d8ab8e5bc1630f814c6b995da7269bc52
@@ -1,3 +1,9 @@
1
+ ## v1.1.2
2
+
3
+ - Fixes
4
+ - Avoid apply blank bin path;
5
+ - Avoid apply blank version;
6
+
1
7
  ## v1.1.1
2
8
 
3
9
  - Fixes
@@ -98,8 +98,8 @@ module CapybaraBox
98
98
  apply_arguments
99
99
  apply_preferences
100
100
 
101
- apply_bin_path(@parameters[:bin_path]) if @parameters[:bin_path]
102
- apply_version(@parameters[:version]) if !!@parameters[:version]
101
+ apply_bin_path(@parameters[:bin_path]) if ::CapybaraBox::Helper.present?(@parameters[:bin_path])
102
+ apply_version(@parameters[:version]) if ::CapybaraBox::Helper.present?(@parameters[:version])
103
103
 
104
104
  ::CapybaraBox::Screenshot.configure(@parameters[:screenshot], @browser) if @parameters[:screenshot]
105
105
 
@@ -4,6 +4,14 @@ module CapybaraBox
4
4
  module Helper
5
5
  module_function
6
6
 
7
+ def blank?(value)
8
+ [''].include?(value.to_s.strip)
9
+ end
10
+
11
+ def present?(value)
12
+ !blank?(value)
13
+ end
14
+
7
15
  def true?(value)
8
16
  ['true', true].include?(value)
9
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CapybaraBox
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-box
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Washington Botelho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2020-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara-screenshot