dsl_compose 2.9.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b3e6317cc749c3ca13077798521067f9e9a47561184b77d678865b3dcb99679
4
- data.tar.gz: b6a123b99643edd4dfa152064099dfbbeb7c881de4f6bb5cfc437283fdf23a35
3
+ metadata.gz: b0e11587cec1aae93debb5f7aa0290cb506436000dee938b375fe90d04650e9d
4
+ data.tar.gz: 260343f03b26ac471a7d40f4e981b51d76af15ed4a60074d6531aa71a1f22dc8
5
5
  SHA512:
6
- metadata.gz: 2e25a2d09a7fe04eda88faeba6bf60249e2dbbfd718bdb39c9f80fd7acf9f123e684062adfc66e9022c3c3b734a36e8c2315e099ddb0c7e5ec6adb83966af4ea
7
- data.tar.gz: 7c11c40bf4828f5d6e862dec367cf0f6c0c96c45651027b0e3f9ec427c4432a10be7a0b7864639d56a2aec5b310d71d497ff5e19936bc77f2018d34b3844c361
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSLCompose
4
- VERSION = "2.9.0"
4
+ VERSION = "2.11.0"
5
5
  end
@@ -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.9.0
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-08-31 00:00:00.000000000 Z
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