html-to-markdown 3.4.0.pre.rc.43-aarch64-linux → 3.4.0.pre.rc.44-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: 3b37ba4cc9d7bd32f124361d1c0e53e99ec716c6fc2bb2546061542cf9cd45b7
4
- data.tar.gz: 530f5781a0788f4d7b29c634cac7879ed122b18b3069bd71f57352d07b6d4142
3
+ metadata.gz: 3379397b6ae27be70db2a885eff8de137ccab02d3adc8854712a9676fc5617ca
4
+ data.tar.gz: c107b99c5122fea958ae43cac8490d5a4f6c8cf65c248936fc708e707401fd5a
5
5
  SHA512:
6
- metadata.gz: 0501fd5caaec4feecd8471bf87acd5252917449903714838b3f5dd105a118e45171c2cf2ab686982690d4c0eee5594e1822f786b16a2698c4c38c5f5a171b9a6
7
- data.tar.gz: 4f33d755e3340be47444ef7eb66cc538b889649e548dc4ec39da3513ce40a0583806ca64060109fb381bc36f4b728dbc52c49e19aff3c43aa4fceb2d2f9adb0d
6
+ metadata.gz: 41c09c5389a409349f9f960101e91fb2fd49da0e22bdafd466ecc904190aa6fdade46b08f5655056810335c5249afac079f8a9ce0097e207cdcb318cf9296598
7
+ data.tar.gz: 106b43f744394e58d21c956d0b69f8de663961b64ed7db463a67974ced8d90ef7358f975605e6d3ad9e447678a2a9b38e2fb7e2e2bf12e6d2d6dd08ea04561f7
Binary file
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:cc45dd331b1ce70dafcc656c39fd0b0dd3457b2beaa8b4be0b9243d0e205a361
2
+ # alef:hash:1bd3c99db21c2ca078644f1e220656297c784bcca532f13d3b7efed3f45dbb0b
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
@@ -18,3 +18,38 @@ module HtmlToMarkdown
18
18
  const_set(c, HtmlToMarkdownRs.const_get(c)) unless const_defined?(c)
19
19
  end
20
20
  end
21
+
22
+ # Add accessor methods to Hash-based internally-tagged enum instances
23
+ class Hash
24
+ # Support internally-tagged enum accessors like format.excel, format.email, etc.
25
+ # Also support direct field access like format.sheet_count
26
+ def method_missing(method_name, *args, &)
27
+ # Try symbol key first (how Magnus converts JSON keys)
28
+ return self[method_name] if key?(method_name)
29
+
30
+ # Try string key
31
+ return self[method_name.to_s] if key?(method_name.to_s)
32
+
33
+ # Check if this hash has a 'format_type' field (indicating an internally-tagged enum)
34
+ format_type = self[:format_type] || self['format_type']
35
+ return super unless format_type
36
+
37
+ # If the method name matches the format_type (snake_case), extract and return the variant's wrapped data
38
+ # Internally-tagged enums store variant data in the '_0' field (from alef's struct variant conversion)
39
+ # This allows format.excel to return the ExcelMetadata hash with sheet_count, sheet_names, etc.
40
+ snake_case_method = method_name.to_s.downcase
41
+ return self[:_0] || self['_0'] || self if snake_case_method == format_type.to_s.downcase
42
+
43
+ super
44
+ end
45
+
46
+ def respond_to_missing?(method_name, include_private = false)
47
+ return true if key?(method_name) || key?(method_name.to_s)
48
+
49
+ format_type = self[:format_type] || self['format_type']
50
+ return false unless format_type
51
+
52
+ snake_case_method = method_name.to_s.downcase
53
+ snake_case_method == format_type.to_s.downcase || super
54
+ end
55
+ end
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:0f94527b64db68a5f23ef7f6f5a002fb4129c500d20cc9c076bc8fa24d80a4c7
2
+ # alef:hash:4ce3ba64cbea5c72b082111f57a04e219e555fda52859a9673edcec555031706
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify --exit-code
5
5
  # Issues & docs: https://github.com/kreuzberg-dev/alef
6
6
  # frozen_string_literal: true
7
7
 
8
8
  module HtmlToMarkdown
9
- VERSION = '3.4.0.pre.rc.43'
9
+ VERSION = '3.4.0.pre.rc.44'
10
10
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-to-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0.pre.rc.43
4
+ version: 3.4.0.pre.rc.44
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Kreuzberg Team