foobara 0.0.43 → 0.0.45

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: aa2be36d2ee83554bf301d1fffd4e39e99da510bb817c212835df9eab32b8a4e
4
- data.tar.gz: 71232aec15786e518056e59c978d5ae42e291bf844110b6d01202200c8a35b25
3
+ metadata.gz: b68dba0dd4e2ef0480212720680d473f633988413073bedc42cdeae9a63e81ca
4
+ data.tar.gz: 85f4874cab8df854c80efe5f01e15219a6f0c0d683744e6e9e5d64ec00835ca3
5
5
  SHA512:
6
- metadata.gz: c9e95192d7d5a4da5f8ea25190bb1a14f99d9df8d7ef11370c87c02f9bba022b0d536d246beffad9dfd64dcc6c135dc9ac46c7463c94b4773729a100a0e0ae1c
7
- data.tar.gz: 5430f3014eb74bc235e842decc7ab33790ac0359339005d1573123b9df8f6a4689f7a55aec0f32ec4b4fa24572c55c8e97c98520decd349805aa7cec938b3852
6
+ metadata.gz: 80fac7af8f0703824630ba347004b8f417f59e0ef3d91b6a739458604846e490be629eaaf791a6cb22c8e444caa0d0e5ec4f42b52bd7d79ad005f101dc79e85f
7
+ data.tar.gz: 18e070f780b476c8e7ec24b6b925fd78b4bb6b1dfb1e6c9ac981dec3aa5727d157e5a54c48e578d510d694946249ec13b9df9eff23b06a22acc516812ec53a8b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
- ## [0.0.43] - 2025-01-03
1
+ ## [0.0.45] - 2025-01-03
2
2
 
3
3
  - Bumped Ruby from 3.2.2 to 3.4.1
4
+ - Allow passing in a module when registering a "builtin" type
5
+ - Fix AttributesHandlerDesugarizer bug
4
6
 
5
7
  ## [0.0.42] - 2024-12-23
6
8
 
@@ -13,13 +13,14 @@ module Foobara
13
13
  type_symbol,
14
14
  base_type,
15
15
  target_classes = const_get("::#{Util.classify(type_symbol)}"),
16
- description: "Built-in #{type_symbol} type"
16
+ description: "Built-in #{type_symbol} type",
17
+ type_module: nil
17
18
  )
18
19
  declaration_data = { type: type_symbol.to_sym }
19
20
 
20
21
  module_symbol = Util.classify(type_symbol).to_sym
21
22
 
22
- builtin_type_module = const_get(module_symbol, false)
23
+ builtin_type_module = type_module || const_get(module_symbol, false)
23
24
 
24
25
  processor_classes_requiring_type = []
25
26
 
@@ -4,7 +4,7 @@ module Foobara
4
4
  class ExtendModelTypeDeclaration < ExtendRegisteredTypeDeclaration
5
5
  class AttributesHandlerDesugarizer < TypeDeclarations::Desugarizer
6
6
  def applicable?(sugary_type_declaration)
7
- sugary_type_declaration[:type] == expected_type_symbol
7
+ sugary_type_declaration.is_a?(::Hash) && sugary_type_declaration[:type] == expected_type_symbol
8
8
  end
9
9
 
10
10
  def expected_type_symbol
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.43
4
+ version: 0.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi