dsl_compose 1.14.1 → 1.14.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f81fd1f2837e1117bbf857e0c82d4b778bc1c994b6fcef6822f7d4bbc8a67c
|
4
|
+
data.tar.gz: 35418838094f4d67161f1c105fd3f377ac3dec99165c2a2330f55211b618c6d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
@@ -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
|
data/lib/dsl_compose/version.rb
CHANGED