dsl_compose 2.10.0 → 2.12.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31077b216dc51cdf2addc2bb7d094ca58d7cb90ed7ff82897712c3a46b709e10
|
4
|
+
data.tar.gz: 51d663846f488abdd48a57eaf643e8d89bc9cd5db5d8ca4d4914c610debd2ca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc5cbde44a97a3fb2920c7e9b4bfb669ba535168e09edb68c1597ad80a2bc41aaa61aaa52c7aea233ce740f8304f6a65691d0a92072fc40ebdabb5277f6617f2
|
7
|
+
data.tar.gz: 9f26a35cf368934b91967768870f1c863615746d12790a1334659ee852faab53b6dabc9182a13fe74d525dbefb2f8194a8ff83454ede48d935e9651058036af3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.12.0](https://github.com/craigulliott/dsl_compose/compare/v2.11.0...v2.12.0) (2023-09-02)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* adding dsl_name method to execution reader ([54e8a44](https://github.com/craigulliott/dsl_compose/commit/54e8a44b0f7a6fc2fe81a18cd53d3ebe76257348))
|
9
|
+
|
10
|
+
## [2.11.0](https://github.com/craigulliott/dsl_compose/compare/v2.10.0...v2.11.0) (2023-09-02)
|
11
|
+
|
12
|
+
|
13
|
+
### Features
|
14
|
+
|
15
|
+
* adding :dsl_execution to Parser's list of passable attributes ([ce0facb](https://github.com/craigulliott/dsl_compose/commit/ce0facb41edf46664c7fdf1b010b10f02d0f6902))
|
16
|
+
|
3
17
|
## [2.10.0](https://github.com/craigulliott/dsl_compose/compare/v2.9.0...v2.10.0) (2023-09-02)
|
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] = {}
|
@@ -22,6 +22,11 @@ module DSLCompose
|
|
22
22
|
@execution = execution
|
23
23
|
end
|
24
24
|
|
25
|
+
# useful when creating a DSL reader which is usable across multiple DSLs
|
26
|
+
def dsl_name
|
27
|
+
@execution.dsl.name
|
28
|
+
end
|
29
|
+
|
25
30
|
# returns an object which represents the arguments available for this DSL and allows
|
26
31
|
# accessing their values via methods
|
27
32
|
def arguments
|
data/lib/dsl_compose/version.rb
CHANGED
@@ -5,6 +5,7 @@ module DSLCompose
|
|
5
5
|
@execution: Interpreter::Execution
|
6
6
|
|
7
7
|
def initialize: (Interpreter::Execution execution) -> void
|
8
|
+
def dsl_name: -> Symbol
|
8
9
|
def arguments: -> ArgumentsReader
|
9
10
|
def method_called?: (Symbol method_name) -> bool
|
10
11
|
def method_missing: (Symbol method_name) -> (nil | ArgumentsReader | Array[ArgumentsReader])
|