foobara 0.0.45 → 0.0.46

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: b68dba0dd4e2ef0480212720680d473f633988413073bedc42cdeae9a63e81ca
4
- data.tar.gz: 85f4874cab8df854c80efe5f01e15219a6f0c0d683744e6e9e5d64ec00835ca3
3
+ metadata.gz: 60195fb6137fde10c6e482bbdb9c6845571ba1267fbb4c3721f4f5c131b3d778
4
+ data.tar.gz: 7918eb25d72cab1718160c65e0f1ed4b90c4ee70bb0ae5f44176b918d81b55f3
5
5
  SHA512:
6
- metadata.gz: 80fac7af8f0703824630ba347004b8f417f59e0ef3d91b6a739458604846e490be629eaaf791a6cb22c8e444caa0d0e5ec4f42b52bd7d79ad005f101dc79e85f
7
- data.tar.gz: 18e070f780b476c8e7ec24b6b925fd78b4bb6b1dfb1e6c9ac981dec3aa5727d157e5a54c48e578d510d694946249ec13b9df9eff23b06a22acc516812ec53a8b
6
+ metadata.gz: 0cc9c5ed39003bcd9b4553341a047f617287555e5000d356282a1f0438da6aacbb876db56c3464590bde0b43998af2969ad14715edfc2562a00d3d2557ce20e5
7
+ data.tar.gz: 0aa89dab1a24bdf943e7caec711caa1ffec58f6769a0d543a97b2a7e839c82cd9559a90e6d9e2f4e51895f862ed3cfa7bbeff19eadb43977a2081359a465dd1f
data/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
- ## [0.0.45] - 2025-01-03
1
+ ## [0.0.46] - 2025-01-03
2
2
 
3
3
  - Bumped Ruby from 3.2.2 to 3.4.1
4
4
  - Allow passing in a module when registering a "builtin" type
5
- - Fix AttributesHandlerDesugarizer bug
5
+ - Fix AttributesHandlerDesugarizer and PrimaryKeyDesugarizer bugs
6
6
 
7
7
  ## [0.0.42] - 2024-12-23
8
8
 
@@ -4,9 +4,11 @@ module Foobara
4
4
  class ExtendDetachedEntityTypeDeclaration < ExtendModelTypeDeclaration
5
5
  class PrimaryKeyDesugarizer < Desugarizer
6
6
  def applicable?(sugary_type_declaration)
7
- primary_key = sugary_type_declaration[:primary_key]
7
+ if sugary_type_declaration.is_a?(::Hash)
8
+ primary_key = sugary_type_declaration[:primary_key]
8
9
 
9
- primary_key.is_a?(::String)
10
+ primary_key.is_a?(::String)
11
+ end
10
12
  end
11
13
 
12
14
  def desugarize(sugary_type_declaration)
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.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi