servactory 2.16.0.rc3 → 2.16.1
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 +4 -4
- data/lib/servactory/actions/collection.rb +1 -0
- data/lib/servactory/actions/stages/collection.rb +1 -0
- data/lib/servactory/actions/tools/runner.rb +3 -3
- data/lib/servactory/configuration/actions/aliases/collection.rb +1 -0
- data/lib/servactory/configuration/actions/rescue_handlers/collection.rb +1 -0
- data/lib/servactory/configuration/actions/shortcuts/collection.rb +1 -0
- data/lib/servactory/configuration/collection_mode/class_names_collection.rb +1 -0
- data/lib/servactory/configuration/hash_mode/class_names_collection.rb +1 -0
- data/lib/servactory/configuration/option_helpers/option_helpers_collection.rb +1 -0
- data/lib/servactory/context/warehouse/outputs.rb +1 -0
- data/lib/servactory/inputs/collection.rb +1 -0
- data/lib/servactory/inputs/validations/errors.rb +1 -0
- data/lib/servactory/internals/collection.rb +1 -0
- data/lib/servactory/maintenance/attributes/tools/check_errors.rb +1 -0
- data/lib/servactory/maintenance/attributes/validations/errors.rb +1 -0
- data/lib/servactory/outputs/collection.rb +1 -0
- data/lib/servactory/tool_kit/dynamic_options/inclusion.rb +3 -3
- data/lib/servactory/tool_kit/dynamic_options/multiple_of.rb +1 -1
- data/lib/servactory/utils.rb +1 -1
- data/lib/servactory/version.rb +2 -2
- metadata +3 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5db6156577bfda62f3e1ebe220a57f15ec85033286bc0aea9ce0345399b6fda0
|
|
4
|
+
data.tar.gz: ce7b0cc38a079ae14d3103c6e8b33877214c9a5da1291d3b16f6901ce0d50155
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ec4921d06460f8804ad1cf2ff9e20e8c53cde9c6b6979997cffdb8beb511b30ea0c68fa35237a04f7058308b6cb69920e358dca70a329f54ddf2168aa481780
|
|
7
|
+
data.tar.gz: acd4bba7c8f993841280ac7b544856e8c26b3e9f8f36d3db1a8312cf117c88eb431839099d2dca18819f645fc4be80cb52476219a41ea3a26fba7ddbc10823e8
|
|
@@ -74,7 +74,7 @@ module Servactory
|
|
|
74
74
|
condition = stage.condition
|
|
75
75
|
is_condition_opposite = stage.is_condition_opposite
|
|
76
76
|
|
|
77
|
-
result =
|
|
77
|
+
result = checks_passed_for?(condition)
|
|
78
78
|
|
|
79
79
|
is_condition_opposite ? !result : result
|
|
80
80
|
end
|
|
@@ -83,12 +83,12 @@ module Servactory
|
|
|
83
83
|
condition = make_action.condition
|
|
84
84
|
is_condition_opposite = make_action.is_condition_opposite
|
|
85
85
|
|
|
86
|
-
result =
|
|
86
|
+
result = checks_passed_for?(condition)
|
|
87
87
|
|
|
88
88
|
is_condition_opposite ? !result : result
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
def
|
|
91
|
+
def checks_passed_for?(condition)
|
|
92
92
|
return false if condition.nil?
|
|
93
93
|
return !Servactory::Utils.true?(condition) unless condition.is_a?(Proc)
|
|
94
94
|
|
|
@@ -9,7 +9,7 @@ module Servactory
|
|
|
9
9
|
instance.must(:be_inclusion)
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def condition_for_input_with(input:, value:, option:)
|
|
12
|
+
def condition_for_input_with(input:, value:, option:) # rubocop:disable Naming/PredicateMethod
|
|
13
13
|
if input.required? || (input.optional? && !value.nil?) # rubocop:disable Style/IfUnlessModifier
|
|
14
14
|
return option.value.include?(value)
|
|
15
15
|
end
|
|
@@ -21,11 +21,11 @@ module Servactory
|
|
|
21
21
|
true
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
def condition_for_internal_with(value:, option:, **)
|
|
24
|
+
def condition_for_internal_with(value:, option:, **) # rubocop:disable Naming/PredicateMethod
|
|
25
25
|
option.value.include?(value)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
def condition_for_output_with(value:, option:, **)
|
|
28
|
+
def condition_for_output_with(value:, option:, **) # rubocop:disable Naming/PredicateMethod
|
|
29
29
|
option.value.include?(value)
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -20,7 +20,7 @@ module Servactory
|
|
|
20
20
|
common_condition_with(...)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
def common_condition_with(value:, option:, **)
|
|
23
|
+
def common_condition_with(value:, option:, **) # rubocop:disable Naming/PredicateMethod
|
|
24
24
|
case value
|
|
25
25
|
when Integer, Float, Rational, BigDecimal
|
|
26
26
|
return false if option.value.blank?
|
data/lib/servactory/utils.rb
CHANGED
|
@@ -86,7 +86,7 @@ module Servactory
|
|
|
86
86
|
# https://github.com/rails/rails/blob/main/activerecord/lib/active_record/attribute_methods/query.rb
|
|
87
87
|
# @param value [#to_s]
|
|
88
88
|
# @return [Boolean]
|
|
89
|
-
def query_attribute(value) # rubocop:disable Metrics/MethodLength
|
|
89
|
+
def query_attribute(value) # rubocop:disable Metrics/MethodLength, Naming/PredicateMethod
|
|
90
90
|
case value
|
|
91
91
|
when true then true
|
|
92
92
|
when false, nil then false
|
data/lib/servactory/version.rb
CHANGED
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.16.
|
|
4
|
+
version: 2.16.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anton Sokolov
|
|
@@ -16,9 +16,6 @@ dependencies:
|
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
18
|
version: '5.1'
|
|
19
|
-
- - "<"
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
21
|
-
version: '8.1'
|
|
22
19
|
type: :runtime
|
|
23
20
|
prerelease: false
|
|
24
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -26,9 +23,6 @@ dependencies:
|
|
|
26
23
|
- - ">="
|
|
27
24
|
- !ruby/object:Gem::Version
|
|
28
25
|
version: '5.1'
|
|
29
|
-
- - "<"
|
|
30
|
-
- !ruby/object:Gem::Version
|
|
31
|
-
version: '8.1'
|
|
32
26
|
- !ruby/object:Gem::Dependency
|
|
33
27
|
name: base64
|
|
34
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -338,7 +332,7 @@ metadata:
|
|
|
338
332
|
documentation_uri: https://servactory.com
|
|
339
333
|
source_code_uri: https://github.com/servactory/servactory
|
|
340
334
|
bug_tracker_uri: https://github.com/servactory/servactory/issues
|
|
341
|
-
changelog_uri: https://github.com/servactory/servactory/blob/
|
|
335
|
+
changelog_uri: https://github.com/servactory/servactory/blob/main/CHANGELOG.md
|
|
342
336
|
rubygems_mfa_required: 'true'
|
|
343
337
|
rdoc_options: []
|
|
344
338
|
require_paths:
|
|
@@ -354,7 +348,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
354
348
|
- !ruby/object:Gem::Version
|
|
355
349
|
version: '0'
|
|
356
350
|
requirements: []
|
|
357
|
-
rubygems_version: 3.6.
|
|
351
|
+
rubygems_version: 3.6.9
|
|
358
352
|
specification_version: 4
|
|
359
353
|
summary: A set of tools for building reliable services of any complexity
|
|
360
354
|
test_files: []
|