Help us shape the future of Go! Take the 2026 Go Developer Survey

versions

package
v1.7.23 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: Apache-2.0, MIT Imports: 9 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, manifest Manifest) *Versions

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) 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