ruby

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Overview

Package ruby is the Ruby implementation of the affected-selection language seam.

A unit is one .rb file. Test units carry a framework-qualified identity so a caller can choose the file-level command the detected runner actually supports. The plugin reads source text only; it never invokes Ruby, Bundler, Rails, or a test framework.

Index

Constants

View Source
const (
	// FrontierUnreadableSource reports source that could not be read or decoded.
	FrontierUnreadableSource = "ruby:unreadable-source"
	// FrontierDynamicLoad reports a require/load target not fixed in source.
	FrontierDynamicLoad = "ruby:dynamic-load"
	// FrontierConditionalLoad reports a literal load nested in a block.
	FrontierConditionalLoad = "ruby:conditional-load"
	// FrontierAmbiguousLoad reports a literal matching several repository files.
	FrontierAmbiguousLoad = "ruby:ambiguous-load"
	// FrontierRelativeLoad reports a require_relative target with no observed file.
	FrontierRelativeLoad = "ruby:relative-load-unresolved"
	// FrontierDynamicTestDefinition reports generated or reflection-driven tests.
	FrontierDynamicTestDefinition = "ruby:dynamic-test-definition"
	// FrontierRailsAutoload reports Rails constant loading not expressed by requires.
	FrontierRailsAutoload = "ruby:rails-autoload"
	// FrontierCucumberOwnership reports neutral Gherkin scenarios this plugin cannot own.
	FrontierCucumberOwnership = "ruby:cucumber-feature-ownership"
	// FrontierImplicitTestDependency reports a test with no resolvable repository edge.
	FrontierImplicitTestDependency = "ruby:implicit-test-dependency"
	// FrontierAmbiguousFramework reports a test whose runner is not fixed by its own source.
	FrontierAmbiguousFramework = "ruby:ambiguous-test-framework"
)

Frontier reasons this plugin can raise.

Variables

This section is empty.

Functions

This section is empty.

Types

type Language

type Language struct{}

Language observes Ruby source and test files under one repository root.

func New

func New() Language

New returns the Ruby language plugin.

func (Language) Name

func (Language) Name() string

Name is the plugin namespace.

func (Language) Owns

func (Language) Owns(relative string) bool

Owns reports whether a path is Ruby source text. Neutral Gherkin and YAML assets deliberately remain unclaimed.

func (Language) Units

func (language Language) Units(root string) (affected.Result, error)

Units observes every Ruby file in the repository rooted at root.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL