Commit 1e50d87
committed
✨ Major updates
### Added
- AGENTS.md
- **Dependency Tags Support**: Added `spec/support/dependency_tags.rb` to load shared
dependency tags from tree_haver and ast-merge. This enables automatic exclusion of
tests when required backends or dependencies are not available.
- Tests tagged with `:ffi_backend`, `:java_backend`, `:rust_backend` are now properly
excluded when those backends aren't available
- Tests tagged with `:rbs_grammar` are excluded when tree-sitter-rbs isn't available
- Tests tagged with `:rbs_parsing` work with any available RBS parsing backend
- FFI backend isolation for test suite
- Added `bin/rspec-ffi` script to run FFI specs in isolation (before MRI backend loads)
- Added `spec/spec_ffi_helper.rb` for FFI-specific test configuration
- Updated Rakefile with `ffi_specs` and `remaining_specs` tasks
- The `:test` task now runs FFI specs first, then remaining specs
- **BackendRegistry Integration**: RbsBackend now registers its availability checker with `TreeHaver::BackendRegistry`
- Enables `TreeHaver::RSpec::DependencyTags` to detect RBS backend availability without hardcoded checks
- Called automatically when backend is loaded: `TreeHaver::BackendRegistry.register_availability_checker(:rbs)`
### Changed
- appraisal2 v3.0.6
- kettle-test v1.0.10
- stone_checksums v1.0.3
- [ast-merge v4.0.6](https://github.com/kettle-rb/ast-merge/releases/tag/v4.0.6)
- [tree_haver v5.0.5](https://github.com/kettle-rb/tree_haver/releases/tag/v5.0.5)
- tree_stump v0.2.0
- fork no longer required, updates all applied upstream
- **RbsBackend refactored to use TreeHaver::Base classes**
- `RbsBackend::Language` now inherits from `TreeHaver::Base::Language`
- `RbsBackend::Parser` now inherits from `TreeHaver::Base::Parser`
- `RbsBackend::Tree` now inherits from `TreeHaver::Base::Tree`
- `RbsBackend::Node` now inherits from `TreeHaver::Base::Node`
- Consistent API across all merge gem backends
- **Tree-sitter grammar registration** - `register_backend!` now registers both:
- The RBS gem backend (Ruby-based parser, MRI only)
- The tree-sitter-rbs grammar path (for native tree-sitter backends)
- This enables `TreeHaver.parser_for(:rbs)` to use tree-sitter when available
### Fixed
- ConflictResolver now applies Hash-based per-node-type preferences via `node_typing`.1 parent 9ae446d commit 1e50d87
File tree
80 files changed
+17281
-706
lines changed- .github/workflows
- bin
- bin
- docs
- Rbs
- Merge
- Backends
- RbsBackend
- examples
- gemfiles/modular
- lib/rbs
- merge
- backends
- spec
- config
- integration
- rbs
- merge
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
80 files changed
+17281
-706
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments