- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3 (0)
- What's this?
Constants
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
TYPES = { GIT => Bundler::Source::Git, GEM => Bundler::Source::Rubygems, PATH => Bundler::Source::Path, PLUGIN => Bundler::Plugin, }.freeze
ENVIRONMENT_VERSION_SECTIONS = [BUNDLED, RUBY].freeze
KNOWN_SECTIONS = SECTIONS_BY_VERSION_INTRODUCED.values.flatten.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
SOURCE = [GIT, GEM, PATH, PLUGIN].freeze
OPTIONS = /^ ([a-z]+): (.*)$/i
SPECS = " specs:".freeze
PLUGIN = "PLUGIN SOURCE".freeze
PATH = "PATH".freeze
GEM = "GEM".freeze
GIT = "GIT".freeze
RUBY = "RUBY VERSION".freeze
PLATFORMS = "PLATFORMS".freeze
DEPENDENCIES = "DEPENDENCIES".freeze
BUNDLED = "BUNDLED WITH".freeze
Attributes
[R] | ruby_version | |
[R] | bundler_version | |
[R] | platforms | |
[R] | specs | |
[R] | dependencies | |
[R] | sources |