Documentation
¶
Overview ¶
Package ruby implements a gorisk analyzer for Ruby projects. It supports Gemfile.lock and Gemfile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIRGraph ¶ added in v0.4.2
func BuildIRGraph(g *graph.DependencyGraph) ir.IRGraph
BuildIRGraph builds a function-level IR graph for a Ruby dependency graph.
func Detect ¶
func Detect(dir string) capability.CapabilitySet
Detect walks .rb files in dir and returns the combined capability set.
func DetectFunctions ¶ added in v0.4.2
func DetectFunctions(dir, pkgName string, files []string) (map[string]ir.FunctionCaps, []ir.CallEdge, error)
DetectFunctions parses Ruby files and returns per-function capability sets and call edges.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements the analyzer.Analyzer interface for Ruby projects.
type RubyPackage ¶
RubyPackage represents a Ruby dependency extracted from a lockfile.
func Load ¶
func Load(dir string) (pkgs []RubyPackage, retErr error)
Load detects and parses the Ruby dependency lockfile in dir. Tries Gemfile.lock first, then falls back to Gemfile. Load never panics; it returns a structured error on failure.