kreuzberg 4.5.2-aarch64-linux → 4.6.0-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d37d9bc188b071a5a193db3a4cf610caaff6e8b9a84ef04bebfbf2abd5f7f16
4
- data.tar.gz: 7d568f4f6b5e8e1be95ac814b55974d348a460c1ab4949aaafe3b0de9a3d9dbe
3
+ metadata.gz: e120139c5153d954f686166a3c23f0a3c64a24dcbbcf2ff1a9d17abeafbdc22d
4
+ data.tar.gz: a17475f255eceefe8a6c0702866cf00c401cdbc294c8b5eace4cae78b9401161
5
5
  SHA512:
6
- metadata.gz: 9d5a0a4d9e6917ef0ac38e319410752e0032de7742a167a2a34e5c48356f1af145d1a2f56f0d7d6d28fef439c4f82710655116f03f1077c851f521e5fc4ba09c
7
- data.tar.gz: '01898e03048b285ce8347ec975041bea2e633fed829abeaf8d1842fcc5137d8dacecf54f971ddc5a9a61261dc45ac30de3c408f8bab696af4597a648e0683a31'
6
+ metadata.gz: '01525768eda28284eca9d077377d052d6fb90834282a26a73d8f8b2c3dbfcbad573bb71c51bbf0679329e59f205cd097f23080bdb10a7ad0432d700092aa7501'
7
+ data.tar.gz: ef96711a4c445cb7487d253731cfd697a0dd179f675efe8d3c9d2a6f6033b2257ada11f4a343cf0cf41a2160e814b3565e4160a0cf3f0a24f08d1765d59e6107
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.2" alt="Go">
25
+ <img src="https://img.shields.io/github/v/tag/kreuzberg-dev/kreuzberg?label=Go&color=007ec6&filter=v4.6.0" 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#">
@@ -61,7 +61,7 @@
61
61
  </div>
62
62
 
63
63
 
64
- Extract text, tables, images, and metadata from 88+ file formats including PDF, Office documents, and images. Ruby bindings with idiomatic Ruby API and native performance.
64
+ Extract text, tables, images, and metadata from 91+ file formats including PDF, Office documents, and images. Ruby bindings with idiomatic Ruby API and native performance.
65
65
 
66
66
 
67
67
  ## Installation
@@ -211,9 +211,9 @@ puts "Processing time: #{result.metadata&.dig('processing_time')}ms"
211
211
 
212
212
  ## Features
213
213
 
214
- ### Supported File Formats (88+)
214
+ ### Supported File Formats (91+)
215
215
 
216
- 88+ file formats across 8 major categories with intelligent format detection and comprehensive metadata extraction.
216
+ 91+ file formats across 8 major categories with intelligent format detection and comprehensive metadata extraction.
217
217
 
218
218
  #### Office Documents
219
219
 
@@ -850,19 +850,21 @@ module Kreuzberg
850
850
  # )
851
851
  #
852
852
  class LayoutDetection
853
- attr_reader :preset, :confidence_threshold, :apply_heuristics
853
+ attr_reader :preset, :confidence_threshold, :apply_heuristics, :table_model
854
854
 
855
- def initialize(preset: 'fast', confidence_threshold: nil, apply_heuristics: true)
855
+ def initialize(preset: 'fast', confidence_threshold: nil, apply_heuristics: true, table_model: nil)
856
856
  @preset = preset.to_s
857
857
  @confidence_threshold = confidence_threshold&.to_f
858
858
  @apply_heuristics = apply_heuristics ? true : false
859
+ @table_model = table_model&.to_s
859
860
  end
860
861
 
861
862
  def to_h
862
863
  {
863
864
  preset: @preset,
864
865
  confidence_threshold: @confidence_threshold,
865
- apply_heuristics: @apply_heuristics
866
+ apply_heuristics: @apply_heuristics,
867
+ table_model: @table_model
866
868
  }.compact
867
869
  end
868
870
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kreuzberg
4
- VERSION = '4.5.2'
4
+ VERSION = '4.6.0'
5
5
  end
data/lib/kreuzberg_rb.so CHANGED
Binary file
data/sig/kreuzberg.rbs CHANGED
@@ -463,8 +463,9 @@ module Kreuzberg
463
463
  attr_reader preset: String
464
464
  attr_reader confidence_threshold: Float?
465
465
  attr_reader apply_heuristics: bool
466
+ attr_reader table_model: String?
466
467
 
