dsl_compose 2.11.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: b0e11587cec1aae93debb5f7aa0290cb506436000dee938b375fe90d04650e9d
4
- data.tar.gz: 260343f03b26ac471a7d40f4e981b51d76af15ed4a60074d6531aa71a1f22dc8
3
+ metadata.gz: 31077b216dc51cdf2addc2bb7d094ca58d7cb90ed7ff82897712c3a46b709e10
4
+ data.tar.gz: 51d663846f488abdd48a57eaf643e8d89bc9cd5db5d8ca4d4914c610debd2ca9
5
5
  SHA512:
6
- metadata.gz: eec6a16a53886bafaac45e6b7faba38449720adf195867a6ac8f12efce42ccf9f7ec52fbd4f323ac5e9f6121345acd510e41b967e38b1321b4ca680ee0e36148
7
- data.tar.gz: fb39f5240eb37fa5f9a3f74f69b5ac85b102e344f02eb6dc8b3df20f2f8f80c01a90f435c7de1650497094ad2d275d6cad56b4a38c183a07e390a61ae456c7c1
6
+ metadata.gz: fc5cbde44a97a3fb2920c7e9b4bfb669ba535168e09edb68c1597ad80a2bc41aaa61aaa52c7aea233ce740f8304f6a65691d0a92072fc40ebdabb5277f6617f2
7
+ data.tar.gz: 9f26a35cf368934b91967768870f1c863615746d12790a1334659ee852faab53b6dabc9182a13fe74d525dbefb2f8194a8ff83454ede48d935e9651058036af3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## [2.11.0](https://github.com/craigulliott/dsl_compose/compare/v2.10.0...v2.11.0) (2023-09-02)
4
11
 
5
12
 
@@ -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.11.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.11.0
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott