wolf_core 0.1.88 → 0.1.89

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: cbe3c863a91ae93dcd63e3fa7418782556064e696600aa48d5298dfc8a9b35ba
4
- data.tar.gz: 5d796c39dd28131902b4f4669648cae3d19e4c4dcff71beaaf48be741c19d89b
3
+ metadata.gz: 690f4bc94dfdee6a9f42a74af9ed0432bd5e155f77d4b803c7b5c56f55c7e3a1
4
+ data.tar.gz: b5199946dbc987fe9bceb6df744eba393fff351181ac076b539a3b5c57650945
5
5
  SHA512:
6
- metadata.gz: a2f8391ca9983d676f29b329383f37aca723c934f230a1e6358727fc48e9bba72677b4cf4d015eec936a1b338952eccdbff6063e47a3fc4b0a43fc3c97059811
7
- data.tar.gz: 759966a7c6696865bcaf2d2dfb6fcfca683ec4503e1d12804e152a6e25419e68636982443342e3442f666b653e5103db4be699fafcb19291e6ad78122c41939d
6
+ metadata.gz: ab25e0389cae18a747e0146c46797d61ab2f2a73a7d770409dfcc42f4c08e1f3df5b58ff58d5ddf72dc007625c1a4e5d8d1cb41e9e7bca48a2a89e71fafb987e
7
+ data.tar.gz: ab6b4a53790070d05181feab31489ba9571811ed7ec0a2db4ce3f1a975f1a53b347ed87f95ecf81e3d03f70747ae8821d0cb0bfa6ce46aa6638e2e5c237f6792
@@ -0,0 +1,19 @@
1
+ module WolfCore
2
+ module Integrations
3
+ module ChangeDetection
4
+ def get_changed_custom_requirement_ids(payload)
5
+ changed_custom_requirement_ids = []
6
+ if payload['changes'].any?
7
+ changed_custom_values = payload.dig('changes', 'custom_values')
8
+ changed_custom_requirement_ids = if changed_custom_values.present?
9
+ changed_custom_values.map do |changed_custom_value|
10
+ changed_custom_value['custom_requirement_id'].to_s
11
+ end
12
+ else
13
+ [payload.dig('attributes', 'custom_requirement_id').to_s]
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.88"
4
+ VERSION = "0.1.89"
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.88
4
+ version: 0.1.89
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-09-18 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -93,6 +93,7 @@ files:
93
93
  - lib/wolf_core/application/barton/parsing.rb
94
94
  - lib/wolf_core/application/barton/routing.rb
95
95
  - lib/wolf_core/application/exception_operations.rb
96
+ - lib/wolf_core/application/integrations/change_detection.rb
96
97
  - lib/wolf_core/application/salesforce_oauth_service.rb
97
98
  - lib/wolf_core/application/service_exception.rb
98
99
  - lib/wolf_core/infrastructure/fkm_operations.rb