foobara 0.0.46 → 0.0.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -2
- data/projects/detached_entity/src/extensions/type_declarations/handlers/extend_detached_entity_type_declaration/primary_key_desugarizer.rb +2 -4
- data/projects/model/src/extensions/type_declarations/handlers/extend_model_type_declaration/attributes_handler_desugarizer.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b307418792bdb9ffc486a5f7280d67838100daac32a7826277612121612304a9
|
4
|
+
data.tar.gz: e6e6c541731cadc39c9c64c9f759c3d347e291fa9731351d33248d9b27ec8de5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d76ba08fc4bc43e51a3c99ec9a780da84e57e9b15d6b29b1782e916ace9adbc198f6e1723852232e4c04766a5979c367bdc1dae6ec020ec3d5d742c61bb4a667
|
7
|
+
data.tar.gz: 95a5ae616494aa957e57e465700a7330b1224bf2d4bb43482f5c13e35a5cabfa63b74e239492136a0e1d75f44c578b0b9a02abc7de64a0cadfd8053769de9341
|
data/CHANGELOG.md
CHANGED
@@ -4,11 +4,9 @@ module Foobara
|
|
4
4
|
class ExtendDetachedEntityTypeDeclaration < ExtendModelTypeDeclaration
|
5
5
|
class PrimaryKeyDesugarizer < Desugarizer
|
6
6
|
def applicable?(sugary_type_declaration)
|
7
|
-
|
8
|
-
primary_key = sugary_type_declaration[:primary_key]
|
7
|
+
primary_key = sugary_type_declaration[:primary_key]
|
9
8
|
|
10
|
-
|
11
|
-
end
|
9
|
+
primary_key.is_a?(::String)
|
12
10
|
end
|
13
11
|
|
14
12
|
def desugarize(sugary_type_declaration)
|
@@ -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
|
7
|
+
sugary_type_declaration[:type] == expected_type_symbol
|
8
8
|
end
|
9
9
|
|
10
10
|
def expected_type_symbol
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-04 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: bigdecimal
|