dsl_compose 2.14.1 → 2.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/dsl_compose/interpreter/execution/arguments.rb +3 -3
- data/lib/dsl_compose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f89114eef0fe1f670d05bfe9cb2b8fe7964285f8dfbc60638f979ec125ad5e88
|
4
|
+
data.tar.gz: 0ab64341226e7069d50016415a786b8525b93006d84378911d215b911f8526a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f0cbe329fb957589f395cfdc7ee75c1b195ac897e01a494578efc45409375d5435ff17507b241d8d1f0b65bc014b1a50d2d9b2ec673c1b039cc937052d87a5
|
7
|
+
data.tar.gz: 235bf2593f1ef5e0309973eb45189dc7c634e8b959dde94c8a52673b933d0ddb996a2065d29707901ccc94466754d3c2f6d29cf4f0ad237d305d1d21c050aeea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.14.2](https://github.com/craigulliott/dsl_compose/compare/v2.14.1...v2.14.2) (2023-09-11)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* freezing default arguments so that code within parsers can not modify the underlying values ([12674de](https://github.com/craigulliott/dsl_compose/commit/12674def81b7370f7e06b8036fea308dff95f30d))
|
9
|
+
|
3
10
|
## [2.14.1](https://github.com/craigulliott/dsl_compose/compare/v2.14.0...v2.14.1) (2023-09-11)
|
4
11
|
|
5
12
|
|
@@ -73,7 +73,7 @@ module DSLCompose
|
|
73
73
|
# unless the argument is an array or a boolean, in which case it defaults
|
74
74
|
# to an empty array or false
|
75
75
|
if optional_argument.array
|
76
|
-
@arguments[optional_argument.name] = []
|
76
|
+
@arguments[optional_argument.name] = [].freeze
|
77
77
|
elsif optional_argument.type == :boolean
|
78
78
|
@arguments[optional_argument.name] = false
|
79
79
|
end
|
@@ -164,7 +164,7 @@ module DSLCompose
|
|
164
164
|
# If the argument accepts an array of values, then automatically convert valid singular values
|
165
165
|
# into an array.
|
166
166
|
@arguments[optional_argument_name] = if optional_argument.array && !optional_arg_value.is_a?(Array)
|
167
|
-
[optional_arg_value]
|
167
|
+
[optional_arg_value].freeze
|
168
168
|
else
|
169
169
|
optional_arg_value
|
170
170
|
end
|
@@ -254,7 +254,7 @@ module DSLCompose
|
|
254
254
|
# If the argument accepts an array of values, then automatically convert valid singular values
|
255
255
|
# into an array.
|
256
256
|
@arguments[argument_name] = if required_argument.array && !required_arg_value.is_a?(Array)
|
257
|
-
[required_arg_value]
|
257
|
+
[required_arg_value].freeze
|
258
258
|
else
|
259
259
|
required_arg_value
|
260
260
|
end
|
data/lib/dsl_compose/version.rb
CHANGED