tree_sitter_language_pack 1.8.0.pre.rc.43-x86_64-linux → 1.8.0.pre.rc.44-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: a22bd71c0c4496ebe3b7e689660a72c1afe2a3f36bdb7296d2525d6b541ae522
4
- data.tar.gz: 10a8526e4a05bc988279a7202849a790f46e0c895b125720b7eb9018eec1466e
3
+ metadata.gz: fe4a113fb8c2806a6f94f259d694d2b254a1874c72967081160b1858a84513f8
4
+ data.tar.gz: e18d546195c71caea908d9d62bd391380180e5a82d07c3b4e4cd2dcd33be35f3
5
5
  SHA512:
6
- metadata.gz: 8827033910ad54d0b56cbf642dd7830f290441a1f9fcc772c01821dfb5e8b2992b93f2b37a2107161ae6ff6b76e6b27d1f38ca597a8e21622234e319a2388aff
7
- data.tar.gz: 60b3cb9af93b3fb16ffce5f0eb09530bd5f7f783a7a7e90dc5923ec98af5dba750be1d51e36d31f0637cdca62f9764fe71a48c02303494ee30831afaaf06516b
6
+ metadata.gz: a5bc006fae477b9170c8754305751ceb56f66c3e0896b2e6034934b6618e324074a1cc9351b6fdba704eb07301e6730b82bf65a0b0bb8c39f3668474c5daaed9
7
+ data.tar.gz: 5a49d5e8aaf85e9fda2b01fa9c76a6405213cefdae159d29c93f0d59945e5652135c92969f7aff87ca0410e0c3442f0a0fbb15c87e93019a921251d7c86de2b4
@@ -1,5 +1,5 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:b638543f033e039229fe860d8d3f9d16bb04a353217126d0401a975e2ecc3838
2
+ # alef:hash:f1cee06ff8900ef2d958db4c1c0a5cb8d233243dfa3834f678c826f070dc817d
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
@@ -7,3 +7,40 @@
7
7
 
8
8
  require 'json'
9
9
  require 'ts_pack_core_rb'
10
+
11
+ # Add accessor methods to Hash-based internally-tagged enum instances
12
+ class Hash
13
+ # Support internally-tagged enum accessors like format.excel, format.email, etc.
14
+ # Also support direct field access like format.sheet_count
15
+ # rubocop:disable Metrics/CyclomaticComplexity
16
+ def method_missing(method_name, *args, &)
17
+ # Try symbol key first (how Magnus converts JSON keys)
18
+ return self[method_name] if key?(method_name)
19
+
20
+ # Try string key
21
+ return self[method_name.to_s] if key?(method_name.to_s)
22
+
23
+ # Check if this hash has a 'format_type' field (indicating an internally-tagged enum)
24
+ format_type = self[:format_type] || self['format_type']
25
+ return super unless format_type
26
+
27
+ # If the method name matches the format_type (snake_case), extract and return the variant's wrapped data
28
+ # Internally-tagged enums store variant data in the '_0' field (from alef's struct variant conversion)
29
+ # This allows format.excel to return the ExcelMetadata hash with sheet_count, sheet_names, etc.
30
+ snake_case_method = method_name.to_s.downcase
31
+ return self[:_0] || self['_0'] || self if snake_case_method == format_type.to_s.downcase
32
+
33
+ super
34
+ end
35
+ # rubocop:enable Metrics/CyclomaticComplexity
36
+
37
+ def respond_to_missing?(method_name, include_private = false)
38
+ return true if key?(method_name) || key?(method_name.to_s)
39
+
40
+ format_type = self[:format_type] || self['format_type']
41
+ return false unless format_type
42
+
43
+ snake_case_method = method_name.to_s.downcase
44
+ snake_case_method == format_type.to_s.downcase || super
45
+ end
46
+ end
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:f72879f8162d8b8377bac9df171b35030472b294e5b4a9bf8d83a60edd7b6d45
2
+ # alef:hash:e0342931f53b51d8116ea5c8a064e3acc1783cc8acd0d0fe337866407e99f370
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 TreeSitterLanguagePack
9
- VERSION = '1.8.0.pre.rc.43'
9
+ VERSION = '1.8.0.pre.rc.44'
10
10
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tree_sitter_language_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0.pre.rc.43
4
+ version: 1.8.0.pre.rc.44
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Kreuzberg Team