dsl_compose 1.9.0 → 1.9.1
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/dsl/arguments/argument.rb +8 -8
- 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: 7fc1bd78d6f3926b9ee718a6e2191cefd5aecd40fcfbb5de9a8cfbd8c602e65c
|
4
|
+
data.tar.gz: 7b9fd87ecf61b71831f56ab9120562cb3fbb3d49424dc7862c31014e6dc96d45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3f750f7d8d5d1d7b2014cd84ad10d656d005e2738b18c8ed89f108656b5f9037a428f6ec1094af5382d9788985f3c205c68f06198c8a18e2dfc01f518203cb6
|
7
|
+
data.tar.gz: 12a823a699962ee5426a53ab66517f5acb23bd1fbc6834b219d6209d09ba78a9a9b249a1169497a0a2773287f24abf2d7c065c3f126f702bf4927c13180a15aa
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.9.1](https://github.com/craigulliott/dsl_compose/compare/v1.9.0...v1.9.1) (2023-07-11)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* bug fix where argument class was using wrong type check for start and end with validators ([#25](https://github.com/craigulliott/dsl_compose/issues/25)) ([d16fd35](https://github.com/craigulliott/dsl_compose/commit/d16fd35d0b574eafe6ad9d68d4e7f5884e89c521))
|
9
|
+
|
3
10
|
## [1.9.0](https://github.com/craigulliott/dsl_compose/compare/v1.8.0...v1.9.0) (2023-07-11)
|
4
11
|
|
5
12
|
|
@@ -260,8 +260,8 @@ module DSLCompose
|
|
260
260
|
raise ValidationAlreadyExistsError, "The validation `end_with` has already been applied to this method option."
|
261
261
|
end
|
262
262
|
|
263
|
-
unless value.is_a? Symbol
|
264
|
-
raise ValidationInvalidArgumentError, value
|
263
|
+
unless value.is_a?(Symbol) || (value.is_a?(Array) && value.all? { |value| value.is_a? Symbol })
|
264
|
+
raise ValidationInvalidArgumentError, "The value `#{value}` provided to this validator must be a Symbol or an Array of Symbols"
|
265
265
|
end
|
266
266
|
|
267
267
|
unless @type == :string || @type == :symbol
|
@@ -276,8 +276,8 @@ module DSLCompose
|
|
276
276
|
raise ValidationAlreadyExistsError, "The validation `not_end_with` has already been applied to this method option."
|
277
277
|
end
|
278
278
|
|
279
|
-
unless value.is_a? Symbol
|
280
|
-
raise ValidationInvalidArgumentError, value
|
279
|
+
unless value.is_a?(Symbol) || (value.is_a?(Array) && value.all? { |value| value.is_a? Symbol })
|
280
|
+
raise ValidationInvalidArgumentError, "The value `#{value}` provided to this validator must be a Symbol or an Array of Symbols"
|
281
281
|
end
|
282
282
|
|
283
283
|
unless @type == :string || @type == :symbol
|
@@ -292,8 +292,8 @@ module DSLCompose
|
|
292
292
|
raise ValidationAlreadyExistsError, "The validation `start_with` has already been applied to this method option."
|
293
293
|
end
|
294
294
|
|
295
|
-
unless value.is_a? Symbol
|
296
|
-
raise ValidationInvalidArgumentError, value
|
295
|
+
unless value.is_a?(Symbol) || (value.is_a?(Array) && value.all? { |value| value.is_a? Symbol })
|
296
|
+
raise ValidationInvalidArgumentError, "The value `#{value}` provided to this validator must be a Symbol or an Array of Symbols"
|
297
297
|
end
|
298
298
|
|
299
299
|
unless @type == :string || @type == :symbol
|
@@ -308,8 +308,8 @@ module DSLCompose
|
|
308
308
|
raise ValidationAlreadyExistsError, "The validation `not_start_with` has already been applied to this method option."
|
309
309
|
end
|
310
310
|
|
311
|
-
unless value.is_a? Symbol
|
312
|
-
raise ValidationInvalidArgumentError, value
|
311
|
+
unless value.is_a?(Symbol) || (value.is_a?(Array) && value.all? { |value| value.is_a? Symbol })
|
312
|
+
raise ValidationInvalidArgumentError, "The value `#{value}` provided to this validator must be a Symbol or an Array of Symbols"
|
313
313
|
end
|
314
314
|
|
315
315
|
unless @type == :string || @type == :symbol
|
data/lib/dsl_compose/version.rb
CHANGED