Bundler::LockfileParser
No documentation available for this class.
Constants
BUNDLED = "BUNDLED WITH".freeze
DEPENDENCIES = "DEPENDENCIES".freeze
ENVIRONMENT_VERSION_SECTIONS = [BUNDLED, RUBY].freeze
GEM = "GEM".freeze
GIT = "GIT".freeze
KNOWN_SECTIONS = SECTIONS_BY_VERSION_INTRODUCED.values.flatten.freeze
NAME_VERSION = /\n^(#{space}{2}|#{space}{4}|#{space}{6})(?!#{space}) # Exactly 2, 4, or 6 spaces at the start of the line\n(.*?) # Name\n(?:#{space}\\(([^-]*) # Space, followed by version\n(?:-(.*))?\\))? # Optional platform\n(!)? # Optional pinned marker\n$ # Line end\n/xo
OPTIONS = /^ ([a-z]+): (.*)$/i
PATH = "PATH".freeze
PLATFORMS = "PLATFORMS".freeze
PLUGIN = "PLUGIN SOURCE".freeze
RUBY = "RUBY VERSION".freeze
SECTIONS_BY_VERSION_INTRODUCED = {\n# The strings have to be dup'ed for old RG on Ruby 2.3+\n# TODO: remove dup in Bundler 2.0\nGem::Version.create("1.0".dup) => [DEPENDENCIES, PLATFORMS, GIT, GEM, PATH].freeze,\nGem::Version.create("1.10".dup) => [BUNDLED].freeze,\nGem::Version.create("1.12".dup) => [RUBY].freeze,\nGem::Version.create("1.13".dup) => [PLUGIN].freeze,\n}.freeze
SOURCE = [GIT, GEM, PATH, PLUGIN].freeze
SPECS = " specs:".freeze
TYPES = {\nGIT => Bundler::Source::Git,\nGEM => Bundler::Source::Rubygems,\nPATH => Bundler::Source::Path,\nPLUGIN => Bundler::Plugin,\n}.freeze
Attributes
| [R] | bundler_version |
| [R] | dependencies |
| [R] | platforms |
| [R] | ruby_version |
| [R] | sources |
| [R] | specs |
Files
- lib/bundler/lockfile_parser.rb