versions

package
v1.8.26 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest interface {
	AllDependencyVersions(string) []string
	DefaultVersion(string) (libbuildpack.Dependency, error)
}

type Versions

type Versions struct {
	// contains filtered or unexported fields
}

func New

func New(buildDir string, depDir string, manifest Manifest) *Versions

func (*Versions) BundledWithVersion added in v1.7.42

func (v *Versions) BundledWithVersion() (string, error)

func (*Versions) Engine

func (v *Versions) Engine() (string, error)

func (*Versions) GemMajorVersion

func (v *Versions) GemMajorVersion(gem string) (int, error)

func (*Versions) Gemfile

func (v *Versions) Gemfile() string

func (*Versions) GetBundlerVersion added in v1.7.30

func (v *Versions) GetBundlerVersion() (string, error)

func (*Versions) HasGem

func (v *Versions) HasGem(gem string) (bool, error)

func (*Versions) HasGemVersion

func (v *Versions) HasGemVersion(gem string, constraints ...string) (bool, error)

func (*Versions) HasWindowsGemfileLock

func (v *Versions) HasWindowsGemfileLock() (bool, error)

Should return true if either: (1) the only platform in the Gemfile.lock is windows (mingw/mswin)

(there is no ruby or jruby platform)
-or-

(2) the Gemfile.lock line endings are /r/n, rather than just /n

func (*Versions) JrubyVersion

func (v *Versions) JrubyVersion() (string, error)

func (*Versions) RubyEngineVersion

func (v *Versions) RubyEngineVersion() (string, error)

func (*Versions) Version

func (v *Versions) Version() (string, error)

func (*Versions) VersionConstraint

func (v *Versions) VersionConstraint(version string, constraints ...string) (bool, error)

Jump to

Keyboard shortcuts

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