ruby

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package ruby provides Ruby specific functionality for librarian.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v0.32.0

func Add(cfg *config.Config, lib *config.Library) (*config.Library, error)

Add initializes a new Ruby library configuration.

func AddManifest added in v0.32.0

func AddManifest(manifest map[string]string, name, version string) map[string]string

AddManifest inserts a new package and its filler entry into a Release Please manifest map.

func AddPackage added in v0.32.0

func AddPackage(packages map[string]any, name string) map[string]any

AddPackage inserts a new package into a Release Please packages map.

func Clean

func Clean(library *config.Library) error

Clean removes generated files and directories from beneath the given library's output directory. If the output directory does not currently exist, this function is a no-op.

func DefaultOutput added in v0.30.1

func DefaultOutput(name, defaultOutput string) string

DefaultOutput derives an output path from a library name and a default output path.

func Format

func Format(ctx context.Context, library *config.Library) error

Format formats a generated Ruby library.

func Generate

func Generate(ctx context.Context, cfg *config.Config, library *config.Library, srcs *sources.Sources) (err error)

Generate generates a Ruby client library.

func Install added in v0.26.0

func Install(ctx context.Context, tools *config.Tools) error

Install installs Ruby gem dependencies.

func InstallDir added in v0.26.0

func InstallDir() (string, error)

InstallDir gets the directory where tools should be installed.

func Tidy added in v0.32.0

func Tidy(lib *config.Library) (*config.Library, error)

Tidy tidies Ruby-specific configuration for a library.

Types

This section is empty.

Jump to

Keyboard shortcuts

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