kp_anydoc 0.2.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 +7 -0
- data/CHANGELOG.md +19 -0
- data/Cargo.lock +1438 -0
- data/Cargo.toml +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +69 -0
- data/THIRD-PARTY-LICENSES.txt +2856 -0
- data/ext/anydoc/Cargo.toml +15 -0
- data/ext/anydoc/extconf.rb +4 -0
- data/ext/anydoc/src/lib.rs +39 -0
- data/lib/anydoc/version.rb +5 -0
- data/lib/anydoc.rb +28 -0
- metadata +126 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 4087bb7a64b0330a598191f41f7326ff139f3b89471edb090a1ad7aa98f7ddc3
|
|
4
|
+
data.tar.gz: fdda8acf7d395f1cdc37a15dd9f07c4f9a5f1df80a0d7e3ba24f632875981ffa
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 4225c941be4069bdacc6ba734a7981d5e9d19e9e4b0cba36523dab5c06eb020d37a9b9b414b4d88436248fb49f4665ff79d84b3a5d5632aa7f785f8dbc775490
|
|
7
|
+
data.tar.gz: 1023962b16c7ad838e467a7db57dbc097ab37b118eb3168f84caf28fc3006adec6f20d00925976cab42e02c14520cd99242650aa3011d235d01f5e79a03c8bd0
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Versions track the [`anydoc`](https://crates.io/crates/anydoc) Rust crate this gem wraps: `kp_anydoc` 0.2.3 wraps `anydoc` 0.2.3.
|
|
4
|
+
|
|
5
|
+
## [0.2.3] - 2026-09-09
|
|
6
|
+
|
|
7
|
+
Wraps `anydoc` 0.2.3 instead of 0.2.4, giving up the scanned-page reporting that 0.2.4 introduced.
|
|
8
|
+
|
|
9
|
+
- `anydoc` 0.2.4 refuses a whole PDF when any page is scanned or image-only ([firecrawl/anydoc#140](https://github.com/firecrawl/anydoc/pull/140)). Measured against a representative KirkpatrickPrice audit program, that failed 47 of 117 PDFs, including a 22-page training deck where 4 pages need OCR and the other 18 extract cleanly. On 0.2.3 those documents convert.
|
|
10
|
+
- The cost is that 0.2.3 leaves the unreadable pages out of the Markdown without saying so, which is the behaviour upstream changed 0.2.4 to stop. Treat this as a stopgap: [firecrawl/anydoc#166](https://github.com/firecrawl/anydoc/pull/166) proposes keeping the extracted text for text-based PDFs, and landing it would let the gem track a current crate again.
|
|
11
|
+
- Nothing else is given up. The other feature in 0.2.4, hosted OCR through Firecrawl Parse, is exposed only in the Node and Python bindings, not in the Rust API these bindings wrap.
|
|
12
|
+
|
|
13
|
+
## [0.2.4] - 2026-09-01
|
|
14
|
+
|
|
15
|
+
- Initial release of `kp_anydoc`, wrapping the `anydoc` Rust crate 0.2.4.
|
|
16
|
+
- `Anydoc.to_markdown(bytes, filename:)` converts document bytes to Markdown.
|
|
17
|
+
- Typed errors: `Anydoc::UnsupportedError`, `MalformedError`, `EncryptedError`, `ResourceLimitError`, `MissingPartError`, `IoError`.
|
|
18
|
+
- Precompiled native gems published for `x86_64-linux`, `aarch64-linux`, `x86_64-linux-musl`, and `arm64-darwin`, each carrying a Ruby 3.4 and 4.0 extension, with a source gem fallback.
|
|
19
|
+
- Bundles `THIRD-PARTY-LICENSES.txt`, generated from the Rust dependency tree, so the compiled extension ships its linked-in dependencies' attribution.
|