dsl_compose 2.5.1 → 2.5.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 +9 -1
- 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: 9530f024d2b46df98c44f9a5835a9a2492d8ed61af9542e36482323295aed93a
|
4
|
+
data.tar.gz: 241b93305870e0a6e205f3535df506b89b4a548c5d202e94b6242c6e5952a937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d025d6a6245c6e9e93f9727b7dde6cc7fd5ac66684bd3d17ba6c952b876aa3a6f41deb9d383324f7a5f7f3f32685be5b0f034fd6351e5852ea4064f0a8912019
|
7
|
+
data.tar.gz: 79c467dde765e402b90439d003ef00c5509d0b50658d41ada8c6c344ee4fb986e68c679b7cfb643d0bf90255f41a505a1e65706f1adec7fe7aa38d74b6295818
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.5.2](https://github.com/craigulliott/dsl_compose/compare/v2.5.1...v2.5.2) (2023-08-17)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* optional array arguments default to empty arrays rather than nil ([8a74ad6](https://github.com/craigulliott/dsl_compose/commit/8a74ad671f5d74c3ab7deb6f09c2cfa7c3557d1c))
|
9
|
+
|
3
10
|
## [2.5.1](https://github.com/craigulliott/dsl_compose/compare/v2.5.0...v2.5.1) (2023-08-17)
|
4
11
|
|
5
12
|
|
@@ -48,7 +48,15 @@ module DSLCompose
|
|
48
48
|
# If actual values were provided, then they will be set further below.
|
49
49
|
if arguments.optional_arguments.any?
|
50
50
|
arguments.optional_arguments.each do |optional_argument|
|
51
|
-
|
51
|
+
# assume it is nil
|
52
|
+
@arguments[optional_argument.name] = nil
|
53
|
+
# unless the argument is an array or a boolean, in which case it defaults
|
54
|
+
# to an empty array or false
|
55
|
+
if optional_argument.array
|
56
|
+
@arguments[optional_argument.name] = []
|
57
|
+
elsif optional_argument.type == :boolean
|
58
|
+
@arguments[optional_argument.name] = false
|
59
|
+
end
|
52
60
|
end
|
53
61
|
end
|
54
62
|
|
data/lib/dsl_compose/version.rb
CHANGED