dsl_compose 1.14.1 → 1.14.3

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: ddb7398a7cd392f48c54e7ee60404342857d7d010247926ca006d84ad5caa1ac
4
- data.tar.gz: d4515e288a0eea8be71a869434c1f28a20f2cec3943a33c9c6615028b223b970
3
+ metadata.gz: 66f81fd1f2837e1117bbf857e0c82d4b778bc1c994b6fcef6822f7d4bbc8a67c
4
+ data.tar.gz: 35418838094f4d67161f1c105fd3f377ac3dec99165c2a2330f55211b618c6d6
5
5
  SHA512:
6
- metadata.gz: 8512aec08f472d946b2c9a84b6e824bbc1d46db610f3bb908766e05a324833e3c07feeb05638153633d23bccbe1f0e66e8132721e7056e903beaed1a42ef866c
7
- data.tar.gz: a2897b08ed6b226a06c8fbf2e07277b68fc1476b7467db663c06acacaa3a1e92db64b3aaac782fb2ada0657605dfecccb47bce6517339d60a49016a48ccd9726
6
+ metadata.gz: 4e28260ad137a173ccea457daf2a2d6c242da73483e5843a4562b376acaa24d833f0258057be4923a6eba5578b1dd1c0c3b26a90fa0cf90b919f6912baac17fe
7
+ data.tar.gz: 91b1547ad26635ef8dc968a2a18a939f28344c3bf164f50992033724f3b73882628f928b5c14c4b27411bfba60c9abb9627170244e4ffda3f477da3e3f59cd0c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.14.3](https://github.com/craigulliott/dsl_compose/compare/v1.14.2...v1.14.3) (2023-07-19)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * for_children_of returns classes with dependencies before classes without any dependencies, this fixes a bug where the parser is used to create other classes, and classes with dependencies need to be created first ([#45](https://github.com/craigulliott/dsl_compose/issues/45)) ([ffc481d](https://github.com/craigulliott/dsl_compose/commit/ffc481d8cdcc85483bfc3829ac3eacd3f44ec657))
9
+
10
+ ## [1.14.2](https://github.com/craigulliott/dsl_compose/compare/v1.14.1...v1.14.2) (2023-07-19)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * fixed parser usage notes not being cleared as expected ([#43](https://github.com/craigulliott/dsl_compose/issues/43)) ([3d31ab1](https://github.com/craigulliott/dsl_compose/commit/3d31ab1a8dc238144749c18847d5e655461fca06))
16
+
3
17
  ## [1.14.1](https://github.com/craigulliott/dsl_compose/compare/v1.14.0...v1.14.1) (2023-07-19)
4
18
 
5
19
 
@@ -67,7 +67,7 @@ module DSLCompose
67
67
  # next test.
68
68
  def clear
69
69
  @executions = []
70
- @parser_usage_notes ||= {}
70
+ @parser_usage_notes = {}
71
71
  end
72
72
 
73
73
  def to_h dsl_name
@@ -14,9 +14,9 @@ module DSLCompose
14
14
  extending_classes = ObjectSpace.each_object(Class).select { |klass| klass < @base_class }
15
15
 
16
16
  # sort the results, classes are ordered first by the depth of their namespace, and second
17
- # by their name
17
+ # by the presence of decendents and finally by their name
18
18
  extending_classes.sort_by! do |child_class|
19
- "#{child_class.name.split("::").count}_#{child_class.name}"
19
+ "#{child_class.name.split("::").count}_#{has_descendents(child_class) ? 0 : 1}_#{child_class.name}"
20
20
  end
21
21
 
22
22
  # if this is not a final child, but we are processing final children only, then skip it
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSLCompose
4
- VERSION = "1.14.1"
4
+ VERSION = "1.14.3"
5
5
  end
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: 1.14.1
4
+ version: 1.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott