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

Commit

Permalink
Revert "Partially restore hack"
Browse files Browse the repository at this point in the history
This reverts commit 303fad8.
  • Loading branch information
deivid-rodriguez committed Apr 5, 2019
1 parent 5962d74 commit 6bc577e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/bundler/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,6 @@
module Bundler
VERSION = "2.1.0.pre.1".freeze

if ENV["BUNDLE_SPEC_RUN"]
# 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.
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

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

0 comments on commit 6bc577e

Please sign in to comment.