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 +4 -4
- data/lib/tree_sitter_language_pack/native.rb +38 -1
- data/lib/tree_sitter_language_pack/version.rb +2 -2
- data/lib/ts_pack_core_rb.so +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe4a113fb8c2806a6f94f259d694d2b254a1874c72967081160b1858a84513f8
|
|
4
|
+
data.tar.gz: e18d546195c71caea908d9d62bd391380180e5a82d07c3b4e4cd2dcd33be35f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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:
|
|
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.
|
|
9
|
+
VERSION = '1.8.0.pre.rc.44'
|
|
10
10
|
end
|
data/lib/ts_pack_core_rb.so
CHANGED
|
Binary file
|