| SOURCE |
= |
[GIT, GEM, PATH, PLUGIN].freeze |
| SECTIONS_BY_VERSION_INTRODUCED |
= |
{ # The strings have to be dup'ed for old RG on Ruby 2.3+ # TODO: remove dup in Bundler 2.0 Gem::Version.create("1.0".dup) => [DEPENDENCIES, PLATFORMS, GIT, GEM, PATH].freeze, Gem::Version.create("1.10".dup) => [BUNDLED].freeze, Gem::Version.create("1.12".dup) => [RUBY].freeze, Gem::Version.create("1.13".dup) => [PLUGIN].freeze, }.freeze |
| KNOWN_SECTIONS |
= |
SECTIONS_BY_VERSION_INTRODUCED.values.flatten.freeze |
| ENVIRONMENT_VERSION_SECTIONS |
= |
[BUNDLED, RUBY].freeze |
| TYPES |
= |
{ GIT => Bundler::Source::Git, GEM => Bundler::Source::Rubygems, PATH => Bundler::Source::Path, PLUGIN => Bundler::Plugin, }.freeze |
| NAME_VERSION |
= |
/ ^(#{space}{2}|#{space}{4}|#{space}{6})(?!#{space}) # Exactly 2, 4, or 6 spaces at the start of the line (.*?) # Name (?:#{space}\(([^-]*) # Space, followed by version (?:-(.*))?\))? # Optional platform (!)? # Optional pinned marker $ # Line end /xo |