rubydex 0.2.3-aarch64-linux → 0.2.5-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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/THIRD_PARTY_LICENSES.html +2 -2
  3. data/exe/rubydex_mcp +17 -0
  4. data/ext/rubydex/definition.c +56 -0
  5. data/ext/rubydex/extconf.rb +8 -0
  6. data/lib/rubydex/3.2/rubydex.so +0 -0
  7. data/lib/rubydex/3.3/rubydex.so +0 -0
  8. data/lib/rubydex/3.4/rubydex.so +0 -0
  9. data/lib/rubydex/4.0/rubydex.so +0 -0
  10. data/lib/rubydex/bin/rubydex_mcp +0 -0
  11. data/lib/rubydex/declaration.rb +12 -0
  12. data/lib/rubydex/graph.rb +3 -1
  13. data/lib/rubydex/librubydex_sys.so +0 -0
  14. data/lib/rubydex/version.rb +1 -1
  15. data/rbi/rubydex.rbi +14 -1
  16. data/rust/Cargo.lock +4 -4
  17. data/rust/rubydex/src/indexing/local_graph.rs +38 -0
  18. data/rust/rubydex/src/indexing/ruby_indexer.rs +6 -0
  19. data/rust/rubydex/src/indexing/ruby_indexer_tests.rs +5 -1
  20. data/rust/rubydex/src/indexing.rs +38 -12
  21. data/rust/rubydex/src/lib.rs +1 -0
  22. data/rust/rubydex/src/listing.rs +14 -3
  23. data/rust/rubydex/src/main.rs +27 -2
  24. data/rust/rubydex/src/model/definitions.rs +7 -18
  25. data/rust/rubydex/src/model/graph.rs +21 -4
  26. data/rust/rubydex/src/model/ids.rs +27 -1
  27. data/rust/rubydex/src/operation/applier.rs +519 -0
  28. data/rust/rubydex/src/operation/mod.rs +284 -0
  29. data/rust/rubydex/src/operation/printer.rs +260 -0
  30. data/rust/rubydex/src/operation/ruby_builder.rs +2915 -0
  31. data/rust/rubydex/src/resolution.rs +6 -1
  32. data/rust/rubydex/src/resolution_tests.rs +217 -209
  33. data/rust/rubydex/src/test_utils/graph_test.rs +19 -4
  34. data/rust/rubydex/src/test_utils/local_graph_test.rs +7 -6
  35. data/rust/rubydex-mcp/Cargo.toml +1 -1
  36. data/rust/rubydex-mcp/src/server.rs +10 -7
  37. data/rust/rubydex-sys/src/definition_api.rs +24 -0
  38. data/rust/rubydex-sys/src/graph_api.rs +1 -1
  39. metadata +9 -2
@@ -1832,7 +1832,7 @@ impl<'a> Resolver<'a> {
1832
1832
  /// Pre-compute name depths for all names into a `NameId → depth` map. Each name's depth is
1833
1833
  /// computed once via memoized recursion, then used as an O(1) lookup key during sorting in
1834
1834
  /// `prepare_units`.
1835
- fn compute_name_depths(names: &IdentityHashMap<NameId, NameRef>) -> IdentityHashMap<NameId, u32> {
1835
+ pub(crate) fn compute_name_depths(names: &IdentityHashMap<NameId, NameRef>) -> IdentityHashMap<NameId, u32> {
1836
1836
  let mut cache = IdentityHashMap::with_capacity_and_hasher(names.len(), IdentityHashBuilder);
1837
1837
 
1838
1838
  for &name_id in names.keys() {
@@ -2066,6 +2066,11 @@ impl<'a> Resolver<'a> {
2066
2066
  }
2067
2067
  }
2068
2068
 
2069
+ #[cfg(test)]
2070
+ fn backend() -> crate::indexing::IndexerBackend {
2071
+ crate::indexing::IndexerBackend::RubyIndexer
2072
+ }
2073
+
2069
2074
  #[cfg(test)]
2070
2075
  #[path = "resolution_tests.rs"]
2071
2076
  mod tests;