tree_sitter_language_pack 1.20.0-aarch64-linux → 1.21.1-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 +4 -4
- data/README.md +3 -3
- data/lib/tree_sitter_language_pack/version.rb +2 -2
- data/lib/ts_pack_core_rb/3.2.0/ts_pack_core_rb.so +0 -0
- data/lib/ts_pack_core_rb/3.3.0/ts_pack_core_rb.so +0 -0
- data/lib/ts_pack_core_rb/3.4.0/ts_pack_core_rb.so +0 -0
- data/lib/ts_pack_core_rb/3.5.0+0/ts_pack_core_rb.so +0 -0
- data/lib/ts_pack_core_rb/4.0.0/ts_pack_core_rb.so +0 -0
- data/sig/types.rbs +13 -21
- metadata +4 -5
- data/lib/ts_pack_core_rb.rb +0 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26baf41b9db4dbf6f7d892cdfb31a36500f1a70ac3a518b3b4519686df4af04d
|
|
4
|
+
data.tar.gz: 717d860ca1429ca7cc1c0a7cbbf8fa5ca0175a4f9bc8e50d89d4f1390d19ea09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c667b761b1b39bd540699047519cd1919a9ceffa6696b50c08fa2298e306248fb3c6d79d54b34286c9462d25fb97337153b5f510499354535b7c43947ede8e71
|
|
7
|
+
data.tar.gz: 67067dce180634cd2618b4655fbac5a90e93ba0389357f8c493f3180a04607fe320454cb0ae9332f56352395cbd3928fb391b606d75f61fb7b27c42379015177
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- This file is auto-generated by alef — DO NOT EDIT. -->
|
|
2
|
-
<!-- alef:hash:
|
|
2
|
+
<!-- alef:hash:481e2980259b0958c711e2301aa32fc4680ad9a624499384c2212e4c4455d990 -->
|
|
3
3
|
<!-- To regenerate: alef readme -->
|
|
4
4
|
<!-- To verify freshness: alef verify -->
|
|
5
5
|
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
</a>
|
|
101
101
|
</div>
|
|
102
102
|
|
|
103
|
-
Pre-compiled tree-sitter grammars for
|
|
103
|
+
Pre-compiled tree-sitter grammars for 372 programming languages with Ruby bindings via Magnus.
|
|
104
104
|
|
|
105
105
|
## What This Package Provides
|
|
106
106
|
|
|
@@ -131,7 +131,7 @@ puts result.metrics.error_count.inspect
|
|
|
131
131
|
|
|
132
132
|
## Features
|
|
133
133
|
|
|
134
|
-
- **
|
|
134
|
+
- **372 languages** — pre-compiled tree-sitter grammars covering every major programming language and many minor ones.
|
|
135
135
|
- **On-demand download + cache** — parsers fetched at first use; subsequent runs hit the local cache.
|
|
136
136
|
- **Code intelligence** — extract functions, classes, imports, exports, symbols, docstrings, and diagnostics with one API.
|
|
137
137
|
- **Syntax-aware chunking** — semantic chunks for RAG/LLM pipelines.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:31339ad15ed4d33f1b3a79caae17e7d52b9967e66a181135cd22bfef8d497c71
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module TreeSitterLanguagePack
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "1.
|
|
9
|
+
VERSION = "1.21.1"
|
|
10
10
|
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:e8d472e7cb7452efc72dcbc77101e3bdfc9e2cc646d3823df2beee982ab623be
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -43,11 +43,11 @@ module TreeSitterLanguagePack
|
|
|
43
43
|
|
|
44
44
|
class CommentInfo
|
|
45
45
|
attr_reader text: String
|
|
46
|
-
attr_reader kind:
|
|
46
|
+
attr_reader kind: enum_CommentKind
|
|
47
47
|
attr_reader span: Span
|
|
48
48
|
attr_reader associated_node: String?
|
|
49
49
|
|
|
50
|
-
def initialize: (?text: String, ?kind:
|
|
50
|
+
def initialize: (?text: String, ?kind: enum_CommentKind, ?span: Span, ?associated_node: String) -> void
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
class DataAttribute
|
|
@@ -59,22 +59,22 @@ module TreeSitterLanguagePack
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
class DataNode
|
|
62
|
-
attr_reader kind:
|
|
62
|
+
attr_reader kind: enum_DataNodeKind
|
|
63
63
|
attr_reader key: String?
|
|
64
64
|
attr_reader value: String?
|
|
65
65
|
attr_reader attributes: Array[DataAttribute]
|
|
66
66
|
attr_reader children: Array[DataNode]
|
|
67
67
|
attr_reader span: Span
|
|
68
68
|
|
|
69
|
-
def initialize: (?kind:
|
|
69
|
+
def initialize: (?kind: enum_DataNodeKind, ?key: String, ?value: String, ?attributes: Array[DataAttribute], ?children: Array[DataNode], ?span: Span) -> void
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
class Diagnostic
|
|
73
73
|
attr_reader message: String
|
|
74
|
-
attr_reader severity:
|
|
74
|
+
attr_reader severity: enum_DiagnosticSeverity
|
|
75
75
|
attr_reader span: Span
|
|
76
76
|
|
|
77
|
-
def initialize: (?message: String, ?severity:
|
|
77
|
+
def initialize: (?message: String, ?severity: enum_DiagnosticSeverity, ?span: Span) -> void
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
class DocSection
|
|
@@ -103,10 +103,10 @@ module TreeSitterLanguagePack
|
|
|
103
103
|
|
|
104
104
|
class ExportInfo
|
|
105
105
|
attr_reader name: String
|
|
106
|
-
attr_reader kind:
|
|
106
|
+
attr_reader kind: enum_ExportKind
|
|
107
107
|
attr_reader span: Span
|
|
108
108
|
|
|
109
|
-
def initialize: (?name: String, ?kind:
|
|
109
|
+
def initialize: (?name: String, ?kind: enum_ExportKind, ?span: Span) -> void
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
class FileMetrics
|
|
@@ -279,24 +279,16 @@ module TreeSitterLanguagePack
|
|
|
279
279
|
def field_name: () -> String?
|
|
280
280
|
end
|
|
281
281
|
|
|
282
|
-
|
|
283
|
-
type value = :Line | :Block | :Doc
|
|
284
|
-
end
|
|
282
|
+
type enum_CommentKind = :Line | :Block | :Doc
|
|
285
283
|
|
|
286
|
-
|
|
287
|
-
type value = :KeyValue | :Element | :Sequence
|
|
288
|
-
end
|
|
284
|
+
type enum_DataNodeKind = :KeyValue | :Element | :Sequence
|
|
289
285
|
|
|
290
|
-
|
|
291
|
-
type value = :Error | :Warning | :Info
|
|
292
|
-
end
|
|
286
|
+
type enum_DiagnosticSeverity = :Error | :Warning | :Info
|
|
293
287
|
|
|
294
288
|
class DocstringFormat
|
|
295
289
|
end
|
|
296
290
|
|
|
297
|
-
|
|
298
|
-
type value = :Named | :Default | :ReExport
|
|
299
|
-
end
|
|
291
|
+
type enum_ExportKind = :Named | :Default | :ReExport
|
|
300
292
|
|
|
301
293
|
class StructureKind
|
|
302
294
|
end
|
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.
|
|
4
|
+
version: 1.21.1
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld
|
|
@@ -23,7 +23,7 @@ dependencies:
|
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
25
|
version: '0.5'
|
|
26
|
-
description: Pre-compiled tree-sitter grammars for
|
|
26
|
+
description: Pre-compiled tree-sitter grammars for 372 programming languages
|
|
27
27
|
executables: []
|
|
28
28
|
extensions: []
|
|
29
29
|
extra_rdoc_files: []
|
|
@@ -34,7 +34,6 @@ files:
|
|
|
34
34
|
- lib/tree_sitter_language_pack.rb
|
|
35
35
|
- lib/tree_sitter_language_pack/native.rb
|
|
36
36
|
- lib/tree_sitter_language_pack/version.rb
|
|
37
|
-
- lib/ts_pack_core_rb.rb
|
|
38
37
|
- lib/ts_pack_core_rb/3.2.0/ts_pack_core_rb.so
|
|
39
38
|
- lib/ts_pack_core_rb/3.3.0/ts_pack_core_rb.so
|
|
40
39
|
- lib/ts_pack_core_rb/3.4.0/ts_pack_core_rb.so
|
|
@@ -61,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
61
60
|
- !ruby/object:Gem::Version
|
|
62
61
|
version: '0'
|
|
63
62
|
requirements: []
|
|
64
|
-
rubygems_version: 4.0.
|
|
63
|
+
rubygems_version: 4.0.20
|
|
65
64
|
specification_version: 4
|
|
66
|
-
summary: Pre-compiled tree-sitter grammars for
|
|
65
|
+
summary: Pre-compiled tree-sitter grammars for 372 programming languages
|
|
67
66
|
test_files: []
|
data/lib/ts_pack_core_rb.rb
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require "rbconfig"
|
|
4
|
-
|
|
5
|
-
extension_name = "ts_pack_core_rb"
|
|
6
|
-
dlext = RbConfig::CONFIG.fetch("DLEXT")
|
|
7
|
-
ruby_abi = RbConfig::CONFIG.fetch("ruby_version")
|
|
8
|
-
|
|
9
|
-
base_dir = __dir__ || "."
|
|
10
|
-
candidates = [
|
|
11
|
-
File.expand_path("#{extension_name}/#{ruby_abi}/#{extension_name}.#{dlext}", base_dir),
|
|
12
|
-
File.expand_path("#{extension_name}.#{dlext}", base_dir)
|
|
13
|
-
]
|
|
14
|
-
|
|
15
|
-
native_extension = candidates.find { |path| File.file?(path) }
|
|
16
|
-
|
|
17
|
-
unless native_extension
|
|
18
|
-
raise(
|
|
19
|
-
LoadError,
|
|
20
|
-
"cannot find #{extension_name} native extension for Ruby ABI #{ruby_abi}; " \
|
|
21
|
-
"searched: #{candidates.join(", ")}"
|
|
22
|
-
)
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
require native_extension
|