html-to-markdown 3.4.0.pre.rc.44-x86_64-linux → 3.4.0-x86_64-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: 552e6241275ca8d0fc5a8a5570f1cf8ba6411c0fb5d1f4dd19fd65bbe14274fa
4
- data.tar.gz: a1e0042c5acc7aff1845d9dd1ffeab185248af1ac957e63fdd8c1c0b642b7da5
3
+ metadata.gz: 12daf4683560c7894533eafc94ed8de2333d21c95b550e136d1939b08e4c9fd0
4
+ data.tar.gz: baced7655834f05a4abe55663bd20935ccee8fb54573ef9a4ce606e646472f3f
5
5
  SHA512:
6
- metadata.gz: c9f8359d78948e1c453341c708332df5d84caa1d7b0ed7f96575f480031653ec34d3e7fda4392a50b2736d798680e349dd1ab54c918b0245b8c3922bd8076e3c
7
- data.tar.gz: 7b42007f644b7a112c4ca6774f2c17c34a4f68e8242da326a33a9e9a6c93a049f0bef00f6c54a5e8513ac9543c955e0e5c6eaafb4a2844539343e85d86f9b76b
6
+ metadata.gz: 88b052264127b99fd4d942f55f76ec7937acb3b1be9e24c7cb7aed51ca2e358d22926a1e2244dc4639aa3093cd770d213461c8baf2ba8308ea2716bd69673d18
7
+ data.tar.gz: 885576dd4830ce62f65be784caa49de1c6239acb81d91f5bc5f8d67fd957dac55aeb38b61d76df2acd19946da3df878bbe3324b90070a8d6ebf5f8430421a1b6
Binary file
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:1bd3c99db21c2ca078644f1e220656297c784bcca532f13d3b7efed3f45dbb0b
2
+ # alef:hash:b54e7bb2ab55cc6c25c9cac0e62ec66c35fd2d1956ef9ba5e3dc9e7ba5e666a5
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
@@ -23,7 +23,8 @@ end
23
23
  class Hash
24
24
  # Support internally-tagged enum accessors like format.excel, format.email, etc.
25
25
  # Also support direct field access like format.sheet_count
26
- def method_missing(method_name, *args, &)
26
+ # rubocop:disable Metrics/CyclomaticComplexity
27
+ def method_missing(method_name, *args, &block)
27
28
  # Try symbol key first (how Magnus converts JSON keys)
28
29
  return self[method_name] if key?(method_name)
29
30
 
@@ -31,22 +32,25 @@ class Hash
31
32
  return self[method_name.to_s] if key?(method_name.to_s)
32
33
 
33
34
  # Check if this hash has a 'format_type' field (indicating an internally-tagged enum)
34
- format_type = self[:format_type] || self['format_type']
35
+ format_type = self[:'format_type'] || self['format_type']
35
36
  return super unless format_type
36
37
 
37
38
  # If the method name matches the format_type (snake_case), extract and return the variant's wrapped data
38
39
  # Internally-tagged enums store variant data in the '_0' field (from alef's struct variant conversion)
39
40
  # This allows format.excel to return the ExcelMetadata hash with sheet_count, sheet_names, etc.
40
41
  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
+ if snake_case_method == format_type.to_s.downcase
43
+ return self[:'_0'] || self['_0'] || self
44
+ end
42
45
 
43
46
  super
44
47
  end
48
+ # rubocop:enable Metrics/CyclomaticComplexity
45
49
 
46
50
  def respond_to_missing?(method_name, include_private = false)
47
51
  return true if key?(method_name) || key?(method_name.to_s)
48
52
 
49
- format_type = self[:format_type] || self['format_type']
53
+ format_type = self[:'format_type'] || self['format_type']
50
54
  return false unless format_type
51
55
 
52
56
  snake_case_method = method_name.to_s.downcase
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:4ce3ba64cbea5c72b082111f57a04e219e555fda52859a9673edcec555031706
2
+ # alef:hash:9c58cf63849e82246f03b4fcc3996c264d47f2b2c27e0e8ba6b93eb4a84cb279
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.44'
9
+ VERSION = '3.4.0'
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.44
4
+ version: 3.4.0
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Kreuzberg Team