Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/bundler.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require_relative "bundler/compatibility_guard"

require_relative "bundler/vendored_fileutils"
require "pathname"
require "rbconfig"
Expand Down
9 changes: 0 additions & 9 deletions lib/bundler/compatibility_guard.rb

This file was deleted.

2 changes: 0 additions & 2 deletions lib/bundler/inline.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require_relative "compatibility_guard"

# Allows for declaring a Gemfile inline in a ruby script, optionally installing
# any gems that aren't already installed on the user's system.
#
Expand Down
2 changes: 0 additions & 2 deletions lib/bundler/shared_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require_relative "compatibility_guard"

require "pathname"
require "rbconfig"
require "rubygems"
Expand Down
4 changes: 2 additions & 2 deletions spec/install/bundler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@

simulate_bundler_version "99999999.99.1"

bundle! "check", :env => { "BUNDLER_SPEC_IGNORE_COMPATIBILITY_GUARD" => "1" }
bundle! "check"
expect(out).to include("The Gemfile's dependencies are satisfied")
end

Expand All @@ -147,7 +147,7 @@

simulate_bundler_version "99999999.99.1"

bundle! "check", :env => { "BUNDLER_SPEC_IGNORE_COMPATIBILITY_GUARD" => "1" }
bundle! "check"
expect(out).to include("The Gemfile's dependencies are satisfied")
end

Expand Down
2 changes: 0 additions & 2 deletions spec/lock/lockfile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
RSpec.describe "the lockfile format" do
include Bundler::GemHelpers

before { ENV["BUNDLER_SPEC_IGNORE_COMPATIBILITY_GUARD"] = "TRUE" }

it "generates a simple lockfile for a single source, gem" do
install_gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
Expand Down
16 changes: 0 additions & 16 deletions spec/other/compatibility_guard_spec.rb

This file was deleted.

8 changes: 0 additions & 8 deletions spec/support/hax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,3 @@ class Object
end
end
end

if ENV["BUNDLER_SPEC_IGNORE_COMPATIBILITY_GUARD"]
$LOADED_FEATURES << File.expand_path("../../../bundler/compatibility_guard.rb", __FILE__)
$LOADED_FEATURES << File.expand_path("../../../bundler/compatibility_guard", __FILE__)
$LOADED_FEATURES << "bundler/compatibility_guard.rb"
$LOADED_FEATURES << "bundler/compatibility_guard"
require "bundler/compatibility_guard"
end