Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Yet one more try
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed May 8, 2019
1 parent 3670f66 commit b134ca0
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions lib/bundler/version.rb
@@ -1,29 +1,7 @@
# frozen_string_literal: false

require_relative "rubygems_integration"

module Bundler
if Bundler.rubygems.has_bundler_version_finder?
VERSION = "2.1.0.pre.1".freeze
else
# We're doing this because we might write tests that deal
# with other versions of bundler and we are unsure how to
# handle this better.
VERSION = "2.1.0.pre.1".freeze unless defined?(::Bundler::VERSION)

def self.overwrite_loaded_gem_version
begin
require "rubygems"
rescue LoadError
return
end
return unless bundler_spec = Gem.loaded_specs["bundler"]
return if bundler_spec.version == VERSION
bundler_spec.version = Bundler::VERSION
end
private_class_method :overwrite_loaded_gem_version
overwrite_loaded_gem_version
end
VERSION = "2.1.0.pre.1".freeze

def self.bundler_major_version
@bundler_major_version ||= VERSION.split(".").first.to_i
Expand Down

0 comments on commit b134ca0

Please sign in to comment.