dsl_compose 2.14.0 → 2.14.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dae8c4f74589b916fbfc6f67f181d58b6e2044aa9eed65a4e26e2e2d05b1fbc
|
4
|
+
data.tar.gz: c9663b356014625a531f22fc093b3f0c0117be81b49a6157b9068b196c4db2dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e6ccea99702dc7e02344b4dfe169433b61a363e6ea0d3c3bf4abae0c531c240e4a37a68e384e5d9b7b96a63438e768b3b8beb2ae37fc657ffd141ff80e707b1
|
7
|
+
data.tar.gz: 2eec3427dc377746dce4e708a6c2c1d12bcb6ec94637ae9f425810d7b5665b90e51178b62ff0ce6d0f22409697c7611e3c363bb636d4f8f9a88ae990c39ddfcb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.14.1](https://github.com/craigulliott/dsl_compose/compare/v2.14.0...v2.14.1) (2023-09-11)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* freezing dsl arguments so that other parts of the code can't change the underlying dsl configuration ([d3373d4](https://github.com/craigulliott/dsl_compose/commit/d3373d494b292241bc17f38e565a2434e5e0d187))
|
9
|
+
|
3
10
|
## [2.14.0](https://github.com/craigulliott/dsl_compose/compare/v2.13.1...v2.14.0) (2023-09-06)
|
4
11
|
|
5
12
|
|
@@ -278,7 +278,10 @@ module DSLCompose
|
|
278
278
|
end
|
279
279
|
|
280
280
|
def validate_end_with value
|
281
|
-
|
281
|
+
valid_type = value.is_a?(Symbol) || value.is_a?(String)
|
282
|
+
valid_array_of_symbols = (value.is_a?(Array) && value.all? { |value| value.is_a? Symbol })
|
283
|
+
valid_array_of_strings = (value.is_a?(Array) && value.all? { |value| value.is_a? String })
|
284
|
+
unless valid_type || valid_array_of_symbols || valid_array_of_strings
|
282
285
|
raise ValidationInvalidArgumentError, "The value `#{value}` provided to this validator must be a Symbol/String or an Array of Symbols/Strings"
|
283
286
|
end
|
284
287
|
|
@@ -295,7 +298,10 @@ module DSLCompose
|
|
295
298
|
end
|
296
299
|
|
297
300
|
def validate_not_end_with value
|
298
|
-
|
301
|
+
valid_type = value.is_a?(Symbol) || value.is_a?(String)
|
302
|
+
valid_array_of_symbols = (value.is_a?(Array) && value.all? { |value| value.is_a? Symbol })
|
303
|
+
valid_array_of_strings = (value.is_a?(Array) && value.all? { |value| value.is_a? String })
|
304
|
+
unless valid_type || valid_array_of_symbols || valid_array_of_strings
|
299
305
|
raise ValidationInvalidArgumentError, "The value `#{value}` provided to this validator must be a Symbol/String or an Array of Symbols/Strings"
|
300
306
|
end
|
301
307
|
|
@@ -312,7 +318,10 @@ module DSLCompose
|
|
312
318
|
end
|
313
319
|
|
314
320
|
def validate_start_with value
|
315
|
-
|
321
|
+
valid_type = value.is_a?(Symbol) || value.is_a?(String)
|
322
|
+
valid_array_of_symbols = (value.is_a?(Array) && value.all? { |value| value.is_a? Symbol })
|
323
|
+
valid_array_of_strings = (value.is_a?(Array) && value.all? { |value| value.is_a? String })
|
324
|
+
unless valid_type || valid_array_of_symbols || valid_array_of_strings
|
316
325
|
raise ValidationInvalidArgumentError, "The value `#{value}` provided to this validator must be a Symbol/String or an Array of Symbols/Strings"
|
317
326
|
end
|
318
327
|
|
@@ -329,7 +338,10 @@ module DSLCompose
|
|
329
338
|
end
|
330
339
|
|
331
340
|
def validate_not_start_with value
|
332
|
-
|
341
|
+
valid_type = value.is_a?(Symbol) || value.is_a?(String)
|
342
|
+
valid_array_of_symbols = (value.is_a?(Array) && value.all? { |value| value.is_a? Symbol })
|
343
|
+
valid_array_of_strings = (value.is_a?(Array) && value.all? { |value| value.is_a? String })
|
344
|
+
unless valid_type || valid_array_of_symbols || valid_array_of_strings
|
333
345
|
raise ValidationInvalidArgumentError, "The value `#{value}` provided to this validator must be a Symbol/String or an Array of Symbols/Strings"
|
334
346
|
end
|
335
347
|
|
@@ -101,7 +101,7 @@ module DSLCompose
|
|
101
101
|
ClassCoerce.new optional_arg[optional_argument_name]
|
102
102
|
end
|
103
103
|
else
|
104
|
-
optional_arg[optional_argument_name]
|
104
|
+
optional_arg[optional_argument_name].freeze
|
105
105
|
end
|
106
106
|
|
107
107
|
if optional_arg_value.is_a?(Array) && !optional_argument.array
|
@@ -191,7 +191,7 @@ module DSLCompose
|
|
191
191
|
ClassCoerce.new required_args[i]
|
192
192
|
end
|
193
193
|
else
|
194
|
-
required_args[i]
|
194
|
+
required_args[i].freeze
|
195
195
|
end
|
196
196
|
|
197
197
|
if required_arg_value.is_a?(Array) && !required_argument.array
|
data/lib/dsl_compose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dsl_compose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig Ulliott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: class_spec_helper
|