wolf_core 1.0.36 → 1.0.38

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: 4f57d0c483e07ed2323e326fd4db93e4f1dff8c79c0889d7e0541fa5ebe83045
4
- data.tar.gz: f5ce5d894fc84209de632edaecf55d52d28d5b57650b9130b0f0fad668bd0321
3
+ metadata.gz: 8d5650824d55efc12a8127874b262a4e7a3d4b0304d6975e7e967f458bcfa5d9
4
+ data.tar.gz: 1b29e9db43c0e24a1edf039c67942ab9a782e8ea26659f406fe33ecec6637902
5
5
  SHA512:
6
- metadata.gz: 729025fc0a87a12df7f591b01c278b5dce3b78f7968270965f5f8e83153a1d25524ceab078f3b1f84237a4a71a586d661e49e246a94e4c607a0bfa8b6b24c5bb
7
- data.tar.gz: 8c545e267c7ef1b4d3e121807727326790b7255b9c8e11d19de8adbc395291d82bd9255b421a60624f8906570642777d431b2c40c2d48292e0f86ea7be4d10ef
6
+ metadata.gz: c336ac3176d231e35724164d0975679b7f29405a16b78fe76ef5e8cad8875f6b37f9f02c6a0f093d21682c2b1879393ecfd4b368f35a6c06aff3b798b905a53e
7
+ data.tar.gz: a0acdf3e1f333e39a29006cbefb498c16cb1da8834791d148ef98af959c33aa5f5f6aba274600be8d9513f0f8777a2ad7f12877a27fb78a53e5e3ffb8a2404c8
@@ -2,6 +2,7 @@ module WolfCore
2
2
  module Barton
3
3
  module Parsing
4
4
  def split_address(address_string)
5
+ address_string = address_string&.dup
5
6
  address_string ||= ''
6
7
  address = { street: nil, city: nil, state: nil, zip: nil }
7
8
  city_and_state_regex_found = false
@@ -45,11 +45,16 @@ module WolfCore
45
45
  end
46
46
  end
47
47
 
48
- def build_body_from_params(params:, id_key:)
49
- {
48
+ def build_body_from_params(params:, id_key:, include_changes: false)
49
+ body = {
50
50
  event_name: get_event_name(params: params),
51
51
  id_key => get_object_id(params: params)
52
52
  }
53
+ if include_changes
54
+ payload = get_payload(params: params)
55
+ body[:changes] = payload&.dig('changes')
56
+ end
57
+ body
53
58
  end
54
59
 
55
60
  def get_object_id(params:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.36"
4
+ VERSION = "1.0.38"
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: 1.0.36
4
+ version: 1.0.38
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-11-19 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty