llamaparserb 0.2.1 → 0.2.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/llamaparserb/version.rb +1 -1
- data/lib/llamaparserb.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1761244b0d8ac8c6ee13eb10b50d3eadcb182d8e7bad24828ba70a290bc7507
|
4
|
+
data.tar.gz: cf7908683f630f17ef39b4c7e6393cb4637e350ea89c674c78a03a68b1bdf1c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bc3f4c44814c1cf63ad480882ee7f2b647af3ee8b34b46d95da7ae90c372b656c0f69fd224ba1c03d26cfa5185ee89a356f05e080169375945fc0f8d3548d8d
|
7
|
+
data.tar.gz: 5e8d6c3d234e298836f2f373d515321337d1f1ab1904a38e9dfb8a1e6076b6307e69e84d93b5fd27fd02f3f0642e19f8adc38b9de20e5d0ac87b47600b13de90
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.2.2] - 2024-11-28
|
10
|
+
### Fixed
|
11
|
+
- Fix issue with handling file path
|
12
|
+
|
9
13
|
## [0.2.1] - 2024-11-28
|
10
14
|
### Fixed
|
11
15
|
- Fix parse_file to handle files that are not on the local filesystem
|
data/lib/llamaparserb/version.rb
CHANGED
data/lib/llamaparserb.rb
CHANGED
@@ -168,10 +168,10 @@ module Llamaparserb
|
|
168
168
|
|
169
169
|
def handle_error(error, file_input)
|
170
170
|
if @options[:ignore_errors]
|
171
|
-
safe_message = if file_input.is_a?(String) &&
|
172
|
-
"
|
171
|
+
safe_message = if file_input.is_a?(String) && file_input.start_with?("/")
|
172
|
+
"file path: #{file_input}"
|
173
173
|
else
|
174
|
-
|
174
|
+
"binary data"
|
175
175
|
end
|
176
176
|
|
177
177
|
log "Error while parsing file (#{safe_message}): #{error.message}", :error
|