dsl_compose 2.13.0 → 2.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/dsl_compose/reader.rb +7 -6
- data/lib/dsl_compose/version.rb +1 -1
- 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: 117789e8395652f4823ad048b258d2a683b65328d5817788b9d3d3d7bc377c8b
|
4
|
+
data.tar.gz: d4ad4b7a66de0cfd143006e4c9984bef0ce1c29e6e18b86a0621810cb2d11edb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbcf361a908dcd619664f12e50299f80092d5e2f4e8efb4f53320b2d13c3ca30ef334e429fe1a977fb899c0878f2dd26a30d9b067b74da22198eb2372984d2ad
|
7
|
+
data.tar.gz: 9e932a4d10693634bc25532d9d625ad1939f58c975bf90a0f4a0f1714586bdce5dc1650cf48cbfaa0655c56fbaa341fd27731953e4e3fe74fbefd63619fac6ad
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.13.1](https://github.com/craigulliott/dsl_compose/compare/v2.13.0...v2.13.1) (2023-09-05)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* fixed a nil value in error message caused by overwriting method argument ([dd7848b](https://github.com/craigulliott/dsl_compose/commit/dd7848b3861bff6176c8326f6784fb29f1ba2fdd))
|
9
|
+
|
3
10
|
## [2.13.0](https://github.com/craigulliott/dsl_compose/compare/v2.12.0...v2.13.0) (2023-09-04)
|
4
11
|
|
5
12
|
|
data/lib/dsl_compose/reader.rb
CHANGED
@@ -24,24 +24,25 @@ module DSLCompose
|
|
24
24
|
# Move up through this classes ancestors until we find the class which defined
|
25
25
|
# the DSL with the provided name. When we reach the top of the ancestor chain we
|
26
26
|
# exit the loop.
|
27
|
-
|
27
|
+
k = klass
|
28
|
+
while k
|
28
29
|
# if we find a DSL with this name, then store a reference to the DSL and the
|
29
30
|
# ancestor class where it was defined
|
30
|
-
if DSLs.class_dsl_exists?(
|
31
|
-
@dsl = DSLs.class_dsl(
|
32
|
-
@dsl_defining_class =
|
31
|
+
if DSLs.class_dsl_exists?(k, dsl_name)
|
32
|
+
@dsl = DSLs.class_dsl(k, dsl_name)
|
33
|
+
@dsl_defining_class = k
|
33
34
|
# stop once we find the DSL
|
34
35
|
break
|
35
36
|
end
|
36
37
|
|
37
38
|
# the DSL was not found here, so traverse up the provided classes hierachy
|
38
39
|
# and keep looking for where this DSL was initially defined
|
39
|
-
|
40
|
+
k = k.superclass
|
40
41
|
end
|
41
42
|
|
42
43
|
# if no DSL was found, then raise an error
|
43
44
|
if @dsl.nil? && @dsl_defining_class.nil?
|
44
|
-
raise DSLNotFound, "No DSL named `#{dsl_name}` was found for class `#{klass}`"
|
45
|
+
raise DSLNotFound, "No DSL named `#{dsl_name}` was found for class `#{@klass}`"
|
45
46
|
end
|
46
47
|
end
|
47
48
|
|
data/lib/dsl_compose/version.rb
CHANGED
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.13.
|
4
|
+
version: 2.13.1
|
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-09-
|
11
|
+
date: 2023-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: class_spec_helper
|