brokk-bifrost-ruby 0.9.1

Ruby language knowledge for brokk-bifrost: declarations, require/autoload and Zeitwerk visibility, mixin and dispatch-mode facts, and usage-graph resolution
Documentation
//! Ruby's bundled tree-sitter query assets.
//!
//! The `.scm` files ship inside this crate rather than
//! `brokk-bifrost-analysis/resources/` and are embedded at compile time, so a
//! consumer never resolves them from a runtime path. `brokk-bifrost-analysis`
//! folds [`RUBY_QUERY_ASSETS`] into the per-language store epoch exactly as it
//! folds its own `resources/treesitter/<lang>/` files: the entry paths keep the
//! historical `treesitter/ruby/` prefix so the epoch's per-language filter is
//! one rule rather than two.

/// Directory the query assets live in, relative to this crate's root.
///
/// Reported by `RubyAdapter::query_directory()`. The relocation from the
/// analysis crate is why the Ruby store-epoch salt bumped: the salted content
/// now comes from this crate's `resources/`, not analysis's.
pub const RUBY_QUERY_DIRECTORY: &str = "resources/treesitter/ruby";

/// Compile-time embedded `.scm` query files as `(relative_path, contents)`.
pub const RUBY_QUERY_ASSETS: &[(&str, &str)] = &[
    (
        "treesitter/ruby/definitions.scm",
        include_str!("../resources/treesitter/ruby/definitions.scm"),
    ),
    (
        "treesitter/ruby/imports.scm",
        include_str!("../resources/treesitter/ruby/imports.scm"),
    ),
    (
        "treesitter/ruby/identifiers.scm",
        include_str!("../resources/treesitter/ruby/identifiers.scm"),
    ),
];