imprimatur 0.7.0-aarch64-linux-gnu → 0.8.0-aarch64-linux-gnu

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: acbd72cb878ab5b6919bbc5ad03997eeeebeffd701dfc14f6d2c5148fc0097a3
4
- data.tar.gz: 5386038c1564866f29bb1fd0bdeeb0997b53ff71ebc5b49633c2446bc6d10575
3
+ metadata.gz: ff2e6c40da9caaccdae6a868e999760b25592bbaf3ae9fc20c42b7c927bc4bdd
4
+ data.tar.gz: 5700e3769fa8b7b52e8b888d60967428d8cf326dff66a351fc4c50db0a787b45
5
5
  SHA512:
6
- metadata.gz: a2c84c0c17ba5a2f70b78c9d3167c2dab1bf5b73482ea6d148ebd84bc8bb8f6e3e9a598d6e6c64525729ecbd35964104964dbb54e70439c44957893d2ca116a6
7
- data.tar.gz: bd629f569080f23bba0cee8f15d2f354ae25bec4ae1e1d2967391f123154318cffdd771a9fe49af7c68f8058754639c1d940613c5f1a6307e3463aead34f8c42
6
+ metadata.gz: 13950df455e35784adad7e89feee880e5fefd5bbd86790283c8794d28520adb50c78eaa2c36afcf035b6d9a5ac912adc7d97ff7b71f1c0535f37b69eed115e0a
7
+ data.tar.gz: 841c3b93f3866f6a01f174c221bf1a832bc6f6ba9b1da582b8e3723b08c9cc47d2225c213c42ec221e1642ca5d1ad4bd382a14961b87795bb2521f6d219368e0
data/CHANGELOG.md CHANGED
@@ -11,6 +11,18 @@
11
11
  - Allow a bounded exit grace when macOS cannot inspect an exiting worker;
12
12
  persistent monitor failures still terminate and reap a live worker.
13
13
 
14
+ ## [0.8.0](https://github.com/seuros/imprimatur/compare/v0.7.0...v0.8.0) (2026-10-27)
15
+
16
+
17
+ ### Features
18
+
19
+ * **reader:** accept drop_repeated in the Ruby API ([4e537d6](https://github.com/seuros/imprimatur/commit/4e537d641bafd8d3cdb8b1c20d16f4cb766ad073))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **pdf:** read printed page numbers from headers too, not just footers ([c036434](https://github.com/seuros/imprimatur/commit/c0364341ee8fc36be2c97d25fd06da0aa76a4ad6))
25
+
14
26
  ## [0.7.0](https://github.com/seuros/imprimatur/compare/v0.6.1...v0.7.0) (2026-10-26)
15
27
 
16
28
 
data/README.md CHANGED
@@ -32,7 +32,7 @@ end
32
32
  gem "imprimatur"
33
33
  ```
34
34
 
35
- Precompiled gems ship for Linux (x86_64 and aarch64, glibc 2.34+ and musl),
35
+ Precompiled gems ship for Linux (x86_64 and aarch64, glibc 2.34+),
36
36
  macOS 13+ (arm64, x86_64) and FreeBSD 15.1 (amd64): nothing to compile.
37
37
  Anywhere else, the source gem compiles the extension on install, with the
38
38
  toolchain from [rustup.rs](https://rustup.rs) (1.99+).
@@ -41,8 +41,8 @@ module Imprimatur
41
41
  end
42
42
 
43
43
  # @api private
44
- def self.limits(timeout: 60, max_bytes: nil, max_inflated: nil)
45
- [max_bytes, max_inflated, timeout && Float(timeout)]
44
+ def self.limits(timeout: 60, max_bytes: nil, max_inflated: nil, drop_repeated: false)
45
+ [max_bytes, max_inflated, timeout && Float(timeout), drop_repeated ? true : false]
46
46
  end
47
47
 
48
48
  # A path or an IO is read no further than +max_bytes+ (one byte past it
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Imprimatur
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  end
data/lib/imprimatur.rb CHANGED
@@ -72,6 +72,8 @@ module Imprimatur
72
72
  # @param timeout [Numeric, nil] seconds the read may take (60), +nil+ for none
73
73
  # @param max_bytes [Integer, nil] the largest document accepted (512 MiB)
74
74
  # @param max_inflated [Integer, nil] decompressed bytes allowed in all (1 GiB)
75
+ # @param drop_repeated [Boolean] PDF only: drop text repeated at the same
76
+ # spot on most pages, anywhere on the page (watermarks); off by default
75
77
  # @return [String] Markdown, UTF-8
76
78
  # @raise [NoTextLayer] a PDF of scanned pages: run OCR instead
77
79
  # @raise [PasswordRequired] a PDF that needs a password to open
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imprimatur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - Abdelkader Boudih