servactory 2.13.2 → 2.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d303c7927860fbde7534d718fd64104cce4caad49304636767ef6b0da8f9d3a
4
- data.tar.gz: d8065166611e2da7a40e6529df84e12002e72e8533cd2015bf5ee867f65f3ca8
3
+ metadata.gz: 686b37992728c9a55817ad99143cb5920e3534229c61f6d4064815b5f5a29195
4
+ data.tar.gz: e03438b07981f0c9a9f553c147b52fec9bc51aa78351c8df01ba2e884c758daf
5
5
  SHA512:
6
- metadata.gz: f28e93b9cb1932770e44ce8e17d726edef59be66608dd9d68a063d3389db4e71f2cbda685cdbc5081164aa3cb1ff0d6719431078238d0f5053d8f7df97d16e2c
7
- data.tar.gz: f454f6d653fe7f31e039c5f5b5816863edb7399f433beb4b78f5dc31895d7d86200e0bac374528a85e8855bd0370bb53515c643a55e9ce412571dd2222ce11fe
6
+ metadata.gz: 7f9c8d95aacf741f565cedd5a56e543b50fbf45427f68a94bf9229e58a5fa029acc0b0fb4ce6391fb3a84e44a248d2c590c4c0c62e080ef8d47f1c8bb51aa851
7
+ data.tar.gz: bd2234547c977824d2ae7cf9440e60b575441d31558bc3ac5c0dfea46a4be18957cd68b2ffd83615bcc64909a15be284d798a50e39d97e2821fabccab0bc3586
@@ -10,14 +10,14 @@ module Servactory
10
10
  end
11
11
 
12
12
  def condition_for_input_with(input:, value:, option:)
13
- if input.required? || (
14
- input.optional? && !input.default.nil?
15
- ) || (
16
- input.optional? && !value.nil?
17
- ) # do
13
+ if input.required? || (input.optional? && !value.nil?) # rubocop:disable Style/IfUnlessModifier
18
14
  return option.value.include?(value)
19
15
  end
20
16
 
17
+ if input.optional? && value.nil? && !input.default.nil? # rubocop:disable Style/IfUnlessModifier
18
+ return option.value.include?(input.default)
19
+ end
20
+
21
21
  true
22
22
  end
23
23
 
@@ -4,7 +4,7 @@ module Servactory
4
4
  module VERSION
5
5
  MAJOR = 2
6
6
  MINOR = 13
7
- PATCH = 2
7
+ PATCH = 3
8
8
  PRE = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.2
4
+ version: 2.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Sokolov
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-19 00:00:00.000000000 Z
10
+ date: 2025-04-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -103,14 +103,14 @@ dependencies:
103
103
  name: appraisal
104
104
  requirement: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - "~>"
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '2.5'
109
109
  type: :development
110
110
  prerelease: false
111
111
  version_requirements: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - "~>"
113
+ - - ">="
114
114
  - !ruby/object:Gem::Version
115
115
  version: '2.5'
116
116
  - !ruby/object:Gem::Dependency
@@ -189,14 +189,14 @@ dependencies:
189
189
  requirements:
190
190
  - - ">="
191
191
  - !ruby/object:Gem::Version
192
- version: '0.7'
192
+ version: '0.9'
193
193
  type: :development
194
194
  prerelease: false
195
195
  version_requirements: !ruby/object:Gem::Requirement
196
196
  requirements:
197
197
  - - ">="
198
198
  - !ruby/object:Gem::Version
199
- version: '0.7'
199
+ version: '0.9'
200
200
  - !ruby/object:Gem::Dependency
201
201
  name: steep
202
202
  requirement: !ruby/object:Gem::Requirement
@@ -347,7 +347,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
347
347
  requirements:
348
348
  - - ">="
349
349
  - !ruby/object:Gem::Version
350
- version: 3.1.0
350
+ version: '3.1'
351
351
  required_rubygems_version: !ruby/object:Gem::Requirement
352
352
  requirements:
353
353
  - - ">="