dsl_compose 2.13.0 → 2.13.1

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: c143f5741011efd1d4311e4b2b5beab52fb75600f0c7f492fdb199cc3221c502
4
- data.tar.gz: '09a0982fa552f3e36a1005e4b345eaf5294bc3b62c10c41eebb6dbdf42e3a102'
3
+ metadata.gz: 117789e8395652f4823ad048b258d2a683b65328d5817788b9d3d3d7bc377c8b
4
+ data.tar.gz: d4ad4b7a66de0cfd143006e4c9984bef0ce1c29e6e18b86a0621810cb2d11edb
5
5
  SHA512:
6
- metadata.gz: 45988d0bbd27cbc1ee285608a795d1cdc95dccf4bce14ccdd76ea0aad26daec4345262c140f73a4059becbe4148aef9548b5b8f127585557ad90b974c9b0807b
7
- data.tar.gz: e889b48f585730f5a8a05349e8c90e527885e5393512ecea5568feab6c71e0a82ce9e5b7b417af6d7bcbb4a35f9459a4537b0bbb337e5825bc1e72833cef4edf
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
 
@@ -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
- while klass
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?(klass, dsl_name)
31
- @dsl = DSLs.class_dsl(klass, dsl_name)
32
- @dsl_defining_class = klass
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
- klass = klass.superclass
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSLCompose
4
- VERSION = "2.13.0"
4
+ VERSION = "2.13.1"
5
5
  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.13.0
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-04 00:00:00.000000000 Z
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