gem

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name() string

func PkgType

func PkgType() model.PkgType

Types

type Collector

type Collector struct {
	collector.BaseCollector
}

func NewCollector

func NewCollector() *Collector

type GemFileLockParser

type GemFileLockParser struct{}

GemFileLockParser is a parser for Gemfile.lock file. see: https://bundler.io/v2.4/man/bundle-lock.1.html

func NewGemFileLockParser

func NewGemFileLockParser() *GemFileLockParser

NewGemFileLockParser returns a new GemFileLockParser

func (*GemFileLockParser) Matcher

func (*GemFileLockParser) Parse

func (p *GemFileLockParser) Parse(path string) ([]model.Package, error)

type GemSpecParser

type GemSpecParser struct{}

GemSpecParser is a parser for gemspec file. see: https://guides.rubygems.org/specification-reference/

func NewGemSpecParser

func NewGemSpecParser() *GemSpecParser

NewGemSpecParser returns a new NewGemSpecParser

func (*GemSpecParser) Matcher

func (p *GemSpecParser) Matcher() collector.FileMatcher

func (*GemSpecParser) Parse

func (p *GemSpecParser) Parse(path string) ([]model.Package, error)

type GemfileParser

type GemfileParser struct{}

GemfileParser is a parser for Gemfile file. see: https://bundler.io/v2.4/man/gemfile.5.html

func NewGemfileParser

func NewGemfileParser() *GemfileParser

NewGemfileParser returns a new GemfileParser

func (*GemfileParser) Matcher

func (p *GemfileParser) Matcher() collector.FileMatcher

func (*GemfileParser) Parse

func (p *GemfileParser) Parse(path string) ([]model.Package, error)

Jump to

Keyboard shortcuts

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