multiwoven-integrations 0.32.1 → 0.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8252062105b7103cfc2624d70ddf31a190c09fefc7313ddb80932bb20f28a5f
|
4
|
+
data.tar.gz: a48c355b81c0edf217b9ab4280aa0dd5621a7eb41a00024d702c031175ff7248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d38f8aaeb8bcb6ed802fcca41945370e171c60f81dfa058688ac877aaf5b94ecd522b3f0f903563c6f56347d66d653fcce940297db5a93a90fa95e9efeb15900
|
7
|
+
data.tar.gz: 975dd4a8cc2b424f8cd7098c06886c5550899130d8c8dd8ad46de10166f34063f492b8f5e687f452d1776ff888d7104d95cb1fb653dc17e00a9feb3adde921df
|
@@ -104,15 +104,15 @@ module Multiwoven::Integrations::Destination
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def parse_meta_data(vector_meta_data)
|
107
|
-
return {}
|
107
|
+
return {} unless vector_meta_data.is_a?(String)
|
108
108
|
|
109
|
-
metadata =
|
110
|
-
|
111
|
-
|
109
|
+
metadata = {}
|
110
|
+
# Use regex to parse the metadata string into a hash
|
111
|
+
vector_meta_data.scan(/([A-Za-z]+):\s*(.*?)(?=(?:\n?[A-Za-z]+:)|\z)/m).each do |key, value|
|
112
|
+
metadata[key.strip] = value.strip
|
113
|
+
end
|
112
114
|
|
113
|
-
|
114
|
-
rescue JSON::ParserError
|
115
|
-
{}
|
115
|
+
metadata
|
116
116
|
end
|
117
117
|
|
118
118
|
def send_to_pinecone(pinecone_index, record)
|
@@ -73,6 +73,10 @@ module Multiwoven::Integrations::Source
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def create_connection(connection_config)
|
76
|
+
credentials = connection_config["credentials_json"]
|
77
|
+
|
78
|
+
credentials["private_key"] = credentials["private_key"].gsub("\\n", "\n") if credentials["private_key"].include?("\\n")
|
79
|
+
|
76
80
|
Google::Cloud::Bigquery.new(
|
77
81
|
project: connection_config["project_id"],
|
78
82
|
credentials: connection_config["credentials_json"]
|
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.32.
|
4
|
+
version: 0.32.3
|
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: 2025-07-
|
11
|
+
date: 2025-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|