html-to-markdown 3.4.0.pre.rc.43-aarch64-linux → 3.4.0.pre.rc.45-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: 83e4b5e79af62b74a0a7fcb4ab999c4fe8883b480fdbdd8d431943ad463e2e01
4
+ data.tar.gz: 39b32ca5003e3d6efc2ecda97b20f5dfeaa040ff9887478c5947dee505af5fc6
5
5
  SHA512:
6
- metadata.gz: 0501fd5caaec4feecd8471bf87acd5252917449903714838b3f5dd105a118e45171c2cf2ab686982690d4c0eee5594e1822f786b16a2698c4c38c5f5a171b9a6
7
- data.tar.gz: 4f33d755e3340be47444ef7eb66cc538b889649e548dc4ec39da3513ce40a0583806ca64060109fb381bc36f4b728dbc52c49e19aff3c43aa4fceb2d2f9adb0d
6
+ metadata.gz: 34a96d0a074b1393d14f7e44d3d9e76e34dd8c79f7a1c3a398e3bf0a08e0d68c7f3a01de1d575fee3b33238fe6740d0427848aac36c268a05eceaba69ad62744
7
+ data.tar.gz: 8259f960f0e586dac7013e1f8da646916ebc3e7b4e10b313eb4457669b2a6c7f5c5ded69a5e437398bab377f62aac166ba075c559b81a49db48a2d768386e4a3
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:5c718821cf533b01ad52b81902a462f47aa0a1fd04079b89e94f85502d1f99ea
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,40 @@ 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, &block)
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
+ if snake_case_method == format_type.to_s.downcase
42
+ return self[:'_0'] || self['_0'] || self
43
+ end
44
+
45
+ super
46
+ end
47
+
48
+ def respond_to_missing?(method_name, include_private = false)
49
+ return true if key?(method_name) || key?(method_name.to_s)
50
+
51
+ format_type = self[:'format_type'] || self['format_type']
52
+ return false unless format_type
53
+
54
+ snake_case_method = method_name.to_s.downcase
55
+ snake_case_method == format_type.to_s.downcase || super
56
+ end
57
+ end
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:0f94527b64db68a5f23ef7f6f5a002fb4129c500d20cc9c076bc8fa24d80a4c7
2
+ # alef:hash:38ff512b96e160400de4b9fa4276aa12f513878ab47573b5ead7bc197d95e314
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.45'
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.45
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Kreuzberg Team