multiwoven-integrations 0.16.0 → 0.16.2

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: 85dd988a522326237c492ac96db325a16225f7e0ab96438fdc3b1475139e07e0
4
- data.tar.gz: b36e2addc56a428a574684f317f1b1b10f2f864ea915f31564290f607604bf24
3
+ metadata.gz: b110db8b3c603525e09b967f773f5f7e3e8bc771c5204178b7058dac8f25bf9f
4
+ data.tar.gz: e29d8c55f595c6810a052b6e47d73958413ac4ae7d6dfc1904103059716f0c12
5
5
  SHA512:
6
- metadata.gz: 5b2ea53b9847be5f4c4d2618cfe1a89376f980aefff351cce6a7b63b8f76d56f3067180fab42d2d3d1977996e8b34308f085ffcb793aa6e62c894048f6116549
7
- data.tar.gz: 9e320fedd61454ea428ff0935bf7fae584f21850f2a467b951dfc98c22b24a982f9fbf76007481416241c4b35c671bfd8a362d34236e2cb7ced1a2b5325b68ce
6
+ metadata.gz: 0f25aaf49865562a122c28d54cb4c4ed6f6619aa6054d84e7616a8211d8e4887bb8b69665aac7702c92768149e78649de4a2fcf51c0a63dc5c398745e20c37fd
7
+ data.tar.gz: 8dbf1e05b6ec0154654653696f922ff7f1765179ca73909bfd3a55d923e6569ff2430c705d202ad5727cb73c8dc70f5d31090a5bae9507ea60d495a1f8d36081
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.16.0"
5
+ VERSION = "0.16.2"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -62,8 +62,12 @@ module Multiwoven::Integrations::Source
62
62
 
63
63
  def process_response(response)
64
64
  if success?(response)
65
- data = JSON.parse(response.body)
66
- [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
65
+ begin
66
+ data = JSON.parse(response.body)
67
+ [RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
68
+ rescue JSON::ParserError
69
+ create_log_message("DATABRICKS MODEL:RUN_MODEL", "error", "parsing failed: please send a valid payload")
70
+ end
67
71
  else
68
72
  create_log_message("DATABRICKS MODEL:RUN_MODEL", "error", "request failed: #{response.body}")
69
73
  end
@@ -6,7 +6,7 @@
6
6
  "$schema": "http://json-schema.org/draft-07/schema#",
7
7
  "title": "HTTP Model Endpoint",
8
8
  "type": "object",
9
- "required": ["url_host"],
9
+ "required": ["url_host", "http_method"],
10
10
  "properties": {
11
11
  "http_method": {
12
12
  "type": "string",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiwoven-integrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin T P
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-19 00:00:00.000000000 Z
11
+ date: 2024-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport