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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7dae8c4f74589b916fbfc6f67f181d58b6e2044aa9eed65a4e26e2e2d05b1fbc
4
- data.tar.gz: c9663b356014625a531f22fc093b3f0c0117be81b49a6157b9068b196c4db2dc
3
+ metadata.gz: f89114eef0fe1f670d05bfe9cb2b8fe7964285f8dfbc60638f979ec125ad5e88
4
+ data.tar.gz: 0ab64341226e7069d50016415a786b8525b93006d84378911d215b911f8526a1
5
5
  SHA512:
6
- metadata.gz: 7e6ccea99702dc7e02344b4dfe169433b61a363e6ea0d3c3bf4abae0c531c240e4a37a68e384e5d9b7b96a63438e768b3b8beb2ae37fc657ffd141ff80e707b1
7
- data.tar.gz: 2eec3427dc377746dce4e708a6c2c1d12bcb6ec94637ae9f425810d7b5665b90e51178b62ff0ce6d0f22409697c7611e3c363bb636d4f8f9a88ae990c39ddfcb
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSLCompose
4
- VERSION = "2.14.1"
4
+ VERSION = "2.14.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsl_compose
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.1
4
+ version: 2.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott