dsl_compose 2.9.0 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/dsl_compose/parser/for_children_of_parser/for_dsl_parser.rb +5 -0
- data/lib/dsl_compose/reader/execution_reader/arguments_reader.rb +5 -0
- data/lib/dsl_compose/version.rb +1 -1
- data/sig/dsl_compose/reader/execution_reader/arguments_reader.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0e11587cec1aae93debb5f7aa0290cb506436000dee938b375fe90d04650e9d
|
4
|
+
data.tar.gz: 260343f03b26ac471a7d40f4e981b51d76af15ed4a60074d6531aa71a1f22dc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eec6a16a53886bafaac45e6b7faba38449720adf195867a6ac8f12efce42ccf9f7ec52fbd4f323ac5e9f6121345acd510e41b967e38b1321b4ca680ee0e36148
|
7
|
+
data.tar.gz: fb39f5240eb37fa5f9a3f74f69b5ac85b102e344f02eb6dc8b3df20f2f8f80c01a90f435c7de1650497094ad2d275d6cad56b4a38c183a07e390a61ae456c7c1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.11.0](https://github.com/craigulliott/dsl_compose/compare/v2.10.0...v2.11.0) (2023-09-02)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* adding :dsl_execution to Parser's list of passable attributes ([ce0facb](https://github.com/craigulliott/dsl_compose/commit/ce0facb41edf46664c7fdf1b010b10f02d0f6902))
|
9
|
+
|
10
|
+
## [2.10.0](https://github.com/craigulliott/dsl_compose/compare/v2.9.0...v2.10.0) (2023-09-02)
|
11
|
+
|
12
|
+
|
13
|
+
### Features
|
14
|
+
|
15
|
+
* adding a `has_argument?` method to the DSL reader base class ([4a5db6a](https://github.com/craigulliott/dsl_compose/commit/4a5db6ab258283960fc909bdf46c75837475aa59))
|
16
|
+
|
3
17
|
## [2.9.0](https://github.com/craigulliott/dsl_compose/compare/v2.8.0...v2.9.0) (2023-08-31)
|
4
18
|
|
5
19
|
|
@@ -73,6 +73,11 @@ module DSLCompose
|
|
73
73
|
args[:dsl_name] = dsl_execution.dsl.name
|
74
74
|
end
|
75
75
|
|
76
|
+
# the dsl_execution (if it's requested)
|
77
|
+
if BlockArguments.accepts_argument?(:dsl_execution, &block)
|
78
|
+
args[:dsl_execution] = dsl_execution
|
79
|
+
end
|
80
|
+
|
76
81
|
# a hash representation of all the dsl arguments, if requested
|
77
82
|
if BlockArguments.accepts_argument?(:dsl_arguments, &block)
|
78
83
|
args[:dsl_arguments] = {}
|
@@ -27,6 +27,11 @@ module DSLCompose
|
|
27
27
|
@argument_values.arguments[argument.name]
|
28
28
|
end
|
29
29
|
|
30
|
+
# returns true if the DSL has an argument with the provided name
|
31
|
+
def has_argument? argument_name
|
32
|
+
@arguments.has_argument? argument_name
|
33
|
+
end
|
34
|
+
|
30
35
|
def respond_to_missing? method_name
|
31
36
|
@arguments.has_argument? method_name
|
32
37
|
end
|
data/lib/dsl_compose/version.rb
CHANGED
@@ -8,6 +8,7 @@ module DSLCompose
|
|
8
8
|
|
9
9
|
def initialize: (DSL::Arguments arguments, Interpreter::Execution::Arguments argument_values) -> void
|
10
10
|
def method_missing: (Symbol method_name) -> (ArgumentsReader | nil)
|
11
|
+
def has_argument?: (Symbol method_name) -> bool
|
11
12
|
def respond_to_missing?: (Symbol method_name) -> bool
|
12
13
|
end
|
13
14
|
end
|
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.
|
4
|
+
version: 2.11.0
|
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-
|
11
|
+
date: 2023-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: class_spec_helper
|