aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-03-26 08:59:06 +0100
committergit <svn-admin@ruby-lang.org>2022-06-11 18:43:23 +0900
commit572f3240fea870b8848a3e13eb8a8b9f2c45d800 (patch)
tree6733e786cbb8e3df5d06f39b7c398c099ed338b4 /lib/bundler
parent4a758496804b23da24b85dd85ea81b40b5da9ce6 (diff)
downloadruby-572f3240fea870b8848a3e13eb8a8b9f2c45d800.tar.gz
[rubygems/rubygems] Remove unnecessary require
The `security_policies` method already requires it. https://github.com/rubygems/rubygems/commit/d19b088f2f
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/rubygems_integration.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index 3cd6ce45d6..637307389d 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -204,7 +204,6 @@ module Bundler
end
def spec_from_gem(path, policy = nil)
- require "rubygems/security"
require "psych"
gem_from_path(path, security_policies[policy]).spec
rescue Exception, Gem::Exception, Gem::Security::Exception => e # rubocop:disable Lint/RescueException