multiwoven-integrations 0.32.2 → 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: 51bfe2ae51ee59ed9206443a355de5a16ca11e28c3bb2fe734b1e47f9de0453c
4
- data.tar.gz: 0b594fce51a1496dd0a08d8df98bb509ca234873a238479a9a72565c7d212f72
3
+ metadata.gz: c8252062105b7103cfc2624d70ddf31a190c09fefc7313ddb80932bb20f28a5f
4
+ data.tar.gz: a48c355b81c0edf217b9ab4280aa0dd5621a7eb41a00024d702c031175ff7248
5
5
  SHA512:
6
- metadata.gz: 5f70ba477eeaa43df25c71387dfa77b782e6911978a1508bda96e5524460f57ae0c020977fb6156e49294bb05e577b3b4d5713a2a02822d526b398dbbce69ca5
7
- data.tar.gz: 53d6ab4863f6b2abbcd21790e4f139bfcbe62adeeeffd66afef97db91688cb3c8e02df5c19d0122d88cc3cf0cf029f335c5067f7a0a3fc81b7771b864471cde8
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 {} if vector_meta_data.nil?
107
+ return {} unless vector_meta_data.is_a?(String)
108
108
 
109
- metadata = vector_meta_data.to_s
110
- metadata = metadata.gsub(/([{,]\s*)([A-Za-z_]\w*)(\s*:)/, '\1"\2"\3')
111
- metadata = metadata.gsub(/:\s*([A-Za-z_]\w*)/, ': "\1"')
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
- JSON.parse(metadata)
114
- rescue JSON::ParserError
115
- {}
115
+ metadata
116
116
  end
117
117
 
118
118
  def send_to_pinecone(pinecone_index, record)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.32.2"
5
+ VERSION = "0.32.3"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2025-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport