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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 686b37992728c9a55817ad99143cb5920e3534229c61f6d4064815b5f5a29195
|
4
|
+
data.tar.gz: e03438b07981f0c9a9f553c147b52fec9bc51aa78351c8df01ba2e884c758daf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/servactory/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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
|
350
|
+
version: '3.1'
|
351
351
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
352
352
|
requirements:
|
353
353
|
- - ">="
|