dsl_compose 1.14.2 → 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: 623399acb76c51f12e07ed2ac76358334298cd9714a222ad271a3c90b1cc2aa2
4
- data.tar.gz: 42069e337ec7435aea513ffd42f7303d62d62900f84de3e9822129e895fb3e92
3
+ metadata.gz: 66f81fd1f2837e1117bbf857e0c82d4b778bc1c994b6fcef6822f7d4bbc8a67c
4
+ data.tar.gz: 35418838094f4d67161f1c105fd3f377ac3dec99165c2a2330f55211b618c6d6
5
5
  SHA512:
6
- metadata.gz: a68c4971e5ac2057e31df63d28ec097c9f5a0ceaca2dc80d9a5997e50373218831c5aeb3733d9b005b9cb2a849d30065e28b5844e376e2fc8093667cf12cf887
7
- data.tar.gz: '097c77a640d68e46057911d0b75067fd215d251e6fc218982ee8f4d37ff315cb87e3e6f1db1079806d881018ef84a900f1cd17178b04f20616127bb56545750a'
6
+ metadata.gz: 4e28260ad137a173ccea457daf2a2d6c242da73483e5843a4562b376acaa24d833f0258057be4923a6eba5578b1dd1c0c3b26a90fa0cf90b919f6912baac17fe
7
+ data.tar.gz: 91b1547ad26635ef8dc968a2a18a939f28344c3bf164f50992033724f3b73882628f928b5c14c4b27411bfba60c9abb9627170244e4ffda3f477da3e3f59cd0c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## [1.14.2](https://github.com/craigulliott/dsl_compose/compare/v1.14.1...v1.14.2) (2023-07-19)
4
11
 
5
12
 
@@ -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.2"
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.2
4
+ version: 1.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott