wolf_core 0.1.52 → 0.1.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/infrastructure/fkm_operations.rb +12 -12
- data/lib/wolf_core/version.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: 5487c6de5b36f93d77a7f9af4ac1ac1c67aa17b6e11710daeed65af67d914ac0
|
4
|
+
data.tar.gz: 32d8b5ffc27e13041352ff520e3b59f9989474db5ae421844fc0c42a66386dc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb3894ccd6ce53137406f74f91c4363f4454629b474e87bbf6658c8835e1ebdec72ed4cf6350d3884e5508718fcc9b9ab80db109d8b27b89c184fa006b76d50
|
7
|
+
data.tar.gz: 845052a08227f95d3b7094a06b81e59b9197978957d126be8b4b2341667842be85002422b579d67ffb3bfc29a1967814cee2c623d515fdf34b740188c0fc77ba
|
@@ -49,17 +49,17 @@ module WolfCore
|
|
49
49
|
parse_http_response(response).body
|
50
50
|
end
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
52
|
+
def find_or_create_foreign_key(tenant:, source:, source_id:, destination:, destination_id:)
|
53
|
+
destination_id = get_foreign_key_destination_id(
|
54
|
+
tenant: tenant, source: source, source_id: source_id,
|
55
|
+
destination: destination
|
56
|
+
)
|
57
|
+
return Result.success(data: { operation: :find }) if destination_id.present?
|
58
|
+
create_foreign_key(
|
59
|
+
tenant: tenant, source: source, source_id: source_id,
|
60
|
+
destination: destination, destination_id: destination_id
|
61
|
+
)
|
62
|
+
Result.success(data: { operation: :create })
|
63
|
+
end
|
64
64
|
end
|
65
65
|
end
|
data/lib/wolf_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wolf_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.53
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|