multiwoven-integrations 0.33.2 → 0.33.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: fcceabc91eee757b5d5d7af2e968d35133415ee1dad963e3bce4191662b55fa2
|
4
|
+
data.tar.gz: 961c82bdd27327e703d36ab7997b2ccc982d267197932b0184f5375548b4d3bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57b6f0c56efd2657d09bd7ca84bca99f9be0d0d05a14e40f7f86a1dad067241394baf23598e0f7ff364cc2303176ae4723a6e13581c53a06bc1d82d4d5bfc5c6
|
7
|
+
data.tar.gz: b961f9ad1cad9a9e200d286f0a193976a25add771ad475b743021ec504687b6fd853d4adac63faff28864ede906d39043cfb1c4f9bb60f76f4229320ee4cd128
|
@@ -76,13 +76,12 @@ module Multiwoven::Integrations::Source
|
|
76
76
|
analysis = textract.analyze_expense(document: { bytes: byte_stream.read })
|
77
77
|
invoice = extract_invoice_data(invoice, analysis)
|
78
78
|
rescue Aws::Textract::Errors::UnsupportedDocumentException => e
|
79
|
-
invoice[
|
79
|
+
invoice["exception"] = e.message if invoice.key?("exception")
|
80
80
|
handle_exception(e, {
|
81
81
|
context: "GOOGLE_DRIVE:READ:EXTRACT:EXCEPTION",
|
82
82
|
type: "error"
|
83
83
|
})
|
84
84
|
rescue StandardError => e
|
85
|
-
invoice[:exception] = e.message if invoice.key?(:exception)
|
86
85
|
handle_exception(e, {
|
87
86
|
context: "GOOGLE_DRIVE:READ:EXTRACT:EXCEPTION",
|
88
87
|
type: "error"
|
@@ -145,7 +144,7 @@ module Multiwoven::Integrations::Source
|
|
145
144
|
|
146
145
|
def select_columns(query)
|
147
146
|
columns = query.match(/SELECT (.*) FROM/)[1]
|
148
|
-
all_columns = %w[line_items id file_name] + TEXTRACT_SUMMARY_FIELDS.keys
|
147
|
+
all_columns = %w[line_items id file_name exception] + TEXTRACT_SUMMARY_FIELDS.keys
|
149
148
|
@options[:fields] = all_columns if @options[:fields].empty?
|
150
149
|
|
151
150
|
return @options[:fields] if columns.include?("*")
|
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.33.
|
4
|
+
version: 0.33.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-08-
|
11
|
+
date: 2025-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|