mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00

Next version for both will be 4.0.0, however, extra work is necessary to get CI passing against the new major. So for now, I'm bumping just the minor version.
21 lines
503 B
Ruby
21 lines
503 B
Ruby
# frozen_string_literal: false
|
|
|
|
module Bundler
|
|
VERSION = "2.8.0.dev".freeze
|
|
|
|
def self.bundler_major_version
|
|
@bundler_major_version ||= gem_version.segments.first
|
|
end
|
|
|
|
def self.gem_version
|
|
@gem_version ||= Gem::Version.create(VERSION)
|
|
end
|
|
|
|
def self.verbose_version
|
|
@verbose_version ||= "#{VERSION}#{simulated_version ? " (simulating Bundler #{simulated_version})" : ""}"
|
|
end
|
|
|
|
def self.simulated_version
|
|
@simulated_version ||= Bundler.settings[:simulate_version]
|
|
end
|
|
end
|