summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-22 11:14:05 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-25 21:09:11 +0100
commitb9ad218b2ebde6ccd2189d80fde6428361377db0 (patch)
tree638fbc607c5384350f95973a5a7bfb306e802687
parent289014761b510192863bfd9fc0fadac69819b456 (diff)
downloadbundler-remove_unnecessary_rubygems_filters.tar.gz
Remove rubygems compatibility guardremove_unnecessary_rubygems_filters
Bundler 2 can't be installed on these rubygems, so it's not necessary.
-rw-r--r--lib/bundler/compatibility_guard.rb4
-rw-r--r--spec/other/compatibility_guard_spec.rb9
2 files changed, 0 insertions, 13 deletions
diff --git a/lib/bundler/compatibility_guard.rb b/lib/bundler/compatibility_guard.rb
index 750a1db04f..3505d729fc 100644
--- a/lib/bundler/compatibility_guard.rb
+++ b/lib/bundler/compatibility_guard.rb
@@ -7,8 +7,4 @@ if Bundler::VERSION.split(".").first.to_i >= 2
if Gem::Version.new(Object::RUBY_VERSION.dup) < Gem::Version.new("2.3")
abort "Bundler 2 requires Ruby 2.3 or later. Either install bundler 1 or update to a supported Ruby version."
end
-
- if Gem::Version.new(Gem::VERSION.dup) < Gem::Version.new("2.5")
- abort "Bundler 2 requires RubyGems 2.5 or later. Either install bundler 1 or update to a supported RubyGems version."
- end
end
diff --git a/spec/other/compatibility_guard_spec.rb b/spec/other/compatibility_guard_spec.rb
index 9b11ab4e4f..c72842eab5 100644
--- a/spec/other/compatibility_guard_spec.rb
+++ b/spec/other/compatibility_guard_spec.rb
@@ -12,14 +12,5 @@ RSpec.describe "bundler compatibility guard" do
expect(err).to eq("Bundler 2 requires Ruby 2.3 or later. Either install bundler 1 or update to a supported Ruby version.")
end
end
-
- context "when running on RubyGems < 2.5", :ruby => ">= 2.5" do
- before { simulate_rubygems_version "1.3.6" }
-
- it "raises a friendly error" do
- bundle :version
- expect(last_command.stderr).to eq("Bundler 2 requires RubyGems 2.5 or later. Either install bundler 1 or update to a supported RubyGems version.")
- end
- end
end
end