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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f74762f0c705aef833133df24c40412e470105162cc565bf35cb412dd35955a
4
- data.tar.gz: 3d150c7f02cd9b0ef8f41afc0908b7374fd0db42583dce8966be99a22c3f4040
3
+ metadata.gz: 5487c6de5b36f93d77a7f9af4ac1ac1c67aa17b6e11710daeed65af67d914ac0
4
+ data.tar.gz: 32d8b5ffc27e13041352ff520e3b59f9989474db5ae421844fc0c42a66386dc5
5
5
  SHA512:
6
- metadata.gz: 151c5439548ac233db5b96235e0bb910042cc9afe11904bb4db01711bc586d5bd1beb0f04664b8c45150caea3d2f61114d166e08468ca23dc0d8029003123d9f
7
- data.tar.gz: ef952813004928e82cff0a122da53941b11b28276a8fb79697098172a7b2aef6111524e43e4391288b958d87245aa6e800de58844662d927dae94103c0ca3eba
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
- # 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
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.52"
4
+ VERSION = "0.1.53"
5
5
  end
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.52
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-03 00:00:00.000000000 Z
11
+ date: 2024-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty