wolf_core 1.0.81 → 1.0.83

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: d770b8b47501988698701c91ffa342324c6e43ec650c7178896f936b1a74883b
4
- data.tar.gz: ddc19851ae98030c93550ee26e752ad96ca0c777c4cf1d229546a8f2baf6eb9e
3
+ metadata.gz: c0305122ef0c94dd93b995b094dc4810a674aaf5e621e061e813f6a9b87250a4
4
+ data.tar.gz: 3ebbb00e54961470675e1de04db824b948ea393a50bb105adc851295382795e3
5
5
  SHA512:
6
- metadata.gz: db957a6364b802eba6b4cf5405ac42a101b68fd505e6abec8cb3034bc34aaf3079e92c3bdd507c48d74d55ca4465f99ffb23e2084b29c32989916f079e5eaf84
7
- data.tar.gz: 57fc200f603d2c6b2e38d63d44f4fd60b9966ad6a3f86bbed52af7e436c4d297dae869ed486ca6ad3e381295be2ea95636cf33fc1691d17abd0ef044c4ca8a9c
6
+ metadata.gz: 36b1154bd493d0c8dc0c56b85b76346c88d00bebb0f3d0b97591a6eca2389a2b98c342dbdc2b8d854e64fd9500fc4a4628f015f99819d0f3d0b68af86dc04e39
7
+ data.tar.gz: 1dc08603d0f9a15f580e242975197136c164ad3ce5b7a22c1a848caa0aaebb46ea4056baef51eebb36e346b4772d3a5ac9092a5b4a5f2951f3cba7e6e85e31ec
@@ -13,7 +13,7 @@ module WolfCore
13
13
  query: query
14
14
  )
15
15
  validate_http_response(response: response, message: error_message, error_data: error_data)
16
- response.body.dig("data", "table", "custom_values")
16
+ response.body.dig("data", "table", "custom_responses")
17
17
  end
18
18
 
19
19
  def fetch_custom_values(wolf_token:, tenant:, wolf_platform_url:, query: nil)
@@ -35,7 +35,7 @@ module WolfCore
35
35
  query: query
36
36
  )
37
37
  validate_http_response(response: response, message: error_message, error_data: error_data)
38
- response.body.dig("data", "table", "custom_value")
38
+ response.body.dig("data", "table", "custom_responses")
39
39
  end
40
40
 
41
41
  def fetch_custom_value(wolf_token:, custom_value_id:, tenant:, wolf_platform_url:, query: nil)
@@ -105,7 +105,7 @@ module WolfCore
105
105
  query: query
106
106
  )
107
107
  validate_http_response(response: response, message: error_message, error_data: error_data)
108
- custom_values = response.body.dig("data", "table", "custom_values")
108
+ custom_values = response.body.dig("data", "table", "custom_responses")
109
109
 
110
110
  response = if custom_values&.any?
111
111
  operation_type = :update
@@ -145,7 +145,7 @@ module WolfCore
145
145
 
146
146
  return response unless response_success?(response)
147
147
 
148
- custom_values = response.body.dig("data", "table", "custom_values")
148
+ custom_values = response.body.dig("data", "table", "custom_responses")
149
149
 
150
150
  response = if custom_values&.any?
151
151
  operation_type = :update
@@ -18,14 +18,14 @@ module WolfCore
18
18
  end
19
19
  end
20
20
 
21
- def safe_http_get(url:, headers: {}, query: nil, error_message: nil, title: nil, timeout: nil)
21
+ def safe_http_get(url:, headers: {}, query: nil, error_message: nil, title: nil, timeout: nil, error_data: nil)
22
22
  response = http_get(url: url, headers: headers, query: query, timeout: timeout)
23
23
  response = parse_http_response(response)
24
24
 
25
25
  log_object response, title: title if title.present?
26
26
 
27
27
  error_message ||= "Error on safe_http_get"
28
- validate_http_response(response: response, message: error_message)
28
+ validate_http_response(response: response, message: error_message, error_data: error_data)
29
29
 
30
30
  response
31
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.81"
4
+ VERSION = "1.0.83"
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.81
4
+ version: 1.0.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-04 00:00:00.000000000 Z
11
+ date: 2025-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty