html-to-markdown 3.8.0 → 3.8.1
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/ext/html_to_markdown_rb/Cargo.lock +2 -2
- data/ext/html_to_markdown_rb/Cargo.toml +1 -1
- data/ext/html_to_markdown_rb/native/Cargo.lock +3 -3
- data/ext/html_to_markdown_rb/native/Cargo.toml +3 -3
- data/ext/html_to_markdown_rb/src/lib.rs +9 -135
- data/lib/html_to_markdown/native.rb +106 -49
- data/lib/html_to_markdown/version.rb +2 -2
- data/lib/html_to_markdown.rb +10 -1
- data/lib/html_to_markdown_rb.so +0 -0
- data/sig/html_to_markdown/cli.rbs +21 -21
- data/sig/html_to_markdown/cli_proxy.rbs +26 -26
- data/sig/open3.rbs +9 -9
- data/sig/types.rbs +264 -264
- metadata +2 -2
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
module HtmlToMarkdown
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
module CLIProxy
|
|
3
|
+
# Base error class
|
|
4
|
+
class Error < StandardError
|
|
5
|
+
end
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
# Error when CLI binary is not found
|
|
8
|
+
class MissingBinaryError < Error
|
|
9
|
+
end
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
# Error when CLI execution fails
|
|
12
|
+
class CLIExecutionError < Error
|
|
13
|
+
attr_reader stderr: String
|
|
14
|
+
attr_reader status: Integer?
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
def initialize: (String message, stderr: String, status: Integer?) -> void
|
|
17
|
+
end
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
# Module methods (module_function creates both module and instance methods)
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
# Execute CLI with given arguments
|
|
22
|
+
def self.call: (Array[String] argv) -> String
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
# Find the CLI binary in search paths
|
|
25
25
|
def self.find_cli_binary: () -> Pathname
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
# Get root path of the gem
|
|
28
28
|
def self.root_path: () -> Pathname
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
# Get lib path of the gem
|
|
31
31
|
def self.lib_path: () -> Pathname
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
# Get search paths for CLI binary
|
|
34
|
+
def self.search_paths: (String binary_name) -> Array[Pathname]
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
# Get error message for missing binary
|
|
37
37
|
def self.missing_binary_message: () -> String
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
# Instance method versions (created by module_function)
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
def call: (Array[String] argv) -> String
|
|
42
42
|
def find_cli_binary: () -> Pathname
|
|
43
43
|
def root_path: () -> Pathname
|
|
44
44
|
def lib_path: () -> Pathname
|
|
45
|
-
|
|
45
|
+
def search_paths: (String binary_name) -> Array[Pathname]
|
|
46
46
|
def missing_binary_message: () -> String
|
|
47
|
-
|
|
47
|
+
end
|
|
48
48
|
end
|
data/sig/open3.rbs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Type signature for Open3 standard library
|
|
2
2
|
module Open3
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
# Execute command and capture stdout, stderr, and status
|
|
4
|
+
#
|
|
5
|
+
# @param cmd Command to execute
|
|
6
|
+
# @param args Command arguments
|
|
7
|
+
# @return Array containing stdout (String), stderr (String), and status (Process::Status)
|
|
8
|
+
def self.capture3: (
|
|
9
|
+
String cmd,
|
|
10
|
+
*String args
|
|
11
|
+
) -> [String, String, Process::Status]
|
|
12
12
|
end
|