467
- def initialize: (?preset: String, ?confidence_threshold: Float?, ?apply_heuristics: bool) -> void
468
+ def initialize: (?preset: String, ?confidence_threshold: Float?, ?apply_heuristics: bool, ?table_model: String?) -> void
468
469
  def to_h: () -> Hash[Symbol, untyped]
469
470
  end
470
471
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kreuzberg
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.2
4
+ version: 4.6.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Na'aman Hirschfeld
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-21 00:00:00.000000000 Z
11
+ date: 2026-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -175,18 +175,7 @@ executables: []
175
175
  extensions: []
176
176
  extra_rdoc_files: []
177
177
  files:
178
- - ".gitignore"
179
- - ".rspec"
180
- - ".rubocop.yaml"
181
- - ".rubocop.yml"
182
- - Gemfile
183
- - Gemfile.lock
184
178
  - README.md
185
- - Rakefile
186
- - Steepfile
187
- - examples/async_patterns.rb
188
- - extconf.rb
189
- - kreuzberg.gemspec
190
179
  - lib/kreuzberg.rb
191
180
  - lib/kreuzberg/api_proxy.rb
192
181
  - lib/kreuzberg/cache_api.rb
@@ -232,9 +221,6 @@ files:
232
221
  - spec/binding/plugins/postprocessor_spec.rb
233
222
  - spec/binding/plugins/validator_spec.rb
234
223
  - spec/binding/tables_spec.rb
235
- - spec/fixtures/config.toml
236
- - spec/fixtures/config.yaml
237
- - spec/fixtures/invalid_config.toml
238
224
  - spec/serialization_spec.rb
239
225
  - spec/smoke/package_spec.rb
240
226
  - spec/spec_helper.rb
@@ -254,7 +240,6 @@ files:
254
240
  - spec/unit/config/postprocessor_config_spec.rb
255
241
  - spec/unit/config/tesseract_config_spec.rb
256
242
  - spec/unit/config/token_reduction_config_spec.rb
257
- - test/metadata_types_test.rb
258
243
  homepage: https://github.com/kreuzberg-dev/kreuzberg
259
244
  licenses:
