tree_sitter_language_pack 1.9.0.pre.rc.11 → 1.9.0.pre.rc.12
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/LICENSE +7 -0
- data/README.md +148 -0
- data/ext/ts_pack_core_rb/native/Cargo.lock +5 -5
- data/ext/ts_pack_core_rb/native/Cargo.toml +3 -3
- data/lib/tree_sitter_language_pack/version.rb +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e66edb5cbe0cb6e2cbbbad4887913f97bf253d2ce54108910a1f7180fb1b963
|
|
4
|
+
data.tar.gz: 6b20d049f6b74ab14d9ed964f6082f2c4e9a9757dd69f3db255c357ce42e7785
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2259d33455bc42c4a2f47a3e844c3c3a7dcfaf0615288dbb5a67304605ae1241168c3fb2a31ab62d8683dc3b276a03027be8a2177ddd060fa49ab76d0a20e1d4
|
|
7
|
+
data.tar.gz: ee976f8fedcae83cdf3aad06958ee4649c10ac021a0f20101f300a8923f9ad80a1b13a816e47aa0d7bf6c1d7100f2a01ec109b7b60fdc3192d9f140b00f43c96
|
data/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2025-2026 Na'aman Hirschfeld
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Ruby
|
|
2
|
+
|
|
3
|
+
<div align="center" style="display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0">
|
|
4
|
+
<a href="https://github.com/kreuzberg-dev/alef">
|
|
5
|
+
<img src="https://img.shields.io/badge/Bindings-alef%20%D7%90-007ec6" alt="Bindings" />
|
|
6
|
+
</a>
|
|
7
|
+
<!-- Language Bindings -->
|
|
8
|
+
<a href="https://crates.io/crates/tree-sitter-language-pack">
|
|
9
|
+
<img src="https://img.shields.io/crates/v/tree-sitter-language-pack?label=Rust&color=007ec6" alt="Rust" />
|
|
10
|
+
</a>
|
|
11
|
+
<a href="https://pypi.org/project/tree-sitter-language-pack/">
|
|
12
|
+
<img src="https://img.shields.io/pypi/v/tree-sitter-language-pack?label=Python&color=007ec6" alt="Python" />
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/@kreuzberg/tree-sitter-language-pack">
|
|
15
|
+
<img
|
|
16
|
+
src="https://img.shields.io/npm/v/@kreuzberg/tree-sitter-language-pack?label=Node.js&color=007ec6"
|
|
17
|
+
alt="Node.js"
|
|
18
|
+
/>
|
|
19
|
+
</a>
|
|
20
|
+
<a href="https://www.npmjs.com/package/@kreuzberg/tree-sitter-language-pack-wasm">
|
|
21
|
+
<img
|
|
22
|
+
src="https://img.shields.io/npm/v/@kreuzberg/tree-sitter-language-pack-wasm?label=WASM&color=007ec6"
|
|
23
|
+
alt="WASM"
|
|
24
|
+
/>
|
|
25
|
+
</a>
|
|
26
|
+
<a href="https://central.sonatype.com/artifact/dev.kreuzberg.treesitterlanguagepack/tree-sitter-language-pack">
|
|
27
|
+
<img
|
|
28
|
+
src="https://img.shields.io/maven-central/v/dev.kreuzberg.treesitterlanguagepack/tree-sitter-language-pack?label=Java&color=007ec6"
|
|
29
|
+
alt="Java"
|
|
30
|
+
/>
|
|
31
|
+
</a>
|
|
32
|
+
<a href="https://pkg.go.dev/github.com/kreuzberg-dev/tree-sitter-language-pack/packages/go">
|
|
33
|
+
<img
|
|
34
|
+
src="https://img.shields.io/github/v/tag/kreuzberg-dev/tree-sitter-language-pack?label=Go&color=007ec6"
|
|
35
|
+
alt="Go"
|
|
36
|
+
/>
|
|
37
|
+
</a>
|
|
38
|
+
<a href="https://www.nuget.org/packages/TreeSitterLanguagePack/">
|
|
39
|
+
<img src="https://img.shields.io/nuget/v/TreeSitterLanguagePack?label=C%23&color=007ec6" alt="C#" />
|
|
40
|
+
</a>
|
|
41
|
+
<a href="https://packagist.org/packages/kreuzberg-dev/tree-sitter-language-pack">
|
|
42
|
+
<img
|
|
43
|
+
src="https://img.shields.io/packagist/v/kreuzberg-dev/tree-sitter-language-pack?label=PHP&color=007ec6"
|
|
44
|
+
alt="PHP"
|
|
45
|
+
/>
|
|
46
|
+
</a>
|
|
47
|
+
<a href="https://rubygems.org/gems/tree_sitter_language_pack">
|
|
48
|
+
<img src="https://img.shields.io/gem/v/tree_sitter_language_pack?label=Ruby&color=007ec6" alt="Ruby" />
|
|
49
|
+
</a>
|
|
50
|
+
<a href="https://hex.pm/packages/tree_sitter_language_pack">
|
|
51
|
+
<img src="https://img.shields.io/hexpm/v/tree_sitter_language_pack?label=Elixir&color=007ec6" alt="Elixir" />
|
|
52
|
+
</a>
|
|
53
|
+
<a href="https://pub.dev/packages/tree_sitter_language_pack">
|
|
54
|
+
<img src="https://img.shields.io/pub/v/tree_sitter_language_pack?label=Dart&color=007ec6" alt="Dart" />
|
|
55
|
+
</a>
|
|
56
|
+
<a href="https://central.sonatype.com/artifact/dev.kreuzberg.tslp.android/tree-sitter-language-pack-android">
|
|
57
|
+
<img
|
|
58
|
+
src="https://img.shields.io/maven-central/v/dev.kreuzberg.tslp.android/tree-sitter-language-pack-android?label=Kotlin&color=007ec6"
|
|
59
|
+
alt="Kotlin"
|
|
60
|
+
/>
|
|
61
|
+
</a>
|
|
62
|
+
<a href="https://github.com/kreuzberg-dev/tree-sitter-language-pack/tree/main/packages/swift">
|
|
63
|
+
<img src="https://img.shields.io/badge/Swift-SPM-007ec6" alt="Swift" />
|
|
64
|
+
</a>
|
|
65
|
+
<a href="https://github.com/kreuzberg-dev/tree-sitter-language-pack/tree/main/packages/zig">
|
|
66
|
+
<img src="https://img.shields.io/badge/Zig-package-007ec6" alt="Zig" />
|
|
67
|
+
</a>
|
|
68
|
+
<a href="https://github.com/kreuzberg-dev/tree-sitter-language-pack/releases">
|
|
69
|
+
<img src="https://img.shields.io/badge/C-FFI-007ec6" alt="C FFI" />
|
|
70
|
+
</a>
|
|
71
|
+
|
|
72
|
+
<!-- Project Info -->
|
|
73
|
+
<a href="https://github.com/kreuzberg-dev/tree-sitter-language-pack/blob/main/LICENSE">
|
|
74
|
+
<img src="https://img.shields.io/badge/License-MIT-007ec6" alt="License" />
|
|
75
|
+
</a>
|
|
76
|
+
<a href="https://docs.tree-sitter-language-pack.kreuzberg.dev">
|
|
77
|
+
<img src="https://img.shields.io/badge/Docs-tree--sitter--language--pack-007ec6" alt="Documentation" />
|
|
78
|
+
</a>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<div align="center" style="margin: 24px 0 0">
|
|
82
|
+
<a href="https://kreuzberg.dev">
|
|
83
|
+
<img alt="tree-sitter-language-pack" src="https://github.com/user-attachments/assets/478a83da-237b-446b-b3a8-e564c13e00a8" />
|
|
84
|
+
</a>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<div align="center" style="display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 24px">
|
|
88
|
+
<a href="https://discord.gg/xt9WY3GnKR">
|
|
89
|
+
<img
|
|
90
|
+
height="22"
|
|
91
|
+
src="https://img.shields.io/badge/Discord-Chat-007ec6?logo=discord&logoColor=white"
|
|
92
|
+
alt="Join Discord"
|
|
93
|
+
/>
|
|
94
|
+
</a>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
Pre-compiled tree-sitter grammars for 305 programming languages with Ruby bindings via Magnus.
|
|
98
|
+
|
|
99
|
+
## What This Package Provides
|
|
100
|
+
|
|
101
|
+
- **Parser access** — load a tree-sitter language parser by name without wiring individual grammar crates or packages.
|
|
102
|
+
- **Code intelligence primitives** — parse trees, functions, classes, imports, exports, symbols, docstrings, diagnostics, and syntax-aware chunks.
|
|
103
|
+
- **Shared cache model** — parsers are fetched and cached once, then reused by every call in the process.
|
|
104
|
+
- **Same catalog as every binding** — Rust, Python, Node.js, Go, Java, PHP, Ruby, .NET, Elixir, WASM, Dart, Kotlin Android, Swift, Zig, and C FFI use the same grammar set.
|
|
105
|
+
- **Ruby package** — Magnus-backed parser access with Ruby objects.
|
|
106
|
+
|
|
107
|
+
## Installation
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
gem install tree_sitter_language_pack
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Quick Start
|
|
114
|
+
|
|
115
|
+
See the [language guide](https://docs.tree-sitter-language-pack.kreuzberg.dev) for `ruby`-specific usage.
|
|
116
|
+
|
|
117
|
+
## Features
|
|
118
|
+
|
|
119
|
+
- **300+ languages** — pre-compiled tree-sitter grammars covering every major programming language and many minor ones.
|
|
120
|
+
- **On-demand download + cache** — parsers fetched at first use; subsequent runs hit the local cache.
|
|
121
|
+
- **Code intelligence** — extract functions, classes, imports, exports, symbols, docstrings, and diagnostics with one API.
|
|
122
|
+
- **Syntax-aware chunking** — semantic chunks for RAG/LLM pipelines.
|
|
123
|
+
- **Polyglot bindings** — Rust core with native bindings for Python, TypeScript, Go, Java, C#, Ruby, PHP, Elixir, and WebAssembly via [alef](https://github.com/kreuzberg-dev/alef).
|
|
124
|
+
|
|
125
|
+
## Documentation
|
|
126
|
+
|
|
127
|
+
- **[Documentation](https://docs.tree-sitter-language-pack.kreuzberg.dev)** -- Full docs and API reference
|
|
128
|
+
- **[GitHub Repository](https://github.com/kreuzberg-dev/tree-sitter-language-pack)** -- Source, issues, and discussions
|
|
129
|
+
|
|
130
|
+
## Part of Kreuzberg.dev
|
|
131
|
+
|
|
132
|
+
- [Kreuzberg](https://github.com/kreuzberg-dev/kreuzberg) — document intelligence: text, tables, metadata from 90+ formats with optional OCR.
|
|
133
|
+
- [Kreuzberg Cloud](https://github.com/kreuzberg-dev/kreuzberg-cloud) — managed extraction API with SDKs, dashboards, and observability.
|
|
134
|
+
- [kreuzcrawl](https://github.com/kreuzberg-dev/kreuzcrawl) — web crawling and scraping with HTML→Markdown and headless-Chrome fallback.
|
|
135
|
+
- [html-to-markdown](https://github.com/kreuzberg-dev/html-to-markdown) — fast, lossless HTML→Markdown engine.
|
|
136
|
+
- [liter-llm](https://github.com/kreuzberg-dev/liter-llm) — universal LLM API client with native bindings for 14 languages and 143 providers.
|
|
137
|
+
- [alef](https://github.com/kreuzberg-dev/alef) — the polyglot binding generator that produces this README and all per-language bindings.
|
|
138
|
+
- [Discord](https://discord.gg/xt9WY3GnKR) — community, roadmap, announcements.
|
|
139
|
+
|
|
140
|
+
## Contributing
|
|
141
|
+
|
|
142
|
+
Contributions are welcome! See [CONTRIBUTING.md](https://github.com/kreuzberg-dev/tree-sitter-language-pack/blob/main/CONTRIBUTING.md) for guidelines.
|
|
143
|
+
|
|
144
|
+
Join our [Discord community](https://discord.gg/xt9WY3GnKR) for questions and discussion.
|
|
145
|
+
|
|
146
|
+
## License
|
|
147
|
+
|
|
148
|
+
MIT -- see [LICENSE](https://github.com/kreuzberg-dev/tree-sitter-language-pack/blob/main/LICENSE) for details.
|
|
@@ -513,9 +513,9 @@ dependencies = [
|
|
|
513
513
|
|
|
514
514
|
[[package]]
|
|
515
515
|
name = "memchr"
|
|
516
|
-
version = "2.8.
|
|
516
|
+
version = "2.8.1"
|
|
517
517
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
518
|
-
checksum = "
|
|
518
|
+
checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
|
|
519
519
|
|
|
520
520
|
[[package]]
|
|
521
521
|
name = "minimal-lexical"
|
|
@@ -1047,9 +1047,9 @@ checksum = "009994f150cc0cd50ff54917d5bc8bffe8cad10ca10d81c34da2ec421ae61782"
|
|
|
1047
1047
|
|
|
1048
1048
|
[[package]]
|
|
1049
1049
|
name = "tree-sitter-language-pack"
|
|
1050
|
-
version = "1.9.0-rc.
|
|
1050
|
+
version = "1.9.0-rc.12"
|
|
1051
1051
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1052
|
-
checksum = "
|
|
1052
|
+
checksum = "37e4c73f658ea83010657976bc33c6748aa48f8eed12f848182fc1dd2f08ea3f"
|
|
1053
1053
|
dependencies = [
|
|
1054
1054
|
"ahash",
|
|
1055
1055
|
"cc",
|
|
@@ -1070,7 +1070,7 @@ dependencies = [
|
|
|
1070
1070
|
|
|
1071
1071
|
[[package]]
|
|
1072
1072
|
name = "ts-pack-core-rb"
|
|
1073
|
-
version = "1.9.0-rc.
|
|
1073
|
+
version = "1.9.0-rc.12"
|
|
1074
1074
|
dependencies = [
|
|
1075
1075
|
"magnus",
|
|
1076
1076
|
"serde",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "ts-pack-core-rb"
|
|
3
|
-
version = "1.9.0-rc.
|
|
3
|
+
version = "1.9.0-rc.12"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
description = "Pre-compiled tree-sitter grammars for 305 programming languages"
|
|
7
7
|
readme = false
|
|
8
|
-
keywords = ["
|
|
8
|
+
keywords = ["language-pack", "parser", "syntax", "tree-sitter"]
|
|
9
9
|
categories = ["text-processing"]
|
|
10
10
|
|
|
11
11
|
[lib]
|
|
@@ -17,4 +17,4 @@ crate-type = ["cdylib"]
|
|
|
17
17
|
magnus = "0.8"
|
|
18
18
|
serde = { version = "1", features = ["derive"] }
|
|
19
19
|
serde_json = "1"
|
|
20
|
-
tree-sitter-language-pack = { version = "1.9.0-rc.
|
|
20
|
+
tree-sitter-language-pack = { version = "1.9.0-rc.12", features = ["serde", "config", "download"] }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:67a99245fc03d45ab5ea267c840cd4dada0b7467de689ea57b003173fa8c445d
|
|
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.9.0.pre.rc.
|
|
9
|
+
VERSION = "1.9.0.pre.rc.12"
|
|
10
10
|
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.9.0.pre.rc.
|
|
4
|
+
version: 1.9.0.pre.rc.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kreuzberg Team
|
|
@@ -43,6 +43,8 @@ extensions:
|
|
|
43
43
|
- ext/ts_pack_core_rb/extconf.rb
|
|
44
44
|
extra_rdoc_files: []
|
|
45
45
|
files:
|
|
46
|
+
- LICENSE
|
|
47
|
+
- README.md
|
|
46
48
|
- Steepfile
|
|
47
49
|
- ext/ts_pack_core_rb/extconf.rb
|
|
48
50
|
- ext/ts_pack_core_rb/native/Cargo.lock
|
|
@@ -63,7 +65,7 @@ homepage: https://github.com/kreuzberg-dev/tree-sitter-language-pack
|
|
|
63
65
|
licenses:
|
|
64
66
|
- MIT
|
|
65
67
|
metadata:
|
|
66
|
-
keywords:
|
|
68
|
+
keywords: language-pack,parser,syntax,tree-sitter
|
|
67
69
|
rubygems_mfa_required: 'true'
|
|
68
70
|
rdoc_options: []
|
|
69
71
|
require_paths:
|