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: f1a63126e260fbca1433946b983adcc053c1d457f0356114bd8a8a07cd347399
4
- data.tar.gz: 633636a2d3935493452b3b594bb87f27cba96bfe383be8d3948905a1c56b26a9
3
+ metadata.gz: 31077b216dc51cdf2addc2bb7d094ca58d7cb90ed7ff82897712c3a46b709e10
4
+ data.tar.gz: 51d663846f488abdd48a57eaf643e8d89bc9cd5db5d8ca4d4914c610debd2ca9
5
5
  SHA512:
6
- metadata.gz: de52f063d8fd04e95e8c389cd91f95c6fc2fb7e346a56fae7ee5f433385c52499412a37d7197c9f60c2886f4f7f194c57b0f0b93232a6993c1fe7c8f4e0fbe61
7
- data.tar.gz: 6e66853fb176c9de01f637e83f83536a3a59872175a9ce13a1aeafcfd004f012d27dc6b83068db6fb8a72a69b76d2a1fed6bf93a9fb9cd4a3d8f7129912ad868
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSLCompose
4
- VERSION = "2.10.0"
4
+ VERSION = "2.12.0"
5
5
  end
@@ -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])
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.10.0
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott