servactory 2.6.0.rc3 → 2.6.0.rc4

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: 3681e7c5a5e02756f7df77333a0974264548b6060605073f02cdbe8a2c3d9f55
4
- data.tar.gz: 63b0ea14ade5b473b44173832c3411a3ac0d12e52e87539b8c7a5200f4a86915
3
+ metadata.gz: 53d70d5438c6e58daf86d416c2910eabe04727880af9189b7813da17bd3bb777
4
+ data.tar.gz: cbab6d80c1d012d80d72f5f76eaa3fd17d01af568961d0eaf16a80abfc61591a
5
5
  SHA512:
6
- metadata.gz: cd344cbcfa248de3a6974b8fa28e5544678851a2d7bf11fa3964087fbf80bc54551450d654624477ff5cfd9f7d7705b69507e2ee6e2ab46450adf7616c331ebd
7
- data.tar.gz: dfefd697f5808b020e0507748f97c96e2a674dbf8a04707943a39f6a220a26f1002a6eb47fee727e4cb04ee042b23b87e4cf98804b52b2a22859eea73ac59037
6
+ metadata.gz: 2ec8ed69eaa089a441280c3f0650b842509175f9d14b25a2f838fd61e4e60ca622e24e65a76d7303f8b041f070eb6cd17f51cb959b1ceef9f809cadbe8e4d492
7
+ data.tar.gz: d96fd4a4a3864a4654e80802451ee003cffc5e3d609d368667790fea4c1511162de0f06491906d9e7e49e3f878c72cda870b28848150b01c84a6eb92df2d325f
@@ -26,6 +26,7 @@ module Servactory
26
26
  def common_condition_with(attribute:, value:, option:)
27
27
  return true if option.value == false
28
28
  return false if COLLECTION_CLASS_NAMES.intersection(attribute.types).empty?
29
+ return true if attribute.input? && attribute.optional? && value.blank?
29
30
 
30
31
  validate_for!(values: value, option: option)
31
32
  end
@@ -5,7 +5,7 @@ module Servactory
5
5
  MAJOR = 2
6
6
  MINOR = 6
7
7
  PATCH = 0
8
- PRE = "rc3"
8
+ PRE = "rc4"
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0.rc3
4
+ version: 2.6.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Sokolov