260
245
  - MIT
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- tmp/
2
- lib/*.bundle
3
- lib/*.dylib
4
- lib/*.so
5
- lib/*.dll
6
- lib/*.dylib
7
- lib/*.so
8
- lib/*.dll
9
-
10
- # Vendor directory for local development (symlink to ../../crates/kreuzberg)
11
- # In CI, this is replaced by the actual vendored crate files
12
- # Exception: vendor/rb-sys is patched and committed
13
- !vendor/rb-sys/
14
- vendor/
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --require spec_helper
2
- --format documentation
3
- --color
data/.rubocop.yaml DELETED
@@ -1 +0,0 @@
1
- inherit_from: .rubocop.yml
data/.rubocop.yml DELETED
@@ -1,543 +0,0 @@
1
-
2
- plugins:
3
- - rubocop-performance
4
- - rubocop-rspec
5
-
6
- AllCops:
7
- TargetRubyVersion: 3.2
8
- NewCops: enable
9
- SuggestExtensions: false
10
- Exclude:
11
- - 'vendor/**/*'
12
- - 'tmp/**/*'
13
- - 'lib/**/*.bundle'
14
- - 'ext/**/*'
15
-
16
- Style/StringLiterals:
17
- Enabled: true
18
- EnforcedStyle: single_quotes
19
-
20
- Style/StringLiteralsInInterpolation:
21
- Enabled: true
22
- EnforcedStyle: single_quotes
23
-
24
- Style/FrozenStringLiteralComment:
25
- Enabled: true
26
- EnforcedStyle: always
27
-
28
- Style/Documentation:
29
- Enabled: false
30
-
31
- Layout/LineLength:
32
- Max: 120
33
- AllowedPatterns:
34
- - '\A\s*#'
35
- Exclude:
36
- - 'spec/**/*'
37
-
38
- Metrics/BlockLength:
39
- Enabled: true
40
- Max: 350
41
- CountComments: false
42
- CountAsOne: []
43
-
44
- Metrics/MethodLength:
45
- Max: 18
46
- Exclude:
47
- - 'spec/**/*'
48
- - 'examples/**/*'
49
-
50
- Metrics/AbcSize:
51
- Max: 20
52
- Exclude:
53
- - 'spec/**/*'
54
- - 'examples/**/*'
55
- - 'lib/kreuzberg/config.rb'
56
-
57
- Naming/FileName:
58
- Enabled: true
59
- Exclude:
60
- - 'Gemfile'
61
- - 'Rakefile'
62
-
63
- RSpec/SpecFilePathFormat:
64
- Enabled: false
65
- RSpec/SpecFilePathSuffix:
66
- Enabled: false
67
-
68
- RSpec/PendingWithoutReason:
69
- Enabled: false
70
-
71
- RSpec/LeakyConstantDeclaration:
72
- Enabled: false
73
-
74
- RSpec/UnspecifiedException:
75
- Enabled: false
76
-
77
- Lint/ConstantDefinitionInBlock:
78
- Enabled: false
79
- Exclude:
80
- - 'spec/**/*'
81
-
82
- RSpec/InstanceVariable:
83
- Enabled: false
84
-
85
- Gemspec/DevelopmentDependencies:
86
- Enabled: false
87
-
88
- Metrics/ParameterLists:
89
- Max: 14
90
- Exclude:
91
- - 'lib/kreuzberg/config.rb'
92
-
93
- Metrics/CyclomaticComplexity:
94
- Max: 7
95
- Exclude:
96
- - 'lib/kreuzberg/config.rb'
97
-
98
- Metrics/PerceivedComplexity:
99
- Max: 12
100
- Exclude:
101
- - 'lib/kreuzberg/config.rb'
102
-
103
- Metrics/ClassLength:
104
- Exclude:
105
- - 'lib/kreuzberg/config.rb'
106
-
107
- RSpec/RepeatedExampleGroupBody:
108
- Enabled: false
109
-
110
- RSpec/DescribeClass:
111
- Enabled: false
112
-
113
- RSpec/PredicateMatcher:
114
- Enabled: false
115
-
116
- Gemspec/AddRuntimeDependency:
117
- Enabled: true
118
-
119
- Gemspec/AttributeAssignment:
120
- Enabled: true
121
-
122
- Gemspec/DeprecatedAttributeAssignment:
123
- Enabled: true
124
-
125
- Gemspec/RequireMFA:
126
- Enabled: false
127
-
128
- Layout/EmptyLinesAfterModuleInclusion:
129
- Enabled: true
130
-
131
- Layout/LineContinuationLeadingSpace:
132
- Enabled: true
133
-
134
- Layout/LineContinuationSpacing:
135
- Enabled: true
136
-
137
- Layout/LineEndStringConcatenationIndentation:
138
- Enabled: true
139
-
140
- Layout/SpaceBeforeBrackets:
141
- Enabled: true
142
-
143
- Lint/AmbiguousAssignment:
144
- Enabled: true
145
-
146
- Lint/AmbiguousOperatorPrecedence:
147
- Enabled: true
148
-
149
- Lint/AmbiguousRange:
150
- Enabled: true
151
-
152
- Lint/ArrayLiteralInRegexp:
153
- Enabled: true
154
-
155
- Lint/ConstantOverwrittenInRescue:
156
- Enabled: true
157
-
158
- Lint/ConstantReassignment:
159
- Enabled: true
160
-
161
- Lint/CopDirectiveSyntax:
162
- Enabled: true
163
-
164
- Lint/DeprecatedConstants:
165
- Enabled: true
166
-
167
- Lint/DuplicateBranch:
168
- Enabled: true
169
-
170
- Lint/DuplicateMagicComment:
171
- Enabled: true
172
-
173
- Lint/DuplicateMatchPattern:
174
- Enabled: true
175
-
176
- Lint/DuplicateRegexpCharacterClassElement:
177
- Enabled: true
178
-
179
- Lint/DuplicateSetElement:
180
- Enabled: true
181
-
182
- Lint/EmptyBlock:
183
- Enabled: true
184
-
185
- Lint/EmptyClass:
186
- Enabled: true
187
-
188
- Lint/EmptyInPattern:
189
- Enabled: true
190
-
191
- Lint/HashNewWithKeywordArgumentsAsDefault:
192
- Enabled: true
193
-
194
- Lint/IncompatibleIoSelectWithFiberScheduler:
195
- Enabled: true
196
-
197
- Lint/ItWithoutArgumentsInBlock:
198
- Enabled: true
199
-
200
- Lint/LambdaWithoutLiteralBlock:
201
- Enabled: true
202
-
203
- Lint/LiteralAssignmentInCondition:
204
- Enabled: true
205
-
206
- Lint/MixedCaseRange:
207
- Enabled: true
208
-
209
- Lint/NoReturnInBeginEndBlocks:
210
- Enabled: true
211
-
212
- Lint/NonAtomicFileOperation:
213
- Enabled: true
214
-
215
- Lint/NumberedParameterAssignment:
216
- Enabled: true
217
-
218
- Lint/NumericOperationWithConstantResult:
219
- Enabled: true
220
-
221
- Lint/OrAssignmentToConstant:
222
- Enabled: true
223
-
224
- Lint/RedundantDirGlobSort:
225
- Enabled: true
226
-
227
- Lint/RedundantRegexpQuantifiers:
228
- Enabled: true
229
-
230
- Lint/RedundantTypeConversion:
231
- Enabled: true
232
-
233
- Lint/RefinementImportMethods:
234
- Enabled: true
235
-
236
- Lint/RequireRangeParentheses:
237
- Enabled: true
238
-
239
- Lint/RequireRelativeSelfPath:
240
- Enabled: true
241
-
242
- Lint/SharedMutableDefault:
243
- Enabled: true
244
-
245
- Lint/SuppressedExceptionInNumberConversion:
246
- Enabled: true
247
-
248
- Lint/SymbolConversion:
249
- Enabled: true
250
-
251
- Lint/ToEnumArguments:
252
- Enabled: true
253
-
254
- Lint/TripleQuotes:
255
- Enabled: true
256
-
257
- Lint/UnescapedBracketInRegexp:
258
- Enabled: true
259
-
260
- Lint/UnexpectedBlockArity:
261
- Enabled: true
262
-
263
- Lint/UnmodifiedReduceAccumulator:
264
- Enabled: true
265
-
266
- Lint/UselessConstantScoping:
267
- Enabled: true
268
-
269
- Lint/UselessDefaultValueArgument:
270
- Enabled: true
271
-
272
- Lint/UselessDefined:
273
- Enabled: true
274
-
275
- Lint/UselessNumericOperation:
276
- Enabled: true
277
-
278
- Lint/UselessOr:
279
- Enabled: true
280
-
281
- Lint/UselessRescue:
282
- Enabled: true
283
-
284
- Lint/UselessRuby2Keywords:
285
- Enabled: true
286
-
287
- Metrics/CollectionLiteralLength:
288
- Enabled: true
289
-
290
- Naming/BlockForwarding:
291
- Enabled: true
292
-
293
- Naming/PredicateMethod:
294
- Enabled: true
295
-
296
- Security/CompoundHash:
297
- Enabled: true
298
-
299
- Security/IoMethods:
300
- Enabled: true
301
-
302
- Style/AmbiguousEndlessMethodDefinition:
303
- Enabled: true
304
-
305
- Style/ArgumentsForwarding:
306
- Enabled: true
307
-
308
- Style/ArrayIntersect:
309
- Enabled: true
310
-
311
- Style/ArrayIntersectWithSingleElement:
312
- Enabled: true
313
-
314
- Style/BitwisePredicate:
315
- Enabled: true
316
-
317
- Style/CollectionCompact:
318
- Enabled: true
319
-
320
- Style/CollectionQuerying:
321
- Enabled: true
322
-
323
- Style/CombinableDefined:
324
- Enabled: true
325
-
326
- Style/ComparableBetween:
327
- Enabled: true
328
-
329
- Style/ComparableClamp:
330
- Enabled: true
331
-
332
- Style/ConcatArrayLiterals:
333
- Enabled: true
334
-
335
- Style/DataInheritance:
336
- Enabled: true
337
-
338
- Style/DigChain:
339
- Enabled: true
340
-
341
- Style/DirEmpty:
342
- Enabled: true
343
-
344
- Style/DocumentDynamicEvalDefinition:
345
- Enabled: true
346
-
347
- Style/EmptyHeredoc:
348
- Enabled: true
349
-
350
- Style/EmptyStringInsideInterpolation:
351
- Enabled: true
352
-
353
- Style/EndlessMethod:
354
- Enabled: true
355
-
356
- Style/EnvHome:
357
- Enabled: true
358
-
359
- Style/ExactRegexpMatch:
360
- Enabled: true
361
-
362
- Style/FetchEnvVar:
363
- Enabled: true
364
-
365
- Style/FileEmpty:
366
- Enabled: true
367
-
368
- Style/FileNull:
369
- Enabled: true
370
-
371
- Style/FileRead:
372
- Enabled: true
373
-
374
- Style/FileTouch:
375
- Enabled: true
376
-
377
- Style/FileWrite:
378
- Enabled: true
379
-
380
- Style/HashConversion:
381
- Enabled: true
382
-
383
- Style/HashExcept:
384
- Enabled: true
385
-
386
- Style/HashFetchChain:
387
- Enabled: true
388
-
389
- Style/HashSlice:
390
- Enabled: true
391
-
392
- Style/IfWithBooleanLiteralBranches:
393
- Enabled: true
394
-
395
- Style/InPatternThen:
396
- Enabled: true
397
-
398
- Style/ItAssignment:
399
- Enabled: true
400
-
401
- Style/ItBlockParameter:
402
- Enabled: true
403
-
404
- Style/KeywordArgumentsMerging:
405
- Enabled: true
406
-
407
- Style/MagicCommentFormat:
408
- Enabled: true
409
-
410
- Style/MapCompactWithConditionalBlock:
411
- Enabled: true
412
-
413
- Style/MapIntoArray:
414
- Enabled: true
415
-
416
- Style/MapToHash:
417
- Enabled: true
418
-
419
- Style/MapToSet:
420
- Enabled: true
421
-
422
- Style/MinMaxComparison:
423
- Enabled: true
424
-
425
- Style/MultilineInPatternThen:
426
- Enabled: true
427
-
428
- Style/NegatedIfElseCondition:
429
- Enabled: true
430
-
431
- Style/NestedFileDirname:
432
- Enabled: true
433
-
434
- Style/NilLambda:
435
- Enabled: true
436
-
437
- Style/NumberedParameters:
438
- Enabled: true
439
-
440
- Style/NumberedParametersLimit:
441
- Enabled: true
442
-
443
- Style/ObjectThen:
444
- Enabled: true
445
-
446
- Style/OpenStructUse:
447
- Enabled: true
448
-
449
- Style/OperatorMethodCall:
450
- Enabled: true
451
-
452
- Style/QuotedSymbols:
453
- Enabled: true
454
-
455
- Style/RedundantArgument:
456
- Enabled: true
457
-
458
- Style/RedundantArrayConstructor:
459
- Enabled: true
460
-
461
- Style/RedundantArrayFlatten:
462
- Enabled: true
463
-
464
- Style/RedundantConstantBase:
465
- Enabled: true
466
-
467
- Style/RedundantCurrentDirectoryInPath:
468
- Enabled: true
469
-
470
- Style/RedundantDoubleSplatHashBraces:
471
- Enabled: true
472
-
473
- Style/RedundantEach:
474
- Enabled: true
475
-
476
- Style/RedundantFilterChain:
477
- Enabled: true
478
-
479
- Style/RedundantFormat:
480
- Enabled: true
481
-
482
- Style/RedundantHeredocDelimiterQuotes:
483
- Enabled: true
484
-
485
- Style/RedundantInitialize:
486
- Enabled: true
487
-
488
- Style/RedundantInterpolationUnfreeze:
489
- Enabled: true
490
-
491
- Style/RedundantLineContinuation:
492
- Enabled: true
493
-
494
- Style/RedundantRegexpArgument:
495
- Enabled: true
496
-
497
- Style/RedundantRegexpConstructor:
498
- Enabled: true
499
-
500
- Style/RedundantSelfAssignmentBranch:
501
- Enabled: true
502
-
503
- Style/RedundantStringEscape:
504
- Enabled: true
505
-
506
- Style/ReturnNilInPredicateMethodDefinition:
507
- Enabled: true
508
-
509
- Style/SafeNavigationChainLength:
510
- Enabled: true
511
-
512
- Style/SelectByRegexp:
513
- Enabled: true
514
-
515
- Style/SendWithLiteralMethodName:
516
- Enabled: true
517
-
518
- Style/SingleLineDoEndBlock:
519
- Enabled: true
520
-
521
- Style/StringChars:
522
- Enabled: true
523
-
524
- Style/SuperArguments:
525
- Enabled: true
526
-
527
- Style/SuperWithArgsParentheses:
528
- Enabled: true
529
-
530
- Style/SwapValues:
531
- Enabled: true
532
-
533
- Style/YAMLFileRead:
534
- Enabled: true
535
-
536
- RSpec/ExampleLength:
537
- Max: 50
538
-
539
- RSpec/MultipleExpectations:
540
- Max: 25
541
-
542
- RSpec/NestedGroups:
543
- Max: 6
data/Gemfile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
6
-
7
- gem 'pry', '~> 0.14', group: :development
8
- gem 'pry-byebug', '~> 3.10', group: :development, platforms: %i[ruby mri]