foobara 0.0.81 → 0.0.82

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: 66f1d5b1015809a2646a0627b8d6af04bdca39257a21a361e5cb78807b0ba611
4
- data.tar.gz: 565397a74e404cdba4e629d2bb28b27dcb5b23f2e144a8dfeccac22690600a45
3
+ metadata.gz: e9fcec0cdbeb75a6ac186a698a2f88ae28b598ccaed336d64f969cd765b0c7a5
4
+ data.tar.gz: edcceb30a55fe4e2850bfbb00f48219c0dbb405ef39e103a499b9cac8ed363b3
5
5
  SHA512:
6
- metadata.gz: 42b0474e8712dfc36495379cd12d61b7c6aee754382cce807a330038d5fd249ebfe3bc4f7b503d0a1d80b92c12b67ab1297007d3535e9983e9ae1a116e8bd31b
7
- data.tar.gz: a12f6239df09e306ee8a1587f56e74cce4d9bfc78393daeb648b82c91f0d07806ba8e5ebec48b80f4f77e4e956e82667d7b95b0448367a7b5c1ae4d862380a3a
6
+ metadata.gz: 7d7ad23aee91daf8e88449f6c22411111b32ad578444c67155093389fc2522002854dda79eaecabfa5b6a7e5854551aafcc9fd17ceaf86ce9e469090f2e17259
7
+ data.tar.gz: 29009427cdae16977b1c667090213f24e526d81a13a1a2442567833a4acc95d42fe5c19f88f2a339ee03b6e17549c4fd354f91fa27224230181a2bcd9a49b489
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.0.82] - 2025-03-21
2
+
3
+ - Fix bug incorrectly creating model classes in Foobara::GlobalDomain module
4
+
1
5
  # [0.0.81] - 2025-03-21
2
6
 
3
7
  - No longer automatically creates Foobara::Model classes when creating a foobara model type via type declaration
@@ -348,12 +348,16 @@ module Foobara
348
348
  # TODO: reuse the model_base_class primary key if it has one...
349
349
  primary_key = attributes_type.element_types.keys.first
350
350
 
351
+ model_module = unless scoped_full_path.empty?
352
+ scoped_full_name
353
+ end
354
+
351
355
  entity_type = foobara_type_builder.type_for_declaration(
352
356
  Util.remove_blank(
353
357
  type: :entity,
354
358
  name:,
355
359
  model_base_class:,
356
- model_module: self,
360
+ model_module:,
357
361
  attributes_declaration: attributes_type_declaration,
358
362
  primary_key:,
359
363
  description:,
@@ -15,7 +15,7 @@ module Foobara
15
15
  Foobara::Model
16
16
  end
17
17
 
18
- # TODO: considerg splitting this up into multiple desugarizers
18
+ # TODO: consider splitting this up into multiple desugarizers
19
19
  def desugarize(strictish_type_declaration)
20
20
  if strictish_type_declaration.key?(:model_module)
21
21
  model_module = strictish_type_declaration[:model_module]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.81
4
+ version: 0.0.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi