kreuzberg 4.5.1-aarch64-linux → 4.5.2-aarch64-linux
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/Gemfile.lock +4 -4
- data/README.md +1 -1
- data/lib/kreuzberg/config.rb +20 -5
- data/lib/kreuzberg/version.rb +1 -1
- data/lib/kreuzberg_rb.so +0 -0
- data/sig/kreuzberg.rbs +5 -1
- 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: 5d37d9bc188b071a5a193db3a4cf610caaff6e8b9a84ef04bebfbf2abd5f7f16
|
|
4
|
+
data.tar.gz: 7d568f4f6b5e8e1be95ac814b55974d348a460c1ab4949aaafe3b0de9a3d9dbe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d5a0a4d9e6917ef0ac38e319410752e0032de7742a167a2a34e5c48356f1af145d1a2f56f0d7d6d28fef439c4f82710655116f03f1077c851f521e5fc4ba09c
|
|
7
|
+
data.tar.gz: '01898e03048b285ce8347ec975041bea2e633fed829abeaf8d1842fcc5137d8dacecf54f971ddc5a9a61261dc45ac30de3c408f8bab696af4597a648e0683a31'
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
kreuzberg (4.5.
|
|
4
|
+
kreuzberg (4.5.2)
|
|
5
5
|
rb_sys (~> 0.9.119)
|
|
6
6
|
sorbet-runtime (~> 0.5)
|
|
7
7
|
|
|
@@ -134,7 +134,7 @@ GEM
|
|
|
134
134
|
rubocop (~> 1.81)
|
|
135
135
|
ruby-progressbar (1.13.0)
|
|
136
136
|
securerandom (0.4.1)
|
|
137
|
-
sorbet-runtime (0.6.
|
|
137
|
+
sorbet-runtime (0.6.13055)
|
|
138
138
|
steep (1.10.0)
|
|
139
139
|
activesupport (>= 5.1)
|
|
140
140
|
concurrent-ruby (>= 1.1.10)
|
|
@@ -222,7 +222,7 @@ CHECKSUMS
|
|
|
222
222
|
io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
|
|
223
223
|
json (2.19.2) sha256=e7e1bd318b2c37c4ceee2444841c86539bc462e81f40d134cf97826cb14e83cf
|
|
224
224
|
json-schema (6.2.0) sha256=e8bff46ed845a22c1ab2bd0d7eccf831c01fe23bb3920caa4c74db4306813666
|
|
225
|
-
kreuzberg (4.5.
|
|
225
|
+
kreuzberg (4.5.2)
|
|
226
226
|
language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
|
|
227
227
|
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
228
228
|
listen (3.10.0) sha256=c6e182db62143aeccc2e1960033bebe7445309c7272061979bb098d03760c9d2
|
|
@@ -259,7 +259,7 @@ CHECKSUMS
|
|
|
259
259
|
rubocop-rspec (3.9.0) sha256=8fa70a3619408237d789aeecfb9beef40576acc855173e60939d63332fdb55e2
|
|
260
260
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
261
261
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
262
|
-
sorbet-runtime (0.6.
|
|
262
|
+
sorbet-runtime (0.6.13055) sha256=c8ae8c81310e0a28d290b11f44ddca59659b7d7f13752c0ef5d16964bbb84d18
|
|
263
263
|
steep (1.10.0) sha256=1b295b55f9aaff1b8d3ee42453ee55bc2a1078fda0268f288edb2dc014f4d7d1
|
|
264
264
|
strscan (3.1.7) sha256=5f76462b94a3ea50b44973225b7d75b2cb96d4e1bee9ef1319b99ca117b72c8c
|
|
265
265
|
terminal-table (4.0.0) sha256=f504793203f8251b2ea7c7068333053f0beeea26093ec9962e62ea79f94301d2
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<img src="https://img.shields.io/maven-central/v/dev.kreuzberg/kreuzberg?label=Java&color=007ec6" alt="Java">
|
|
23
23
|
</a>
|
|
24
24
|
<a href="https://github.com/kreuzberg-dev/kreuzberg/releases">
|
|
25
|
-
<img src="https://img.shields.io/github/v/tag/kreuzberg-dev/kreuzberg?label=Go&color=007ec6&filter=v4.5.
|
|
25
|
+
<img src="https://img.shields.io/github/v/tag/kreuzberg-dev/kreuzberg?label=Go&color=007ec6&filter=v4.5.2" alt="Go">
|
|
26
26
|
</a>
|
|
27
27
|
<a href="https://www.nuget.org/packages/Kreuzberg/">
|
|
28
28
|
<img src="https://img.shields.io/nuget/v/Kreuzberg?label=C%23&color=007ec6" alt="C#">
|
data/lib/kreuzberg/config.rb
CHANGED
|
@@ -930,7 +930,8 @@ module Kreuzberg
|
|
|
930
930
|
:images, :postprocessor,
|
|
931
931
|
:token_reduction, :keywords, :html_options, :pages,
|
|
932
932
|
:max_concurrent_extractions, :output_format, :result_format,
|
|
933
|
-
:security_limits, :layout, :concurrency
|
|
933
|
+
:security_limits, :layout, :concurrency,
|
|
934
|
+
:cache_namespace, :cache_ttl_secs
|
|
934
935
|
|
|
935
936
|
# Alias for backward compatibility - image_extraction is the canonical name
|
|
936
937
|
alias image_extraction images
|
|
@@ -955,7 +956,7 @@ module Kreuzberg
|
|
|
955
956
|
language_detection pdf_options image_extraction
|
|
956
957
|
postprocessor token_reduction keywords html_options pages
|
|
957
958
|
max_concurrent_extractions output_format result_format
|
|
958
|
-
security_limits layout concurrency
|
|
959
|
+
security_limits layout concurrency cache_namespace cache_ttl_secs
|
|
959
960
|
].freeze
|
|
960
961
|
|
|
961
962
|
# Aliases for backward compatibility
|
|
@@ -1032,7 +1033,9 @@ module Kreuzberg
|
|
|
1032
1033
|
result_format: nil,
|
|
1033
1034
|
security_limits: nil,
|
|
1034
1035
|
layout: nil,
|
|
1035
|
-
concurrency: nil
|
|
1036
|
+
concurrency: nil,
|
|
1037
|
+
cache_namespace: nil,
|
|
1038
|
+
cache_ttl_secs: nil)
|
|
1036
1039
|
kwargs = {
|
|
1037
1040
|
use_cache: use_cache, enable_quality_processing: enable_quality_processing,
|
|
1038
1041
|
force_ocr: force_ocr, include_document_structure: include_document_structure,
|
|
@@ -1043,7 +1046,9 @@ module Kreuzberg
|
|
|
1043
1046
|
pages: pages, max_concurrent_extractions: max_concurrent_extractions,
|
|
1044
1047
|
output_format: output_format, result_format: result_format,
|
|
1045
1048
|
security_limits: security_limits, layout: layout,
|
|
1046
|
-
concurrency: concurrency
|
|
1049
|
+
concurrency: concurrency,
|
|
1050
|
+
cache_namespace: cache_namespace,
|
|
1051
|
+
cache_ttl_secs: cache_ttl_secs
|
|
1047
1052
|
}
|
|
1048
1053
|
extracted = extract_from_hash(hash, kwargs)
|
|
1049
1054
|
|
|
@@ -1077,6 +1082,8 @@ module Kreuzberg
|
|
|
1077
1082
|
@max_concurrent_extractions = params[:max_concurrent_extractions]&.to_i
|
|
1078
1083
|
@output_format = validate_output_format(params[:output_format])
|
|
1079
1084
|
@result_format = validate_result_format(params[:result_format])
|
|
1085
|
+
@cache_namespace = params[:cache_namespace]
|
|
1086
|
+
@cache_ttl_secs = params[:cache_ttl_secs]&.to_i
|
|
1080
1087
|
@security_limits = params[:security_limits]
|
|
1081
1088
|
end
|
|
1082
1089
|
|
|
@@ -1112,7 +1119,9 @@ module Kreuzberg
|
|
|
1112
1119
|
include_document_structure: @include_document_structure,
|
|
1113
1120
|
max_concurrent_extractions: @max_concurrent_extractions,
|
|
1114
1121
|
output_format: @output_format,
|
|
1115
|
-
result_format: @result_format
|
|
1122
|
+
result_format: @result_format,
|
|
1123
|
+
cache_namespace: @cache_namespace,
|
|
1124
|
+
cache_ttl_secs: @cache_ttl_secs
|
|
1116
1125
|
}
|
|
1117
1126
|
end
|
|
1118
1127
|
|
|
@@ -1271,6 +1280,10 @@ module Kreuzberg
|
|
|
1271
1280
|
@output_format = validate_output_format(value)
|
|
1272
1281
|
when :result_format
|
|
1273
1282
|
@result_format = validate_result_format(value)
|
|
1283
|
+
when :cache_namespace
|
|
1284
|
+
@cache_namespace = value
|
|
1285
|
+
when :cache_ttl_secs
|
|
1286
|
+
@cache_ttl_secs = value&.to_i
|
|
1274
1287
|
else
|
|
1275
1288
|
raise ArgumentError, "Unknown configuration key: #{key}"
|
|
1276
1289
|
end
|
|
@@ -1352,6 +1365,8 @@ module Kreuzberg
|
|
|
1352
1365
|
@max_concurrent_extractions = merged.max_concurrent_extractions
|
|
1353
1366
|
@output_format = merged.output_format
|
|
1354
1367
|
@result_format = merged.result_format
|
|
1368
|
+
@cache_namespace = merged.cache_namespace
|
|
1369
|
+
@cache_ttl_secs = merged.cache_ttl_secs
|
|
1355
1370
|
end
|
|
1356
1371
|
end
|
|
1357
1372
|
end
|
data/lib/kreuzberg/version.rb
CHANGED
data/lib/kreuzberg_rb.so
CHANGED
|
Binary file
|
data/sig/kreuzberg.rbs
CHANGED
|
@@ -478,6 +478,8 @@ module Kreuzberg
|
|
|
478
478
|
class Extraction
|
|
479
479
|
attr_reader use_cache: bool
|
|
480
480
|
attr_reader enable_quality_processing: bool
|
|
481
|
+
attr_reader cache_namespace: String?
|
|
482
|
+
attr_reader cache_ttl_secs: Integer?
|
|
481
483
|
attr_reader force_ocr: bool
|
|
482
484
|
attr_reader include_document_structure: bool
|
|
483
485
|
attr_reader ocr: OCR?
|
|
@@ -520,7 +522,9 @@ module Kreuzberg
|
|
|
520
522
|
?concurrency: (Concurrency | Hash[Symbol, untyped])?,
|
|
521
523
|
?max_concurrent_extractions: Integer?,
|
|
522
524
|
?output_format: String?,
|
|
523
|
-
?result_format: String
|
|
525
|
+
?result_format: String?,
|
|
526
|
+
?cache_namespace: String?,
|
|
527
|
+
?cache_ttl_secs: Integer?
|
|
524
528
|
) -> void
|
|
525
529
|
def to_h: () -> Hash[Symbol, untyped]
|
|
526
530
|
def to_json: (*untyped) -> String
|